VirtualBox

source: vbox/trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_winpos.c@ 51524

Last change on this file since 51524 was 27889, checked in by vboxsync, 15 years ago

crOpenGL: more code for multiscreen support

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1
2#include "server_dispatch.h"
3#include "server.h"
4
5
6/**
7 * All glWindowPos commands go through here.
8 */
9static 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
16void SERVER_DISPATCH_APIENTRY crServerDispatchWindowPos2dARB( GLdouble x, GLdouble y )
17{
18 crServerWindowPos((GLfloat) x, (GLfloat) y, 0.0F);
19}
20
21void SERVER_DISPATCH_APIENTRY crServerDispatchWindowPos2dvARB( const GLdouble * v )
22{
23 crServerWindowPos((GLfloat) v[0], (GLfloat) v[1], 0.0F);
24}
25
26void SERVER_DISPATCH_APIENTRY crServerDispatchWindowPos2fARB( GLfloat x, GLfloat y )
27{
28 crServerWindowPos(x, y, 0.0F);
29}
30
31void SERVER_DISPATCH_APIENTRY crServerDispatchWindowPos2fvARB( const GLfloat * v )
32{
33 crServerWindowPos(v[0], v[1], 0.0F);
34}
35
36void SERVER_DISPATCH_APIENTRY crServerDispatchWindowPos2iARB( GLint x, GLint y )
37{
38 crServerWindowPos((GLfloat)x, (GLfloat)y, 0.0F);
39}
40
41void SERVER_DISPATCH_APIENTRY crServerDispatchWindowPos2ivARB( const GLint * v )
42{
43 crServerWindowPos((GLfloat)v[0], (GLfloat)v[1], 0.0F);
44}
45
46void SERVER_DISPATCH_APIENTRY crServerDispatchWindowPos2sARB( GLshort x, GLshort y )
47{
48 crServerWindowPos(x, y, 0.0F);
49}
50
51void SERVER_DISPATCH_APIENTRY crServerDispatchWindowPos2svARB( const GLshort * v )
52{
53 crServerWindowPos(v[0], v[1], 0.0F);
54}
55
56void SERVER_DISPATCH_APIENTRY crServerDispatchWindowPos3dARB( GLdouble x, GLdouble y, GLdouble z )
57{
58 crServerWindowPos((GLfloat) x, (GLfloat) y, (GLfloat) z);
59}
60
61void SERVER_DISPATCH_APIENTRY crServerDispatchWindowPos3dvARB( const GLdouble * v )
62{
63 crServerWindowPos((GLfloat) v[0], (GLfloat) v[1], (GLfloat) v[2]);
64}
65
66void SERVER_DISPATCH_APIENTRY crServerDispatchWindowPos3fARB( GLfloat x, GLfloat y, GLfloat z )
67{
68 crServerWindowPos(x, y, z);
69}
70
71void SERVER_DISPATCH_APIENTRY crServerDispatchWindowPos3fvARB( const GLfloat * v )
72{
73 crServerWindowPos(v[0], v[1], v[2]);
74}
75
76void SERVER_DISPATCH_APIENTRY crServerDispatchWindowPos3iARB( GLint x, GLint y, GLint z )
77{
78 crServerWindowPos((GLfloat)x,(GLfloat)y, (GLfloat)z);
79}
80
81void SERVER_DISPATCH_APIENTRY crServerDispatchWindowPos3ivARB( const GLint * v )
82{
83 crServerWindowPos((GLfloat)v[0], (GLfloat)v[1], (GLfloat)v[2]);
84}
85
86void SERVER_DISPATCH_APIENTRY crServerDispatchWindowPos3sARB( GLshort x, GLshort y, GLshort z )
87{
88 crServerWindowPos(x, y, z);
89}
90
91void SERVER_DISPATCH_APIENTRY crServerDispatchWindowPos3svARB( const GLshort * v )
92{
93 crServerWindowPos(v[0], v[1], v[2]);
94}
95
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette