VirtualBox

Changeset 20437 in vbox for trunk/src/VBox/HostServices


Ignore:
Timestamp:
Jun 9, 2009 1:06:48 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
48386
Message:

crOpenGL: fix various opengl 2.0 get functions

Location:
trunk/src/VBox/HostServices/SharedOpenGL
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_getshaders.c

    r20179 r20437  
    2929} crGetActive_t;
    3030
    31 /*@todo: most of those functions would fail. Either need to support more than 1 cr_server.return_ptr(s) or
    32  *       change pack_spu to pack output args into single buffer.
    33  */
    34 
    3531void SERVER_DISPATCH_APIENTRY crServerDispatchGetActiveAttrib(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, char *name)
    3632{
  • trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_shaders.c

    r20327 r20437  
    159159    cr_unpackDispatch.DrawBuffers(n, bufs);
    160160}
     161
     162void 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
     172void 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
     182void 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
     191void 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
     200void 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
     209void 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
     218void 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
     228void 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  
    153153UniformMatrix4fv
    154154DrawBuffers
     155GetActiveAttrib
     156GetActiveUniform
     157GetAttachedShaders
     158GetShaderInfoLog
     159GetProgramInfoLog
     160GetShaderSource
     161GetAttribLocation
     162GetUniformLocation
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette