Hi All,
My Background(if is needed)
Im pretty new to openGL, but i did some work in DirectX and HLSL, so i understand the 3d concepts and stuff.
The Question
How to get compile time errors for calling ‘non core profile’ OpenGL commands?
for example, glBegin and glVertex3f etc are not there in the core profile, but while learning openGL there are many references to these commands very frequently, and i want to go forward with the new core specs of openGL. And i have no clue what all GL commands are depricated.
SO, is there any way of getting compile time errors for trying to execute non core profile commands??
im using glew for handling the profile creation
wglCreateContextAttribsARB(hDC,0, attribs);
with atribs benig
int attribs[] =
{
WGL_CONTEXT_MAJOR_VERSION_ARB, 3,
WGL_CONTEXT_MINOR_VERSION_ARB, 3,
WGL_CONTEXT_FLAGS_ARB, 0,
0
};
Now, how do i make sure that i can get compile time errors for calling non core profile gl commands?