d_material in IrrlichtGeometryBuffer shouldn't be protected.

If you found a bug in our library or on our website, please report it in this section. In this forum you can also make concrete suggestions or feature requests.

Moderators: CEGUI MVP, CEGUI Team

agamemnus
Just can't stay away
Just can't stay away
Posts: 185
Joined: Sun Mar 14, 2010 04:21

d_material in IrrlichtGeometryBuffer shouldn't be protected.

Postby agamemnus » Wed May 12, 2010 18:41

I can't say this with certainty, but it looks like there's one buffer per window.....

If I want to manipulate the material properties with Irrlicht functions, there is no way to get to them via CEGUI...

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: d_material in IrrlichtGeometryBuffer shouldn't be protected.

Postby CrazyEddie » Thu May 13, 2010 09:04

Yes, this is correct, there is one GeometryBuffer for every CEGUI::Window instance.

I will add an accessor to enable one to access the Irrlicht material (not immediately though ;)).

CE

agamemnus
Just can't stay away
Just can't stay away
Posts: 185
Joined: Sun Mar 14, 2010 04:21

Re: d_material in IrrlichtGeometryBuffer shouldn't be protected.

Postby agamemnus » Thu May 13, 2010 19:17

Here's my function. Doesn't seem to be doing anything when I set the material properties so I guess it's a fail.

Code: Select all

// Gets a window's Irrlicht material.
u32* DLL_EXPORT CEGUIgetIrrMaterial (u32 *windowPtr) {
 return (u32*) (&(static_cast<CEGUI::IrrlichtGeometryBuffer*>(&((toCEGUIWindow(windowPtr))->getGeometryBuffer())))->d_material);
}

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: d_material in IrrlichtGeometryBuffer shouldn't be protected.

Postby CrazyEddie » Fri May 14, 2010 08:51

Depending on what gets cached and where, you probably have to invalidate the window after changing the material. But I've not looked at this yet, so who knows ;)

CE.

agamemnus
Just can't stay away
Just can't stay away
Posts: 185
Joined: Sun Mar 14, 2010 04:21

Re: d_material in IrrlichtGeometryBuffer shouldn't be protected.

Postby agamemnus » Fri May 14, 2010 16:23

Invalidate doesn't change it... I might be doing it wrong. :cry:


Return to “Bug Reports, Suggestions, Feature Requests”

Who is online

Users browsing this forum: No registered users and 10 guests