Page 1 of 1

CeGUI + CDX ?

Posted: Mon Sep 26, 2005 14:26
by Termit
Hi Eddie! Thank you for this great library. It is amazing that such work can be done by obe human:)
I have a question - in my game I use CDX library, it is wrapper over DirectX (http://www.cdxlib.com/index.php)
I was unable to use it with the GUI library - cdx draws nothing and I see only GUI output. Can I use them simultaneously somehow? Any tips are appericated.

Re: CeGUI + CDX ?

Posted: Mon Sep 26, 2005 17:33
by CrazyEddie
I imagine that CDX is expecting to find render states untouched from the previous frame. Obviously CEGUI needs to change somw of these to do it's thing - so this is likely what the problem is.

If CDX has some means of initialising the required states, you should call this each frame, else you're going to have to save states before rendering the gui and restore them afterwards (using the D3D methods for this).

HTH

CE.

Re: CeGUI + CDX ?

Posted: Wed Sep 28, 2005 07:02
by Termit
Thank you Eddie! Ill try to check these things and put the results here if succeed.