[AD] OpenGL code

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


As discussed on hack day it would be good to split off the OpenGL code
into its own file so it can be used cross-platform
(http://wiki.allegro.cc/Allegro_Hack_Day/2008_January_5). What's the
best way to do this? I suggest having aintern_opengl.h and opengl.c,
and writing an implementation of each of the display's vtable
functions (in ALLEGRO_DISPLAY_INTERFACE) called _al_gl_<something>,
e.g. _al_gl_draw_line for the draw_line function.

Pete




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/