aboutsummaryrefslogtreecommitdiff
path: root/opengl/system/setup.c
blob: 4bbda4909dea0602d35f50acb9b00a3ce2b7c05e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
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