scratt
03-03-2009, 01:41 AM
I am sure this is trivial so sorry for the noise, but I can't seem to see an obvious way to do it..
Let's say I have a configuration file with text in it such as 'GL_SRC_ALPHA' and I want to read that string and then lookup it's value as far as OpenGL is concerned so I can plug it's numeric value into the relevant OpenGL command..
Is there a command like glGetProc or glGetString that will give me the value?
Let's say I have a configuration file with text in it such as 'GL_SRC_ALPHA' and I want to read that string and then lookup it's value as far as OpenGL is concerned so I can plug it's numeric value into the relevant OpenGL command..
Is there a command like glGetProc or glGetString that will give me the value?