diff options
author | Pablo Martín <caedesv@users.sourceforge.net> | 2003-09-07 21:51:37 +0000 |
---|---|---|
committer | Pablo Martín <caedesv@users.sourceforge.net> | 2003-09-07 21:51:37 +0000 |
commit | 9aa1e112850a11854caa2198393dbd910e226151 (patch) | |
tree | 9ed62d40d96b503049229e1cb2555c4883416cb9 /opengl/system/setup.c | |
parent | 213978fa8a868661dda88e6b4e7cacec1c90677a (diff) |
Updating pdp version to 0.12.2
svn path=/trunk/externals/pdp/; revision=942
Diffstat (limited to 'opengl/system/setup.c')
-rw-r--r-- | opengl/system/setup.c | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/opengl/system/setup.c b/opengl/system/setup.c new file mode 100644 index 0000000..4bbda49 --- /dev/null +++ b/opengl/system/setup.c @@ -0,0 +1,80 @@ +#include "pdp_opengl.h" + +/* 3dp overview: + + - texture packets (gl) + - drawable packets (glX windows and pbufs) + + the 3dp system connects to a display server and creates a common context + this can be a pbuf context (if supported, glx >= 1.3) or a normal glX context + textures are standard opengl + drawable packets are wrappers around glx drawables (windows or pbufs) + they share the central display connection and rendering context + +*/ + + +#ifdef __cplusplus +extern "C" +{ +#endif + +/* opengl lib kernel setup */ +void pdp_opengl_system_setup(void); + +/* packet type setup */ +void pdp_3Dcontext_glx_setup(void); /* glx specific part of the 3D context packet */ +void pdp_3Dcontext_common_setup(void); /* common part of the 3D context packet */ +void pdp_texture_setup(void); /* texture packet */ + + +/* module setup */ +void pdp_3d_windowcontext_setup(void); +void pdp_3d_draw_setup(void); +void pdp_3d_view_setup(void); +void pdp_3d_light_setup(void); +void pdp_3d_color_setup(void); +void pdp_3d_push_setup(void); +void pdp_3d_snap_setup(void); +void pdp_3d_dlist_setup(void); +void pdp_3d_drawmesh_setup(void); +void pdp_3d_for_setup(void); +void pdp_3d_state_setup(void); +void pdp_3d_subcontext_setup(void); + + +void pdp_opengl_setup(void) +{ + int i; + post("PDP: pdp_opengl extension library"); + + /* setup system */ + pdp_opengl_system_setup(); + + /* setup packet types */ + pdp_3Dcontext_glx_setup(); + pdp_3Dcontext_common_setup(); + pdp_texture_setup(); + + + /* setup modules */ + pdp_3d_windowcontext_setup(); + pdp_3d_draw_setup(); + pdp_3d_view_setup(); + pdp_3d_push_setup(); + pdp_3d_light_setup(); + pdp_3d_dlist_setup(); + pdp_3d_color_setup(); + pdp_3d_snap_setup(); + pdp_3d_drawmesh_setup(); + pdp_3d_for_setup(); + pdp_3d_state_setup(); + pdp_3d_subcontext_setup(); + + +} + + +#ifdef __cplusplus +} +#endif |