Advertisement

Will Someone Help Me With Another Way to Define Commands using OpenGl, Please?

Started by October 13, 2018 10:27 PM
2 comments, last by NubDevice 6 years, 3 months ago

I'm having trouble with glew sharing some defines that I can't resolve.  Does anyone know of a way to get the following statements working instead of an include with glew (glew resolves the red squigglies too.)


glColor3f(0, 1, 0.);
glRasterPos2i(10,10);

I really want to use a quick glut command for now.  The command uses the statements above.

Thank You,

Josheir

The order in which you include glew and glut matters. You include glew, then include glut, then init glut, then init glew.

And again, use the newest freeglut and glew libraries available.

🙂🙂🙂🙂🙂<←The tone posse, ready for action.

Advertisement

I feel your question is malformed or it would be better with a minimum example. One thing that was a game changer for me with these types of issues was to adapt to a precompiled header project configuration. Then I was no longer thinking what headers to include in a new class module, things were just there. 

Just a thought.

Dev careful. Pixel on board.

This topic is closed to new replies.

Advertisement