void crUnpackExtendAreTexturesResident( void ) { GLsizei n = READ_DATA( 8, GLsizei ); const GLuint *textures = DATA_POINTER( 12, const GLuint ); SET_RETURN_PTR(12 + n * sizeof(GLuint)); SET_WRITEBACK_PTR(20 + n * sizeof(GLuint)); (void) cr_unpackDispatch.AreTexturesResident( n, textures, NULL ); }
void crUnpackExtendGetProgramInfoLog(void) { GLuint program = READ_DATA(8, GLuint); GLsizei bufSize = READ_DATA(12, GLsizei); SET_RETURN_PTR(16); SET_WRITEBACK_PTR(24); cr_unpackDispatch.GetProgramInfoLog(program, bufSize, NULL, NULL); }
void crUnpackExtendGetUniformsLocations(void) { GLuint program = READ_DATA(8, GLuint); GLsizei maxcbData = READ_DATA(12, GLsizei); SET_RETURN_PTR(16); SET_WRITEBACK_PTR(24); cr_unpackDispatch.GetUniformsLocations(program, maxcbData, NULL, NULL); }
void crUnpackExtendGetShaderSource(void) { GLuint shader = READ_DATA(8, GLuint); GLsizei bufSize = READ_DATA(12, GLsizei); SET_RETURN_PTR(16); SET_WRITEBACK_PTR(24); cr_unpackDispatch.GetShaderSource(shader, bufSize, NULL, NULL); }
void crUnpackExtendGetAttachedObjectsARB(void) { VBoxGLhandleARB containerObj = READ_DATA(8, VBoxGLhandleARB); GLsizei maxCount = READ_DATA(12, GLsizei); SET_RETURN_PTR(16); SET_WRITEBACK_PTR(24); cr_unpackDispatch.GetAttachedObjectsARB(containerObj, maxCount, NULL, NULL); }
void crUnpackExtendGetInfoLogARB(void) { VBoxGLhandleARB obj = READ_DATA(8, VBoxGLhandleARB); GLsizei maxLength = READ_DATA(12, GLsizei); SET_RETURN_PTR(16); SET_WRITEBACK_PTR(24); cr_unpackDispatch.GetInfoLogARB(obj, maxLength, NULL, NULL); }
void crUnpackExtendGetAttachedShaders(void) { GLuint program = READ_DATA(8, GLuint); GLsizei maxCount = READ_DATA(12, GLsizei); SET_RETURN_PTR(16); SET_WRITEBACK_PTR(24); cr_unpackDispatch.GetAttachedShaders(program, maxCount, NULL, NULL); }
void crUnpackExtendAreProgramsResidentNV(void) { GLsizei n = READ_DATA(8, GLsizei); const GLuint *programs = DATA_POINTER(12, const GLuint); SET_RETURN_PTR(12 + n * sizeof(GLuint)); SET_WRITEBACK_PTR(20 + n * sizeof(GLuint)); (void) cr_unpackDispatch.AreProgramsResidentNV(n, programs, NULL); }
void crUnpackExtendGetUniformLocation(void) { int packet_length = READ_DATA(0, int); GLuint program = READ_DATA(8, GLuint); const char *name = DATA_POINTER(12, const char); SET_RETURN_PTR(packet_length-16); SET_WRITEBACK_PTR(packet_length-8); cr_unpackDispatch.GetUniformLocation(program, name); }
void crUnpackExtendGetActiveUniform(void) { GLuint program = READ_DATA(8, GLuint); GLuint index = READ_DATA(12, GLuint); GLsizei bufSize = READ_DATA(16, GLsizei); SET_RETURN_PTR(20); SET_WRITEBACK_PTR(28); cr_unpackDispatch.GetActiveUniform(program, index, bufSize, NULL, NULL, NULL, NULL); }
void crUnpackExtendGetProgramNamedParameterfvNV(void) { GLuint id = READ_DATA(8, GLuint); GLsizei len = READ_DATA(12, GLsizei); const GLubyte *name = DATA_POINTER(16, GLubyte); SET_RETURN_PTR(16+len); SET_WRITEBACK_PTR(16+len+8); cr_unpackDispatch.GetProgramNamedParameterfvNV(id, len, name, NULL); }
void crUnpackExtendGetCompressedTexImageARB(void) { GLenum target = READ_DATA( 8, GLenum ); GLint level = READ_DATA( 12, GLint ); GLvoid *img; SET_RETURN_PTR( 16 ); SET_WRITEBACK_PTR( 24 ); img = DATA_POINTER(16, GLvoid); cr_unpackDispatch.GetCompressedTexImageARB( target, level, img ); }
void crUnpackExtendGetTexImage(void) { GLenum target = READ_DATA( 8, GLenum ); GLint level = READ_DATA( 12, GLint ); GLenum format = READ_DATA( 16, GLenum ); GLenum type = READ_DATA( 20, GLenum ); GLvoid *pixels; SET_RETURN_PTR(24); SET_WRITEBACK_PTR(32); pixels = DATA_POINTER(24, GLvoid); cr_unpackDispatch.GetTexImage(target, level, format, type, pixels); }
void crUnpackExtendGetBufferSubDataARB( void ) { GLenum target = READ_DATA( 8, GLenum ); GLintptrARB offset = READ_DATA( 12, GLint ); GLsizeiptrARB size = READ_DATA( 16, GLint ); #if 0 GLvoid *data; #endif SET_RETURN_PTR( 20 ); SET_WRITEBACK_PTR( 28 ); #if 0 crMemcpy( &data, DATA_POINTER( 20, GLvoid ), sizeof(data) ); printf("%s data=%p\n", __FUNCTION__, data); cr_unpackDispatch.GetBufferSubDataARB( target, offset, size, data ); #endif cr_unpackDispatch.GetBufferSubDataARB( target, offset, size, NULL ); }