Пример #1
0
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 );
}
Пример #2
0
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);
}
Пример #3
0
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);
}
Пример #4
0
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);
}
Пример #5
0
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);
}
Пример #6
0
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);
}
Пример #7
0
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);
}
Пример #8
0
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);
}
Пример #9
0
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);
}
Пример #10
0
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);
}
Пример #11
0
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);
}
Пример #12
0
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 );
}
Пример #13
0
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);
}
Пример #14
0
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 );
}