Portabilidade IRIS GL Get Functions
As funções "get" do IRIS GL assumem a seguinte forma:
int getthing();
e ainda
int getthings( int *a, int *b);
Seu código IRIS GL provavelmente inclui chamadas de função get que se parecem com:
thing = getthing();
if (getthing() == THING) { /* some stuff here */ }
getthings (&a, &b);
Em OpenGL você usa um dos seguintes quatro tipos de funções glGet no lugar de funções equivalentes IRIS GL get:
- glGetBooleanv
- glGetIntegerv
- glGetFloatv
- glGetDoublev
As funções têm a seguinte sintaxe:
glGet<Datatype>v( value, *data );
onde valor é do tipo GLenum e os dados são do tipo GLdatatype. Quando você chama glGet e ele retorna um tipo diferente do tipo esperado, o tipo é convertido apropriadamente. Para obter uma lista completa de parâmetros glGet, consulte glGet.