Displaying 3 results from an estimated 3 matches for "gl_modelview".
2016 Apr 05
2
a few questions about OpenGL and nouveau
...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 video card memory is already mapped (I guess...) so are these floats...
2016 Apr 05
0
a few questions about OpenGL and nouveau
...v30) 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 other? Also at this moment
> the video card memory is already mapped (I guess...
2009 Mar 02
0
[PATCH 4 of 13] DisplayState interface change
...Viewport( 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, &texture_ref);
@@ -90,27 +88,6 @@
glBindTexture(GL_TEXTURE_RECTANGLE_ARB, texture_ref);
glPixelStorei(GL_UNPACK_LSB_FIRST, 1);
switch (ds_...