Hi all,
I just figure out , We need to set pDevice->SetTextureStageState(0, D3DTSS_COLOROP, D3DTOP_DISABLE); to restore the render state
Search found 7 matches
- Mon Aug 29, 2011 02:34
- Forum: Help
- Topic: I...Just need a colorful line...
- Replies: 1
- Views: 2982
- Sat Aug 27, 2011 18:58
- Forum: Help
- Topic: I...Just need a colorful line...
- Replies: 1
- Views: 2982
I...Just need a colorful line...
hi, It is said that we need to recover the render state after rendering cegui , because cegui will change some of the render state. Is it true? Is there a better way to do it rather than guess what should be recovered? Now my problem is, I'm trying to draw a line on screen to show current direction....
- Mon Aug 01, 2011 07:05
- Forum: Help
- Topic: bottle-neck of ListBox::AddItem
- Replies: 2
- Views: 1977
Re: bottle-neck of ListBox::AddItem
Hi, I think I've found a bug in void Listbox::ensureItemIsVisible(size_t item_index) At the first 4 rows like : Scrollbar* vertScrollbar = getVertScrollbar(); // handle simple "scroll to the bottom" case if (item_index >= getItemCount()) { vertScrollbar->setScrollPosition(vertScrollbar->ge...
- Mon Aug 01, 2011 03:43
- Forum: Help
- Topic: bottle-neck of ListBox::AddItem
- Replies: 2
- Views: 1977
bottle-neck of ListBox::AddItem
Hi, I'm using Listbox for my project, while I found the efficiency of "AddItem" getting slower and slower as the item count increase. I did some analysis: To Add 2000 items: (the cost time is progress * 600 s) Origin:Finished at progress: 0.642449 then Remove Binary chop (my own logic):Fin...
- Fri Jul 29, 2011 03:51
- Forum: Help
- Topic: the conflict of window name
- Replies: 4
- Views: 2943
Re: the conflict of window name
Hi Jamrr, I've read your reply twice, that's a great viewpoint and I'm quite agree with you on understanding OOP. In fact, I don't think change the structure of CEGUI::String to apply more function is a good idea, As you said, that's not string's responsibility. As an user, I will care more about if...
- Thu Jul 28, 2011 06:34
- Forum: Help
- Topic: the conflict of window name
- Replies: 4
- Views: 2943
Re: the conflict of window name
Thank you for your reply :) However, why not implement a contructor for wstring? becuase it is encouraged to work in unicode environment, So ,it will be very easy to write like CEGUI::String Test("test") under unicode project rather than CEGUI::String Test(UnicodeToMulByte("test"...
- Wed Jul 27, 2011 13:37
- Forum: Help
- Topic: the conflict of window name
- Replies: 4
- Views: 2943
the conflict of window name
I'm new in using CEGUI. I found that, if I have two pages, each page has a button which got the same name ("OKBtn"), there will be a conflict in WindowManager::d_windowRegistry In fact, I think it's quite common to generate some UI components with the same name, however, it seems I can't d...