Changeset 20175 in vbox for trunk/src/VBox/HostServices/SharedOpenGL
- Timestamp:
- Jun 2, 2009 7:37:31 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_shaders.c
r20174 r20175 23 23 void crUnpackExtendBindAttribLocation(void) 24 24 { 25 26 25 GLuint program = READ_DATA(8, GLuint); 26 GLuint index = READ_DATA(12, GLuint); 27 27 const char *name = DATA_POINTER(16, const char); 28 28 29 29 cr_unpackDispatch.BindAttribLocation(program, index, name); 30 30 } 31 31 … … 33 33 { 34 34 GLint *length = NULL; 35 36 35 GLuint shader = READ_DATA(8, GLuint); 36 GLsizei count = READ_DATA(12, GLsizei); 37 37 GLint hasNonLocalLen = READ_DATA(16, GLsizei); 38 38 GLint *pLocalLength = DATA_POINTER(20, GLint); … … 60 60 } 61 61 62 62 cr_unpackDispatch.ShaderSource(shader, count, ppStrings, length ? length : pLocalLength); 63 63 crFree(ppStrings); 64 64 } … … 66 66 void crUnpackExtendUniform1fv(void) 67 67 { 68 69 70 71 68 GLint location = READ_DATA(8, GLint); 69 GLsizei count = READ_DATA(12, GLsizei); 70 const GLfloat *value = DATA_POINTER(16, const GLfloat); 71 cr_unpackDispatch.Uniform1fv(location, count, value); 72 72 } 73 73 74 74 void crUnpackExtendUniform1iv(void) 75 75 { 76 77 76 GLint location = READ_DATA(8, GLint); 77 GLsizei count = READ_DATA(12, GLsizei); 78 78 const GLint *value = DATA_POINTER(16, const GLint); 79 79 cr_unpackDispatch.Uniform1iv(location, count, value); 80 80 } 81 81 82 82 void crUnpackExtendUniform2fv(void) 83 83 { 84 85 86 87 84 GLint location = READ_DATA(8, GLint); 85 GLsizei count = READ_DATA(12, GLsizei); 86 const GLfloat *value = DATA_POINTER(16, const GLfloat); 87 cr_unpackDispatch.Uniform2fv(location, count, value); 88 88 } 89 89 90 90 void crUnpackExtendUniform2iv(void) 91 91 { 92 93 92 GLint location = READ_DATA(8, GLint); 93 GLsizei count = READ_DATA(12, GLsizei); 94 94 const GLint *value = DATA_POINTER(16, const GLint); 95 95 cr_unpackDispatch.Uniform2iv(location, count, value); 96 96 } 97 97 98 98 void crUnpackExtendUniform3fv(void) 99 99 { 100 101 102 103 100 GLint location = READ_DATA(8, GLint); 101 GLsizei count = READ_DATA(12, GLsizei); 102 const GLfloat *value = DATA_POINTER(16, const GLfloat); 103 cr_unpackDispatch.Uniform3fv(location, count, value); 104 104 } 105 105 106 106 void crUnpackExtendUniform3iv(void) 107 107 { 108 109 108 GLint location = READ_DATA(8, GLint); 109 GLsizei count = READ_DATA(12, GLsizei); 110 110 const GLint *value = DATA_POINTER(16, const GLint); 111 111 cr_unpackDispatch.Uniform3iv(location, count, value); 112 112 } 113 113 114 114 void crUnpackExtendUniform4fv(void) 115 115 { 116 117 118 119 116 GLint location = READ_DATA(8, GLint); 117 GLsizei count = READ_DATA(12, GLsizei); 118 const GLfloat *value = DATA_POINTER(16, const GLfloat); 119 cr_unpackDispatch.Uniform4fv(location, count, value); 120 120 } 121 121 122 122 void crUnpackExtendUniform4iv(void) 123 123 { 124 125 124 GLint location = READ_DATA(8, GLint); 125 GLsizei count = READ_DATA(12, GLsizei); 126 126 const GLint *value = DATA_POINTER(16, const GLint); 127 127 cr_unpackDispatch.Uniform4iv(location, count, value); 128 128 } 129 129 130 130 void crUnpackExtendUniformMatrix2fv(void) 131 131 { 132 133 134 135 136 132 GLint location = READ_DATA(8, GLint); 133 GLsizei count = READ_DATA(12, GLsizei); 134 GLboolean transpose = READ_DATA(16, GLboolean); 135 const GLfloat *value = DATA_POINTER(16+sizeof(GLboolean), const GLfloat); 136 cr_unpackDispatch.UniformMatrix2fv(location, count, transpose, value); 137 137 } 138 138 139 139 void crUnpackExtendUniformMatrix3fv(void) 140 140 { 141 142 143 144 145 141 GLint location = READ_DATA(8, GLint); 142 GLsizei count = READ_DATA(12, GLsizei); 143 GLboolean transpose = READ_DATA(16, GLboolean); 144 const GLfloat *value = DATA_POINTER(16+sizeof(GLboolean), const GLfloat); 145 cr_unpackDispatch.UniformMatrix3fv(location, count, transpose, value); 146 146 } 147 147 148 148 void crUnpackExtendUniformMatrix4fv(void) 149 149 { 150 151 152 153 154 150 GLint location = READ_DATA(8, GLint); 151 GLsizei count = READ_DATA(12, GLsizei); 152 GLboolean transpose = READ_DATA(16, GLboolean); 153 const GLfloat *value = DATA_POINTER(16+sizeof(GLboolean), const GLfloat); 154 cr_unpackDispatch.UniformMatrix4fv(location, count, transpose, value); 155 155 } 156 156
Note:
See TracChangeset
for help on using the changeset viewer.