search for: glloadidentity

Displaying 3 results from an estimated 3 matches for "glloadidentity".

2016 Apr 05
2
a few questions about OpenGL and nouveau
...s (from 66 to 280) of valgrind--mmt that I do not know from where is it coming. I could dig in nv30_state_validate(...) but at this moment I think nv30->dirty is 0 so validate->func(nv30) is not called. Help, please.*/ /* This I guess is mesa stuff... */ glMatrixMode(GL_PROJECTION); glLoadIdentity(); glOrtho(0, 300, 0, 300, -1, 1); glMatrixMode(GL_MODELVIEW); /*Here another question. Does glBegin end up calling a driver code like BEGIN_NV04(...) that instructs the card to get the next 3 floats for color more 3 for the first vertex and another 3 for the other? Also at this moment the...
2016 Apr 05
0
a few questions about OpenGL and nouveau
...) but at this > moment I > think nv30->dirty is 0 so validate->func(nv30) is not called. Help, > please.*/ dirty definitely shouldn't be 0... it has to bind a framebuffer at least. > > > /* This I guess is mesa stuff... */ > glMatrixMode(GL_PROJECTION); > glLoadIdentity(); > glOrtho(0, 300, 0, 300, -1, 1); > glMatrixMode(GL_MODELVIEW); > > /*Here another question. Does glBegin end up calling a driver code like > BEGIN_NV04(...) that instructs the card to get the next 3 floats for color > more 3 for the first vertex and another 3 for the o...
2009 Mar 02
0
[PATCH 4 of 13] DisplayState interface change
...NV, GL_TEXTURE_ENV_MODE, GL_REPLACE); @@ -72,14 +71,13 @@ glDisable(GL_DEPTH_TEST); glDepthMask(GL_FALSE); glDisable(GL_CULL_FACE); - glViewport( 0, 0, screen->w, screen->h); + glViewport( 0, 0, real_screen->w, real_screen->h); glMatrixMode(GL_PROJECTION); glLoadIdentity(); - glOrtho(0, screen->w, screen->h, 0, -1,1); + glOrtho(0, real_screen->w, real_screen->h, 0, -1,1); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); glClear(GL_COLOR_BUFFER_BIT); - ds->data = pixels; if (texture_ref) { glDeleteTextures(1, &...