VirtualBox

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

最後變更 在這個檔案從43233是 27889,由 vboxsync 提交於 15 年 前

crOpenGL: more code for multiscreen support

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Id
檔案大小: 2.4 KB
 
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
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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