I'm learnning about vbox internals but I dont understand how get the return value when I call an expand opcode function. I can see in source which the ServerReturnValue function is used, but I dont know how get that value.
For example:
Code: Select all
void SERVER_DISPATCH_APIENTRY crServerDispatchGetProgramiv( GLuint program, GLenum pname, GLint * params )
{
GLint local_params[1];
(void) params;
cr_server.head_spu->dispatch_table.GetProgramiv(crStateGetProgramHWID(program), pname, local_params);
crServerReturnValue( &(local_params[0]), 1*sizeof(GLint) );
}
Sorry for my english, and thanks for readme.
Best Regards,
Nox.