1 |
|
---|
2 | #include "server_dispatch.h"
|
---|
3 | #include "server.h"
|
---|
4 |
|
---|
5 |
|
---|
6 | /**
|
---|
7 | * All glWindowPos commands go through here.
|
---|
8 | */
|
---|
9 | static void crServerWindowPos( GLfloat x, GLfloat y, GLfloat z )
|
---|
10 | {
|
---|
11 | crStateWindowPos3fARB(x, y, z);
|
---|
12 | cr_server.head_spu->dispatch_table.WindowPos3fARB(x, y, z);
|
---|
13 | }
|
---|
14 |
|
---|
15 |
|
---|
16 | void SERVER_DISPATCH_APIENTRY crServerDispatchWindowPos2dARB( GLdouble x, GLdouble y )
|
---|
17 | {
|
---|
18 | crServerWindowPos((GLfloat) x, (GLfloat) y, 0.0F);
|
---|
19 | }
|
---|
20 |
|
---|
21 | void SERVER_DISPATCH_APIENTRY crServerDispatchWindowPos2dvARB( const GLdouble * v )
|
---|
22 | {
|
---|
23 | crServerWindowPos((GLfloat) v[0], (GLfloat) v[1], 0.0F);
|
---|
24 | }
|
---|
25 |
|
---|
26 | void SERVER_DISPATCH_APIENTRY crServerDispatchWindowPos2fARB( GLfloat x, GLfloat y )
|
---|
27 | {
|
---|
28 | crServerWindowPos(x, y, 0.0F);
|
---|
29 | }
|
---|
30 |
|
---|
31 | void SERVER_DISPATCH_APIENTRY crServerDispatchWindowPos2fvARB( const GLfloat * v )
|
---|
32 | {
|
---|
33 | crServerWindowPos(v[0], v[1], 0.0F);
|
---|
34 | }
|
---|
35 |
|
---|
36 | void SERVER_DISPATCH_APIENTRY crServerDispatchWindowPos2iARB( GLint x, GLint y )
|
---|
37 | {
|
---|
38 | crServerWindowPos((GLfloat)x, (GLfloat)y, 0.0F);
|
---|
39 | }
|
---|
40 |
|
---|
41 | void SERVER_DISPATCH_APIENTRY crServerDispatchWindowPos2ivARB( const GLint * v )
|
---|
42 | {
|
---|
43 | crServerWindowPos((GLfloat)v[0], (GLfloat)v[1], 0.0F);
|
---|
44 | }
|
---|
45 |
|
---|
46 | void SERVER_DISPATCH_APIENTRY crServerDispatchWindowPos2sARB( GLshort x, GLshort y )
|
---|
47 | {
|
---|
48 | crServerWindowPos(x, y, 0.0F);
|
---|
49 | }
|
---|
50 |
|
---|
51 | void SERVER_DISPATCH_APIENTRY crServerDispatchWindowPos2svARB( const GLshort * v )
|
---|
52 | {
|
---|
53 | crServerWindowPos(v[0], v[1], 0.0F);
|
---|
54 | }
|
---|
55 |
|
---|
56 | void SERVER_DISPATCH_APIENTRY crServerDispatchWindowPos3dARB( GLdouble x, GLdouble y, GLdouble z )
|
---|
57 | {
|
---|
58 | crServerWindowPos((GLfloat) x, (GLfloat) y, (GLfloat) z);
|
---|
59 | }
|
---|
60 |
|
---|
61 | void SERVER_DISPATCH_APIENTRY crServerDispatchWindowPos3dvARB( const GLdouble * v )
|
---|
62 | {
|
---|
63 | crServerWindowPos((GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2]);
|
---|
64 | }
|
---|
65 |
|
---|
66 | void SERVER_DISPATCH_APIENTRY crServerDispatchWindowPos3fARB( GLfloat x, GLfloat y, GLfloat z )
|
---|
67 | {
|
---|
68 | crServerWindowPos(x, y, z);
|
---|
69 | }
|
---|
70 |
|
---|
71 | void SERVER_DISPATCH_APIENTRY crServerDispatchWindowPos3fvARB( const GLfloat * v )
|
---|
72 | {
|
---|
73 | crServerWindowPos(v[0], v[1], v[2]);
|
---|
74 | }
|
---|
75 |
|
---|
76 | void SERVER_DISPATCH_APIENTRY crServerDispatchWindowPos3iARB( GLint x, GLint y, GLint z )
|
---|
77 | {
|
---|
78 | crServerWindowPos((GLfloat)x,(GLfloat)y, (GLfloat)z);
|
---|
79 | }
|
---|
80 |
|
---|
81 | void SERVER_DISPATCH_APIENTRY crServerDispatchWindowPos3ivARB( const GLint * v )
|
---|
82 | {
|
---|
83 | crServerWindowPos((GLfloat)v[0], (GLfloat)v[1], (GLfloat)v[2]);
|
---|
84 | }
|
---|
85 |
|
---|
86 | void SERVER_DISPATCH_APIENTRY crServerDispatchWindowPos3sARB( GLshort x, GLshort y, GLshort z )
|
---|
87 | {
|
---|
88 | crServerWindowPos(x, y, z);
|
---|
89 | }
|
---|
90 |
|
---|
91 | void SERVER_DISPATCH_APIENTRY crServerDispatchWindowPos3svARB( const GLshort * v )
|
---|
92 | {
|
---|
93 | crServerWindowPos(v[0], v[1], v[2]);
|
---|
94 | }
|
---|
95 |
|
---|