1 | /*
|
---|
2 | * All rights reserved
|
---|
3 | *
|
---|
4 | * See the file LICENSE.txt for information on redistributing this software.
|
---|
5 | */
|
---|
6 |
|
---|
7 | #include "unpacker.h"
|
---|
8 |
|
---|
9 | void crUnpackExtendChromiumParametervCR( void )
|
---|
10 | {
|
---|
11 | GLenum target = READ_DATA( 8, GLenum );
|
---|
12 | GLenum type = READ_DATA( 12, GLenum );
|
---|
13 | GLsizei count = READ_DATA( 16, GLsizei );
|
---|
14 | GLvoid *values = DATA_POINTER( 20, GLvoid );
|
---|
15 |
|
---|
16 | cr_unpackDispatch.ChromiumParametervCR(target, type, count, values);
|
---|
17 |
|
---|
18 |
|
---|
19 | /*
|
---|
20 | INCR_VAR_PTR();
|
---|
21 | */
|
---|
22 | }
|
---|
23 |
|
---|
24 | void crUnpackExtendDeleteQueriesARB(void)
|
---|
25 | {
|
---|
26 | GLsizei n = READ_DATA( 8, GLsizei );
|
---|
27 | const GLuint *ids = DATA_POINTER(12, GLuint);
|
---|
28 | cr_unpackDispatch.DeleteQueriesARB(n, ids);
|
---|
29 | }
|
---|
30 |
|
---|
31 | void crUnpackExtendGetPolygonStipple(void)
|
---|
32 | {
|
---|
33 | GLubyte *mask;
|
---|
34 |
|
---|
35 | SET_RETURN_PTR( 8 );
|
---|
36 | SET_WRITEBACK_PTR( 16 );
|
---|
37 | mask = DATA_POINTER(8, GLubyte);
|
---|
38 |
|
---|
39 | cr_unpackDispatch.GetPolygonStipple( mask );
|
---|
40 | }
|
---|
41 |
|
---|
42 | void crUnpackExtendGetPixelMapfv(void)
|
---|
43 | {
|
---|
44 | GLenum map = READ_DATA( 8, GLenum );
|
---|
45 | GLfloat *values;
|
---|
46 |
|
---|
47 | SET_RETURN_PTR( 12 );
|
---|
48 | SET_WRITEBACK_PTR( 20 );
|
---|
49 | values = DATA_POINTER(12, GLfloat);
|
---|
50 |
|
---|
51 | cr_unpackDispatch.GetPixelMapfv( map, values );
|
---|
52 | }
|
---|
53 |
|
---|
54 | void crUnpackExtendGetPixelMapuiv(void)
|
---|
55 | {
|
---|
56 | GLenum map = READ_DATA( 8, GLenum );
|
---|
57 | GLuint *values;
|
---|
58 |
|
---|
59 | SET_RETURN_PTR( 12 );
|
---|
60 | SET_WRITEBACK_PTR( 20 );
|
---|
61 | values = DATA_POINTER(12, GLuint);
|
---|
62 |
|
---|
63 | cr_unpackDispatch.GetPixelMapuiv( map, values );
|
---|
64 | }
|
---|
65 |
|
---|
66 | void crUnpackExtendGetPixelMapusv(void)
|
---|
67 | {
|
---|
68 | GLenum map = READ_DATA( 8, GLenum );
|
---|
69 | GLushort *values;
|
---|
70 |
|
---|
71 | SET_RETURN_PTR( 12 );
|
---|
72 | SET_WRITEBACK_PTR( 20 );
|
---|
73 | values = DATA_POINTER(12, GLushort);
|
---|
74 |
|
---|
75 | cr_unpackDispatch.GetPixelMapusv( map, values );
|
---|
76 | }
|
---|
77 |
|
---|
78 | void crUnpackExtendVBoxTexPresent(void)
|
---|
79 | {
|
---|
80 | GLuint texture = READ_DATA( 8, GLuint );
|
---|
81 | GLuint cfg = READ_DATA( 12, GLuint );
|
---|
82 | GLint xPos = READ_DATA( 16, GLint );
|
---|
83 | GLint yPos = READ_DATA( 20, GLint );
|
---|
84 | GLint cRects = READ_DATA( 24, GLint );
|
---|
85 | GLint *pRects = (GLint *)DATA_POINTER( 28, GLvoid );
|
---|
86 | cr_unpackDispatch.VBoxTexPresent( texture, cfg, xPos, yPos, cRects, pRects );
|
---|
87 | }
|
---|