From 4a33c38e5538490ef4c08b0677777b89b22951cc Mon Sep 17 00:00:00 2001 From: relnev Date: Wed, 29 May 2002 03:30:05 +0000 Subject: [PATCH] update opengl stubs --- src/graphics/gropengl.cpp | 211 +++++++++++++++++++++++++++++++++++--- 1 file changed, 196 insertions(+), 15 deletions(-) diff --git a/src/graphics/gropengl.cpp b/src/graphics/gropengl.cpp index 38b2162..02608dc 100644 --- a/src/graphics/gropengl.cpp +++ b/src/graphics/gropengl.cpp @@ -7,6 +7,9 @@ * Code that uses the OpenGL graphics library * * $Log$ + * Revision 1.8 2002/05/29 03:30:05 relnev + * update opengl stubs + * * Revision 1.7 2002/05/29 02:52:32 theoddone33 * Enable OpenGL renderer * @@ -164,41 +167,42 @@ void gr_directdraw_init() STUB_FUNCTION; } -void gr_opengl_preload_init() + +void gr_d3d_preload(int x, int y) { STUB_FUNCTION; } -void gr_d3d_preload(int x, int y) +void d3d_start_frame() { STUB_FUNCTION; } -void gr_opengl_activate(int b) +void d3d_stop_frame() { STUB_FUNCTION; } -void d3d_start_frame() +void d3d_flush () { STUB_FUNCTION; } -void d3d_stop_frame() +void d3d_zbias (int a) { STUB_FUNCTION; } +#endif -void d3d_flush () +void gr_opengl_activate(int b) { STUB_FUNCTION; } -void d3d_zbias (int a) +void gr_opengl_preload_init() { STUB_FUNCTION; } -#endif void gr_opengl_pixel(int x, int y) { @@ -210,9 +214,9 @@ void gr_opengl_pixel(int x, int y) void gr_opengl_clear() { + STUB_FUNCTION; } - void gr_opengl_flip() { #ifdef PLAT_UNIX @@ -222,6 +226,7 @@ void gr_opengl_flip() void gr_opengl_flip_window(uint _hdc, int x, int y, int w, int h ) { + STUB_FUNCTION; } void gr_opengl_set_clip(int x,int y,int w,int h) @@ -255,6 +260,8 @@ void gr_opengl_set_clip(int x,int y,int w,int h) gr_screen.clip_bottom = h-1; gr_screen.clip_width = w; gr_screen.clip_height = h; + + STUB_FUNCTION; } void gr_opengl_reset_clip() @@ -267,10 +274,13 @@ void gr_opengl_reset_clip() gr_screen.clip_bottom = gr_screen.max_h - 1; gr_screen.clip_width = gr_screen.max_w; gr_screen.clip_height = gr_screen.max_h; + + STUB_FUNCTION; } void gr_opengl_set_font(int fontnum) { + STUB_FUNCTION; } void gr_opengl_set_color( int r, int g, int b ) @@ -282,6 +292,9 @@ void gr_opengl_set_color( int r, int g, int b ) gr_screen.current_color.red = (unsigned char)r; gr_screen.current_color.green = (unsigned char)g; gr_screen.current_color.blue = (unsigned char)b; + +// STUB_FUNCTION; +#warning STUB_FUNCTION: gr_opengl_set_color } void gr_opengl_set_bitmap( int bitmap_num, int alphablend_mode, int bitblt_mode, float alpha, int sx, int sy ) @@ -293,6 +306,8 @@ void gr_opengl_set_bitmap( int bitmap_num, int alphablend_mode, int bitblt_mode, gr_screen.current_bitmap_sx = sx; gr_screen.current_bitmap_sy = sy; + + STUB_FUNCTION; } void gr_opengl_create_shader(shader * shade, float r, float g, float b, float c ) @@ -302,6 +317,8 @@ void gr_opengl_create_shader(shader * shade, float r, float g, float b, float c shade->g = g; shade->b = b; shade->c = c; + + STUB_FUNCTION; } void gr_opengl_set_shader( shader * shade ) @@ -314,6 +331,8 @@ void gr_opengl_set_shader( shader * shade ) } else { gr_create_shader( &gr_screen.current_shader, 0.0f, 0.0f, 0.0f, 0.0f ); } + + STUB_FUNCTION; } @@ -337,6 +356,8 @@ void gr_opengl_bitmap_ex(int x,int y,int w,int h,int sx,int sy) sptr += bmp->w; } bm_unlock(gr_screen.current_bitmap); + + STUB_FUNCTION; } void gr_opengl_bitmap(int x, int y) @@ -362,11 +383,12 @@ void gr_opengl_bitmap(int x, int y) // Draw bitmap bm[sx,sy] into (dx1,dy1)-(dx2,dy2) - gr_bitmap_ex(dx1,dy1,dx2-dx1+1,dy2-dy1+1,sx,sy); + gr_bitmap_ex(dx1,dy1,dx2-dx1+1,dy2-dy1+1,sx,sy); } static void opengl_scanline(int x1,int x2,int y) { + STUB_FUNCTION; } void gr_opengl_rect(int x,int y,int w,int h) @@ -405,15 +427,19 @@ void gr_opengl_rect(int x,int y,int w,int h) for (i=0; i