Changeset 20437 in vbox for trunk/src/VBox/HostServices
- Timestamp:
- Jun 9, 2009 1:06:48 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 48386
- Location:
- trunk/src/VBox/HostServices/SharedOpenGL
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_getshaders.c
r20179 r20437 29 29 } crGetActive_t; 30 30 31 /*@todo: most of those functions would fail. Either need to support more than 1 cr_server.return_ptr(s) or32 * change pack_spu to pack output args into single buffer.33 */34 35 31 void SERVER_DISPATCH_APIENTRY crServerDispatchGetActiveAttrib(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, char *name) 36 32 { -
trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_shaders.c
r20327 r20437 159 159 cr_unpackDispatch.DrawBuffers(n, bufs); 160 160 } 161 162 void crUnpackExtendGetActiveAttrib(void) 163 { 164 GLuint program = READ_DATA(8, GLuint); 165 GLuint index = READ_DATA(12, GLuint); 166 GLsizei bufSize = READ_DATA(16, GLsizei); 167 SET_RETURN_PTR(20); 168 SET_WRITEBACK_PTR(28); 169 cr_unpackDispatch.GetActiveAttrib(program, index, bufSize, NULL, NULL, NULL, NULL); 170 } 171 172 void crUnpackExtendGetActiveUniform(void) 173 { 174 GLuint program = READ_DATA(8, GLuint); 175 GLuint index = READ_DATA(12, GLuint); 176 GLsizei bufSize = READ_DATA(16, GLsizei); 177 SET_RETURN_PTR(20); 178 SET_WRITEBACK_PTR(28); 179 cr_unpackDispatch.GetActiveUniform(program, index, bufSize, NULL, NULL, NULL, NULL); 180 } 181 182 void crUnpackExtendGetAttachedShaders(void) 183 { 184 GLuint program = READ_DATA(8, GLuint); 185 GLsizei maxCount = READ_DATA(12, GLsizei); 186 SET_RETURN_PTR(16); 187 SET_WRITEBACK_PTR(24); 188 cr_unpackDispatch.GetAttachedShaders(program, maxCount, NULL, NULL); 189 } 190 191 void crUnpackExtendGetProgramInfoLog(void) 192 { 193 GLuint program = READ_DATA(8, GLuint); 194 GLsizei bufSize = READ_DATA(12, GLsizei); 195 SET_RETURN_PTR(16); 196 SET_WRITEBACK_PTR(24); 197 cr_unpackDispatch.GetProgramInfoLog(program, bufSize, NULL, NULL); 198 } 199 200 void crUnpackExtendGetShaderInfoLog(void) 201 { 202 GLuint shader = READ_DATA(8, GLuint); 203 GLsizei bufSize = READ_DATA(12, GLsizei); 204 SET_RETURN_PTR(16); 205 SET_WRITEBACK_PTR(24); 206 cr_unpackDispatch.GetShaderInfoLog(shader, bufSize, NULL, NULL); 207 } 208 209 void crUnpackExtendGetShaderSource(void) 210 { 211 GLuint shader = READ_DATA(8, GLuint); 212 GLsizei bufSize = READ_DATA(12, GLsizei); 213 SET_RETURN_PTR(16); 214 SET_WRITEBACK_PTR(24); 215 cr_unpackDispatch.GetShaderSource(shader, bufSize, NULL, NULL); 216 } 217 218 void crUnpackExtendGetAttribLocation(void) 219 { 220 int packet_length = READ_DATA(0, int); 221 GLuint program = READ_DATA(8, GLuint); 222 const char *name = DATA_POINTER(12, const char); 223 SET_RETURN_PTR(packet_length-16); 224 SET_WRITEBACK_PTR(packet_length-8); 225 cr_unpackDispatch.GetAttribLocation(program, name); 226 } 227 228 void crUnpackExtendGetUniformLocation(void) 229 { 230 int packet_length = READ_DATA(0, int); 231 GLuint program = READ_DATA(8, GLuint); 232 const char *name = DATA_POINTER(12, const char); 233 SET_RETURN_PTR(packet_length-16); 234 SET_WRITEBACK_PTR(packet_length-8); 235 cr_unpackDispatch.GetUniformLocation(program, name); 236 } -
trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpacker_special
r20327 r20437 153 153 UniformMatrix4fv 154 154 DrawBuffers 155 GetActiveAttrib 156 GetActiveUniform 157 GetAttachedShaders 158 GetShaderInfoLog 159 GetProgramInfoLog 160 GetShaderSource 161 GetAttribLocation 162 GetUniformLocation
Note:
See TracChangeset
for help on using the changeset viewer.