| version 1.3 | | version 1.4 |
|---|
| | |
| int c; | | int c; |
| glPointSize(1.0); | | glPointSize(1.0); |
| for (y=0;y<768;y++) | | for (y=0;y<768;y++) |
| gr_fpal[y]=(gr_palette[y]+gr_palette_gamma)/63.0; | | gr_fpal[y]=(gr_palette[y])/63.0; |
| | | //gr_fpal[y]=(gr_palette[y]+gr_palette_gamma)/63.0; |
| for (y=0;y<grd_curscreen->sc_h;y++){ | | for (y=0;y<grd_curscreen->sc_h;y++){ |
| yoff=y*grd_curscreen->sc_w; | | yoff=y*grd_curscreen->sc_w; |
| //gly=(grd_curscreen->sc_h-y)/(float)grd_curscreen->sc_h; | | //gly=(grd_curscreen->sc_h-y)/(float)grd_curscreen->sc_h; |
| | |
| #endif | | #endif |
| | | |
| ogl_swap_buffers();//platform specific code | | ogl_swap_buffers();//platform specific code |
| glClear(GL_COLOR_BUFFER_BIT); | | |
| #ifndef KLUDGEPOINT | | #ifndef KLUDGEPOINT |
| glDeleteTextures( 1, &kludgetexture ); | | glDeleteTextures( 1, &kludgetexture ); |
| #endif | | #endif |
| } | | } |
| } | | } |
| | | // else |
| | | // ogl_swap_buffers();//platform specific code |
| } | | } |
| } | | } |
| | | |
| | |
| } | | } |
| | | |
| // Palette functions follow. | | // Palette functions follow. |
| //inline GLfloat PAL2Tr(int c) {return (gr_palette[c*3]+gr_palette_gamma)/63.0;} | | ////inline GLfloat PAL2Tr(int c) {return (gr_palette[c*3]+gr_palette_gamma)/63.0;} |
| //inline GLfloat PAL2Tg(int c) {return (gr_palette[c*3+1]+gr_palette_gamma)/63.0;} | | ////inline GLfloat PAL2Tg(int c) {return (gr_palette[c*3+1]+gr_palette_gamma)/63.0;} |
| //inline GLfloat PAL2Tb(int c) {return (gr_palette[c*3+2]+gr_palette_gamma)/63.0;} | | ////inline GLfloat PAL2Tb(int c) {return (gr_palette[c*3+2]+gr_palette_gamma)/63.0;} |
| | | //inline GLfloat PAL2Tr(int c) {return (gr_current_pal[c*3]+gr_palette_gamma)/63.0;} |
| | | //inline GLfloat PAL2Tg(int c) {return (gr_current_pal[c*3+1]+gr_palette_gamma)/63.0;} |
| | | //inline GLfloat PAL2Tb(int c) {return (gr_current_pal[c*3+2]+gr_palette_gamma)/63.0;} |
| inline GLfloat PAL2Tr(int c) {return (gr_current_pal[c*3]+gr_palette_gamma)/63.0;} | | inline GLfloat PAL2Tr(int c) {return (gr_current_pal[c*3]+gr_palette_gamma)/63.0;} |
| inline GLfloat PAL2Tg(int c) {return (gr_current_pal[c*3+1]+gr_palette_gamma)/63.0;} | | inline GLfloat PAL2Tg(int c) {return (gr_current_pal[c*3+1]+gr_palette_gamma)/63.0;} |
| inline GLfloat PAL2Tb(int c) {return (gr_current_pal[c*3+2]+gr_palette_gamma)/63.0;} | | inline GLfloat PAL2Tb(int c) {return (gr_current_pal[c*3+2]+gr_palette_gamma)/63.0;} |
| | |
| | | |
| // if ( (r==last_r) && (g==last_g) && (b==last_b) ) return; | | // if ( (r==last_r) && (g==last_g) && (b==last_b) ) return; |
| | | |
| last_r = r/63.0; | | /* last_r = r/63.0; |
| last_g = g/63.0; | | last_g = g/63.0; |
| last_b = b/63.0; | | last_b = b/63.0; |
| | | do_pal_step=(r || g || b);*/ |
| | | |
| do_pal_step=(r || g || b); | | last_r = (r+gr_palette_gamma)/63.0; |
| | | last_g = (g+gr_palette_gamma)/63.0; |
| | | last_b = (b+gr_palette_gamma)/63.0; |
| | | |
| | | do_pal_step=(r || g || b || gr_palette_gamma); |
| | | |
| } | | } |
| | | |