00001 #ifndef ALLEGRO_GL_WINDOWS_VTABLE_H
00002 #define ALLEGRO_GL_WINDOWS_VTABLE_H
00003
00004 #include <allegro.h>
00005
00006
00007
00008
00009
00010
00011 typedef struct AGL_VIDEO_BITMAP {
00012 GLenum target;
00013 BITMAP *memory_copy;
00014 GLuint tex;
00015 int x_ofs, y_ofs;
00016 int width, height;
00017 struct AGL_VIDEO_BITMAP *next;
00018 } AGL_VIDEO_BITMAP;
00019
00020
00021 void __allegro_gl__glvtable_update_vtable (GFX_VTABLE **vtable);
00022 BITMAP *allegro_gl_create_video_bitmap(int w, int h);
00023 void allegro_gl_destroy_video_bitmap(BITMAP *bmp);
00024 void allegro_gl_created_sub_bitmap(BITMAP *bmp, BITMAP *parent);
00025 void split_color(int color, GLubyte *r, GLubyte *g, GLubyte *b, GLubyte *a,
00026 int color_depth);
00027 void allegro_gl_screen_blit_to_self (struct BITMAP *source, struct BITMAP *dest,
00028 int source_x, int source_y, int dest_x, int dest_y, int width,
00029 int height);
00030 void allegro_gl_video_blit_from_memory(struct BITMAP *source,
00031 struct BITMAP *dest, int source_x, int source_y, int dest_x,
00032 int dest_y, int width, int height);
00033 void allegro_gl_video_blit_to_memory(struct BITMAP *source, struct BITMAP *dest,
00034 int source_x, int source_y, int dest_x, int dest_y, int width,
00035 int height);
00036 #endif
00037