version 1.19 | | version 1.20 |
---|
| | |
| | |
void gr_palette_clear(); // Function prototype for gr_init; | | void gr_palette_clear(); // Function prototype for gr_init; |
int gl_initialized=0; | | int gl_initialized=0; |
| | int gl_reticle=1; |
| | |
int ogl_fullscreen=0; | | int ogl_fullscreen=0; |
int gr_check_fullscreen(void){ | | int gr_check_fullscreen(void){ |
| | |
if ((t=FindArg("-gl_vidmem"))){ | | if ((t=FindArg("-gl_vidmem"))){ |
ogl_mem_target=atoi(Args[t+1])*1024*1024; | | ogl_mem_target=atoi(Args[t+1])*1024*1024; |
} | | } |
| | if ((t=FindArg("-gl_reticle"))){ |
| | gl_reticle=atoi(Args[t+1]); |
| | } |
//printf("ogl_mem_target=%i\n",ogl_mem_target); | | //printf("ogl_mem_target=%i\n",ogl_mem_target); |
| | |
ogl_init();//platform specific initialization | | ogl_init();//platform specific initialization |
| | |
glVertex2f(xf,yf); | | glVertex2f(xf,yf); |
glEnd(); | | glEnd(); |
} | | } |
| | |
| | |
GLfloat last_r=0, last_g=0, last_b=0; | | GLfloat last_r=0, last_g=0, last_b=0; |
int do_pal_step=0; | | int do_pal_step=0; |