OpenGL renderer requires CCW front face

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

dabono
Just popping in
Just popping in
Posts: 1
Joined: Sun Nov 14, 2010 10:40

OpenGL renderer requires CCW front face

Postby dabono » Sun Nov 14, 2010 10:46

Hi, just to let you know: I got this wonderful library working, but what had me stumped for a while is the fact that the OpenGL-renderer requires the triangle winding to be set to counter-clockwise.
This of course is easily fixed by adding to void OpenGLRenderer::beginRendering() the line:

Code: Select all

glFrontFace(GL_CCW);

Jamarr
CEGUI MVP
CEGUI MVP
Posts: 812
Joined: Tue Jun 03, 2008 23:59
Location: USA

Re: OpenGL renderer requires CCW front face

Postby Jamarr » Mon Nov 15, 2010 14:59

If CEGUI had to reset every single OpenGL state the performance hit would be significant, this is one reason why CEGUI assumes a default OpenGL state. Since GL_CCW is the default state there is no need for CEGUI to specifically manage this state. If your code, or another library you are using, changes this state it is their responsibility to reset it once it is done with it / prior to rendering CEGUI.
If somebody helps you by replying to your thread, upvote him/her as a thanks! Make sure to include your CEGUI.log and everything you tried when posting! And remember that we are not magicians!


Return to “Bug Reports, Suggestions, Feature Requests”

Who is online

Users browsing this forum: No registered users and 9 guests