Changeset 21422 in vbox for trunk/src/VBox/HostServices/SharedOpenGL
- Timestamp:
- Jul 9, 2009 10:03:37 AM (15 years ago)
- Location:
- trunk/src/VBox/HostServices/SharedOpenGL/unpacker
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_arrays.c
r21308 r21422 24 24 GLenum type = READ_DATA( 12, GLenum ); 25 25 GLsizei stride = READ_DATA( 16, GLsizei ); 26 GLintptrARB pointer = READ_DATA( 20, GLintptrARB);26 GLintptrARB pointer = (GLintptrARB) READ_DATA( 20, GLuint ); 27 27 cr_unpackDispatch.VertexPointer( size, type, stride, (void *) pointer ); 28 28 } … … 33 33 GLenum type = READ_DATA( 12, GLenum ); 34 34 GLsizei stride = READ_DATA( 16, GLsizei ); 35 GLintptrARB pointer = READ_DATA( 20, GL intptrARB);35 GLintptrARB pointer = READ_DATA( 20, GLuint ); 36 36 cr_unpackDispatch.TexCoordPointer( size, type, stride, (void *) pointer ); 37 37 } … … 41 41 GLenum type = READ_DATA( 8, GLenum ); 42 42 GLsizei stride = READ_DATA( 12, GLsizei ); 43 GLintptrARB pointer = READ_DATA( 16, GL intptrARB);43 GLintptrARB pointer = READ_DATA( 16, GLuint ); 44 44 cr_unpackDispatch.NormalPointer( type, stride, (void *) pointer ); 45 45 } … … 49 49 GLenum type = READ_DATA( 8, GLenum ); 50 50 GLsizei stride = READ_DATA( 12, GLsizei ); 51 GLintptrARB pointer = READ_DATA( 16, GL intptrARB);51 GLintptrARB pointer = READ_DATA( 16, GLuint ); 52 52 cr_unpackDispatch.IndexPointer( type, stride, (void *) pointer ); 53 53 } … … 56 56 { 57 57 GLsizei stride = READ_DATA( 8, GLsizei ); 58 GLintptrARB pointer = READ_DATA( 12, GL intptrARB);58 GLintptrARB pointer = READ_DATA( 12, GLuint ); 59 59 cr_unpackDispatch.EdgeFlagPointer( stride, (void *) pointer ); 60 60 } … … 65 65 GLenum type = READ_DATA( 12, GLenum ); 66 66 GLsizei stride = READ_DATA( 16, GLsizei ); 67 GLintptrARB pointer = READ_DATA( 20, GL intptrARB);67 GLintptrARB pointer = READ_DATA( 20, GLuint ); 68 68 cr_unpackDispatch.ColorPointer( size, type, stride, (void *) pointer ); 69 69 } … … 73 73 GLenum type = READ_DATA( 8, GLenum ); 74 74 GLsizei stride = READ_DATA( 12, GLsizei ); 75 GLintptrARB pointer = READ_DATA( 16, GL intptrARB);75 GLintptrARB pointer = READ_DATA( 16, GLuint ); 76 76 cr_unpackDispatch.FogCoordPointerEXT( type, stride, (void *) pointer ); 77 77 } … … 82 82 GLenum type = READ_DATA( 12, GLenum ); 83 83 GLsizei stride = READ_DATA( 16, GLsizei ); 84 GLintptrARB pointer = READ_DATA( 20, GL intptrARB);84 GLintptrARB pointer = READ_DATA( 20, GLuint ); 85 85 cr_unpackDispatch.SecondaryColorPointerEXT( size, type, stride, (void *) pointer ); 86 86 } … … 93 93 GLboolean normalized = READ_DATA( 20, GLboolean ); 94 94 GLsizei stride = READ_DATA( 24, GLsizei ); 95 GLintptrARB pointer = READ_DATA( 28, GL intptrARB);95 GLintptrARB pointer = READ_DATA( 28, GLuint ); 96 96 cr_unpackDispatch.VertexAttribPointerARB( index, size, type, normalized, stride, (void *) pointer ); 97 97 } … … 103 103 GLenum type = READ_DATA( 16, GLenum ); 104 104 GLsizei stride = READ_DATA( 20, GLsizei ); 105 GLintptrARB pointer = READ_DATA( 24, GL intptrARB);105 GLintptrARB pointer = READ_DATA( 24, GLuint ); 106 106 cr_unpackDispatch.VertexAttribPointerNV( index, size, type, stride, (void *) pointer ); 107 107 } … … 111 111 GLenum format = READ_DATA( 8, GLenum ); 112 112 GLsizei stride = READ_DATA( 12, GLsizei ); 113 GLintptrARB pointer = READ_DATA( 16, GL intptrARB);113 GLintptrARB pointer = READ_DATA( 16, GLuint ); 114 114 cr_unpackDispatch.InterleavedArrays( format, stride, (void *) pointer ); 115 115 } … … 120 120 GLsizei count = READ_DATA( 12, GLsizei ); 121 121 GLenum type = READ_DATA( 16, GLenum ); 122 GLintptrARB indices = READ_DATA( 20, GL intptrARB);122 GLintptrARB indices = READ_DATA( 20, GLuint ); 123 123 void * indexptr; 124 124 #ifdef CR_ARB_vertex_buffer_object … … 128 128 indexptr = DATA_POINTER(24, void); 129 129 #endif 130 /*crDebug("DrawElements: count=%i, indexptr=%p, hasidx=%p", count, indexptr, hasidxdata);*/131 130 cr_unpackDispatch.DrawElements(mode, count, type, indexptr); 132 131 } … … 139 138 GLsizei count = READ_DATA( 20, GLsizei ); 140 139 GLenum type = READ_DATA( 24, GLenum ); 141 GLintptrARB indices = READ_DATA( 28, GL intptrARB);140 GLintptrARB indices = READ_DATA( 28, GLuint ); 142 141 void * indexptr; 143 142 #ifdef CR_ARB_vertex_buffer_object -
trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_bufferobject.c
r21308 r21422 13 13 { 14 14 GLenum target = READ_DATA( 8, GLenum ); 15 GLintptrARB offset = READ_DATA( 12, GLint ); 16 GLsizeiptrARB size = READ_DATA( 16, GLint ); 17 #if 0 18 GLvoid *data; 19 #endif 15 GLintptrARB offset = READ_DATA( 12, GLuint ); 16 GLsizeiptrARB size = READ_DATA( 16, GLuint ); 20 17 21 18 SET_RETURN_PTR( 20 ); 22 19 SET_WRITEBACK_PTR( 28 ); 23 #if 0 24 crMemcpy( &data, DATA_POINTER( 20, GLvoid ), sizeof(data) ); 25 printf("%s data=%p\n", __FUNCTION__, data); 26 cr_unpackDispatch.GetBufferSubDataARB( target, offset, size, data ); 27 #endif 20 28 21 cr_unpackDispatch.GetBufferSubDataARB( target, offset, size, NULL ); 29 22 } … … 33 26 { 34 27 GLenum target = READ_DATA(sizeof(int) + 4, GLenum); 35 GLsizeiptrARB size = READ_DATA(sizeof(int) + 8, GL sizeiptrARB);28 GLsizeiptrARB size = READ_DATA(sizeof(int) + 8, GLuint); 36 29 GLenum usage = READ_DATA(sizeof(int) + 12, GLenum); 37 30 GLboolean hasdata = READ_DATA(sizeof(int) + 16, GLboolean); 38 31 GLvoid *data = DATA_POINTER(sizeof(int) + 16 + sizeof(GLboolean), GLvoid); 39 40 CRASSERT(sizeof(GLsizeiptrARB) == 4);41 /*@todo, why?*/42 /*CRASSERT(usage == GL_STATIC_DRAW_ARB);*/43 32 44 33 cr_unpackDispatch.BufferDataARB(target, size, hasdata ? data:NULL, usage); … … 49 38 { 50 39 GLenum target = READ_DATA( sizeof(int) + 4, GLenum ); 51 GLintptrARB offset = READ_DATA( sizeof(int) + 8, GL intptrARB);52 GLsizeiptrARB size = READ_DATA( sizeof(int) + 12, GL sizeiptrARB);40 GLintptrARB offset = READ_DATA( sizeof(int) + 8, GLuint ); 41 GLsizeiptrARB size = READ_DATA( sizeof(int) + 12, GLuint ); 53 42 GLvoid *data = DATA_POINTER( sizeof(int) + 16, GLvoid ); 54 43
Note:
See TracChangeset
for help on using the changeset viewer.