🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

SDL & OpenGL

Started by
11 comments, last by BakaHitokiri 19 years, 11 months ago
noone?
- BkH ^^
Advertisement
Maybe the problem that u see nothing is that by default the front of a polygone is defined by setting the vertices counter clockwise
so your polys face away from the screen and are culled away...
either use glFrontFace(GL_CW) or change the order of vertices
e.g. to
// draw a triangle
glBegin(GL_POLYGON); // start drawing a polygon
glVertex3f( 0.0f, 1.0f, 0.0f); // Top
glVertex3f(-1.0f,-1.0f, 0.0f); // Bottom Left
glVertex3f( 1.0f,-1.0f, 0.0f); // Bottom Right
glEnd(); // we're done with the polygon

ill try that, thank you :)
- BkH ^^

This topic is closed to new replies.

Advertisement