Changeset 21306 in vbox for trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_arrays.c
- Timestamp:
- Jul 7, 2009 10:34:22 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 49648
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_arrays.c
r15532 r21306 21 21 void crUnpackExtendVertexPointer(void) 22 22 { 23 24 25 26 27 23 GLint size = READ_DATA( 8, GLint ); 24 GLenum type = READ_DATA( 12, GLenum ); 25 GLsizei stride = READ_DATA( 16, GLsizei ); 26 GLintptrARB pointer = READ_DATA( 20, GLintptrARB ); 27 cr_unpackDispatch.VertexPointer( size, type, stride, (void *) pointer ); 28 28 } 29 29 30 30 void crUnpackExtendTexCoordPointer(void) 31 31 { 32 33 34 35 36 32 GLint size = READ_DATA( 8, GLint ); 33 GLenum type = READ_DATA( 12, GLenum ); 34 GLsizei stride = READ_DATA( 16, GLsizei ); 35 GLintptrARB pointer = READ_DATA( 20, GLintptrARB ); 36 cr_unpackDispatch.TexCoordPointer( size, type, stride, (void *) pointer ); 37 37 } 38 38 39 39 void crUnpackExtendNormalPointer(void) 40 40 { 41 42 43 44 41 GLenum type = READ_DATA( 8, GLenum ); 42 GLsizei stride = READ_DATA( 12, GLsizei ); 43 GLintptrARB pointer = READ_DATA( 16, GLintptrARB ); 44 cr_unpackDispatch.NormalPointer( type, stride, (void *) pointer ); 45 45 } 46 46 47 47 void crUnpackExtendIndexPointer(void) 48 48 { 49 50 51 52 49 GLenum type = READ_DATA( 8, GLenum ); 50 GLsizei stride = READ_DATA( 12, GLsizei ); 51 GLintptrARB pointer = READ_DATA( 16, GLintptrARB ); 52 cr_unpackDispatch.IndexPointer( type, stride, (void *) pointer ); 53 53 } 54 54 55 55 void crUnpackExtendEdgeFlagPointer(void) 56 56 { 57 58 59 57 GLsizei stride = READ_DATA( 8, GLsizei ); 58 GLintptrARB pointer = READ_DATA( 12, GLintptrARB ); 59 cr_unpackDispatch.EdgeFlagPointer( stride, (void *) pointer ); 60 60 } 61 61 62 62 void crUnpackExtendColorPointer(void) 63 63 { 64 65 66 67 68 64 GLint size = READ_DATA( 8, GLint ); 65 GLenum type = READ_DATA( 12, GLenum ); 66 GLsizei stride = READ_DATA( 16, GLsizei ); 67 GLintptrARB pointer = READ_DATA( 20, GLintptrARB ); 68 cr_unpackDispatch.ColorPointer( size, type, stride, (void *) pointer ); 69 69 } 70 70 71 71 void crUnpackExtendFogCoordPointerEXT(void) 72 72 { 73 74 75 76 73 GLenum type = READ_DATA( 8, GLenum ); 74 GLsizei stride = READ_DATA( 12, GLsizei ); 75 GLintptrARB pointer = READ_DATA( 16, GLintptrARB ); 76 cr_unpackDispatch.FogCoordPointerEXT( type, stride, (void *) pointer ); 77 77 } 78 78 79 79 void crUnpackExtendSecondaryColorPointerEXT(void) 80 80 { 81 82 83 84 85 81 GLint size = READ_DATA( 8, GLint ); 82 GLenum type = READ_DATA( 12, GLenum ); 83 GLsizei stride = READ_DATA( 16, GLsizei ); 84 GLintptrARB pointer = READ_DATA( 20, GLintptrARB ); 85 cr_unpackDispatch.SecondaryColorPointerEXT( size, type, stride, (void *) pointer ); 86 86 } 87 87 88 88 void crUnpackExtendVertexAttribPointerARB(void) 89 89 { 90 91 92 93 94 95 96 90 GLuint index = READ_DATA( 8, GLuint); 91 GLint size = READ_DATA( 12, GLint ); 92 GLenum type = READ_DATA( 16, GLenum ); 93 GLboolean normalized = READ_DATA( 20, GLboolean ); 94 GLsizei stride = READ_DATA( 24, GLsizei ); 95 GLintptrARB pointer = READ_DATA( 28, GLintptrARB ); 96 cr_unpackDispatch.VertexAttribPointerARB( index, size, type, normalized, stride, (void *) pointer ); 97 97 } 98 98 99 99 void crUnpackExtendVertexAttribPointerNV(void) 100 100 { 101 102 103 104 105 106 101 GLuint index = READ_DATA( 8, GLuint); 102 GLint size = READ_DATA( 12, GLint ); 103 GLenum type = READ_DATA( 16, GLenum ); 104 GLsizei stride = READ_DATA( 20, GLsizei ); 105 GLintptrARB pointer = READ_DATA( 24, GLintptrARB ); 106 cr_unpackDispatch.VertexAttribPointerNV( index, size, type, stride, (void *) pointer ); 107 107 } 108 108 109 109 void crUnpackExtendInterleavedArrays(void) 110 110 { 111 112 113 114 111 GLenum format = READ_DATA( 8, GLenum ); 112 GLsizei stride = READ_DATA( 12, GLsizei ); 113 GLintptrARB pointer = READ_DATA( 16, GLintptrARB ); 114 cr_unpackDispatch.InterleavedArrays( format, stride, (void *) pointer ); 115 115 } 116 116 117 117 void crUnpackExtendDrawElements(void) 118 118 { 119 120 121 122 123 119 GLenum mode = READ_DATA( 8, GLenum ); 120 GLsizei count = READ_DATA( 12, GLsizei ); 121 GLenum type = READ_DATA( 16, GLenum ); 122 GLintptrARB indices = READ_DATA( 20, GLintptrARB ); 123 cr_unpackDispatch.DrawElements( mode, count, type, (void *) indices); 124 124 } 125 125 126 126 void crUnpackExtendDrawRangeElements(void) 127 127 { 128 129 130 131 132 133 134 128 GLenum mode = READ_DATA( 8, GLenum ); 129 GLuint start = READ_DATA( 12, GLuint ); 130 GLuint end = READ_DATA( 16, GLuint ); 131 GLsizei count = READ_DATA( 20, GLsizei ); 132 GLenum type = READ_DATA( 24, GLenum ); 133 GLintptrARB indices = READ_DATA( 28, GLintptrARB ); 134 cr_unpackDispatch.DrawRangeElements( mode, start, end, count, type, (void *) indices); 135 135 } 136 136 137 137 void crUnpackMultiDrawArraysEXT(void) 138 138 { 139 139 crError( "Can't decode MultiDrawArraysEXT" ); 140 140 } 141 141 142 142 void crUnpackMultiDrawElementsEXT(void) 143 143 { 144 144 crError( "Can't decode MultiDrawElementsEXT" ); 145 145 }
Note:
See TracChangeset
for help on using the changeset viewer.