VirtualBox

source: vbox/trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_misc.c@ 35650

Last change on this file since 35650 was 27091, checked in by vboxsync, 15 years ago

crOpenGL: add GL_ARB_pixel_buffer_object support

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
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
9void 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
24void 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
31void 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
42void 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
54void 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
66void 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}
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