VirtualBox

Ignore:
Timestamp:
Jun 5, 2009 1:07:20 PM (15 years ago)
Author:
vboxsync
Message:

crOpenGL: more opengl 2.0 functions

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/get_components.py

    r15532 r20327  
    111111        'GL_CURRENT_QUERY_ARB': (1, 'CR_ARB_occlusion_query'),
    112112        'GL_TEXTURE_COMPRESSED_IMAGE_SIZE': (1, 'CR_ARB_texture_compression'),
    113         'GL_POINT_SPRITE_ARB': (1, 'CR_ARB_point_sprite'),
    114         'GL_COORD_REPLACE_ARB': (4, 'CR_ARB_point_sprite')
     113        'GL_COORD_REPLACE_ARB': (1, 'CR_ARB_point_sprite'),
    115114}
    116115
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/get_sizes.py

    r18302 r20327  
    335335    'GL_MAX_TEXTURE_IMAGE_UNITS_ARB': (1, 'CR_ARB_fragment_program'),
    336336    # We don't support GL_ARB_draw_buffers, but for some reason ubuntu64 8.10 vm queries it on macos host
    337     'GL_MAX_DRAW_BUFFERS_ARB': (1, 'VBOX')
     337    'GL_MAX_DRAW_BUFFERS_ARB': (1, 'VBOX'),
     338    # Vertex shaders (2.0) #
     339    'GL_MAX_VERTEX_UNIFORM_COMPONENTS': (1, 'CR_OPENGL_VERSION_2_0'),
     340    'GL_MAX_VARYING_FLOATS': (1, 'CR_OPENGL_VERSION_2_0'),
     341    'GL_MAX_VERTEX_ATTRIBS': (1, 'CR_OPENGL_VERSION_2_0'),
     342    'GL_MAX_TEXTURE_IMAGE_UNITS': (1, 'CR_OPENGL_VERSION_2_0'),
     343    'GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS': (1, 'CR_OPENGL_VERSION_2_0'),
     344    'GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS': (1, 'CR_OPENGL_VERSION_2_0'),
     345    'GL_MAX_TEXTURE_COORDS': (1, 'CR_OPENGL_VERSION_2_0'),
     346    'GL_VERTEX_PROGRAM_POINT_SIZE': (1, 'CR_OPENGL_VERSION_2_0'),
     347    'GL_VERTEX_PROGRAM_TWO_SIDE': (1, 'CR_OPENGL_VERSION_2_0'),
     348    # Fragment shaders (2.0) #
     349    'GL_MAX_FRAGMENT_UNIFORM_COMPONENTS': (1, 'CR_OPENGL_VERSION_2_0'),
     350    'GL_FRAGMENT_SHADER_DERIVATIVE_HINT': (1, 'CR_OPENGL_VERSION_2_0'),
     351    # Draw buffers (2.0) #
     352    'GL_MAX_DRAW_BUFFERS': (1, 'CR_OPENGL_VERSION_2_0'),
     353    'GL_DRAW_BUFFER0': (1, 'CR_OPENGL_VERSION_2_0'),
     354    'GL_DRAW_BUFFER1': (1, 'CR_OPENGL_VERSION_2_0'),
     355    'GL_DRAW_BUFFER2': (1, 'CR_OPENGL_VERSION_2_0'),
     356    'GL_DRAW_BUFFER3': (1, 'CR_OPENGL_VERSION_2_0'),
     357    'GL_DRAW_BUFFER4': (1, 'CR_OPENGL_VERSION_2_0'),
     358    'GL_DRAW_BUFFER5': (1, 'CR_OPENGL_VERSION_2_0'),
     359    'GL_DRAW_BUFFER6': (1, 'CR_OPENGL_VERSION_2_0'),
     360    'GL_DRAW_BUFFER7': (1, 'CR_OPENGL_VERSION_2_0'),
     361    'GL_DRAW_BUFFER8': (1, 'CR_OPENGL_VERSION_2_0'),
     362    'GL_DRAW_BUFFER9': (1, 'CR_OPENGL_VERSION_2_0'),
     363    'GL_DRAW_BUFFER10': (1, 'CR_OPENGL_VERSION_2_0'),
     364    'GL_DRAW_BUFFER11': (1, 'CR_OPENGL_VERSION_2_0'),
     365    'GL_DRAW_BUFFER12': (1, 'CR_OPENGL_VERSION_2_0'),
     366    'GL_DRAW_BUFFER13': (1, 'CR_OPENGL_VERSION_2_0'),
     367    'GL_DRAW_BUFFER14': (1, 'CR_OPENGL_VERSION_2_0'),
     368    'GL_DRAW_BUFFER15': (1, 'CR_OPENGL_VERSION_2_0'),
     369    # Point sprite (2.0) #
     370    'GL_POINT_SPRITE': (1, 'CR_OPENGL_VERSION_2_0'),
     371    # Separate stencil (2.0) #
     372    'GL_STENCIL_BACK_FAIL': (1, 'CR_OPENGL_VERSION_2_0'),
     373    'GL_STENCIL_BACK_FUNC': (1, 'CR_OPENGL_VERSION_2_0'),
     374    'GL_STENCIL_BACK_PASS_DEPTH_FAIL': (1, 'CR_OPENGL_VERSION_2_0'),
     375    'GL_STENCIL_BACK_PASS_DEPTH_PASS': (1, 'CR_OPENGL_VERSION_2_0'),
     376
    338377}
    339378
  • trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_shaders.c

    r20176 r20327  
    152152    cr_unpackDispatch.UniformMatrix4fv(location, count, transpose, value);
    153153}
     154
     155void crUnpackExtendDrawBuffers(void)
     156{
     157    GLsizei n = READ_DATA(8, GLsizei);
     158    const GLenum *bufs = DATA_POINTER(8+sizeof(GLsizei), const GLenum);
     159    cr_unpackDispatch.DrawBuffers(n, bufs);
     160}
  • trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpacker_special

    r20174 r20327  
    152152UniformMatrix3fv
    153153UniformMatrix4fv
     154DrawBuffers
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