VirtualBox

Ignore:
Timestamp:
Mar 5, 2010 2:13:31 PM (15 years ago)
Author:
vboxsync
Message:

crOpenGL: add GL_ARB_pixel_buffer_object support

Location:
trunk/src/VBox/GuestHost/OpenGL/include
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/include/cr_extstring.h

    r22284 r27091  
    9494        "GL_ARB_vertex_buffer_object "
    9595#endif
     96#ifdef CR_ARB_pixel_buffer_object
     97    "GL_ARB_pixel_buffer_object "
     98#endif
    9699#ifdef CR_ARB_vertex_program
    97100        "GL_ARB_vertex_program "
  • trunk/src/VBox/GuestHost/OpenGL/include/cr_protocol.h

    r23399 r27091  
    1616/*For now guest is allowed to connect host opengl service if protocol version matches exactly*/
    1717/*Note: that after any change to this file, or glapi_parser\apispec.txt version should be changed*/
    18 #define CR_PROTOCOL_VERSION_MAJOR 5
     18#define CR_PROTOCOL_VERSION_MAJOR 6
    1919#define CR_PROTOCOL_VERSION_MINOR 1
    2020
  • trunk/src/VBox/GuestHost/OpenGL/include/cr_version.h

    r22284 r27091  
    122122#define CR_EXT_compiled_vertex_array 1
    123123
     124#define CR_ARB_pixel_buffer_object 1
     125
    124126#endif /* CR_VERSION_H */
  • trunk/src/VBox/GuestHost/OpenGL/include/state/cr_bufferobject.h

    r23123 r27091  
    1919        CRbitvalue      arrayBinding[CR_MAX_BITARRAY];
    2020        CRbitvalue      elementsBinding[CR_MAX_BITARRAY];
     21    CRbitvalue  packBinding[CR_MAX_BITARRAY];
     22    CRbitvalue  unpackBinding[CR_MAX_BITARRAY];
    2123} CRBufferObjectBits;
    2224
     
    3436        GLvoid *pointer;  /* only valid while buffer is mapped */
    3537        GLvoid *data;     /* the buffer data, if retainBufferData is true */
     38    GLboolean bResyncOnRead; /* buffer data could be changed on server side,
     39                                so we need to resync every time guest wants to read from it*/
    3640        CRbitvalue dirty[CR_MAX_BITARRAY];  /* dirty data or state */
    3741        GLintptrARB dirtyStart, dirtyLength; /* dirty region */
     
    4246        CRBufferObject *arrayBuffer;
    4347        CRBufferObject *elementsBuffer;
     48    CRBufferObject *packBuffer;
     49    CRBufferObject *unpackBuffer;
    4450
    4551        CRBufferObject *nullBuffer;  /* name = 0 */
     
    5056} CRBufferObjectState;
    5157
     58DECLEXPORT(CRBufferObject *) crStateGetBoundBufferObject(GLenum target, CRBufferObjectState *b);
     59DECLEXPORT(GLboolean) crStateIsBufferBound(GLenum target);
    5260
    5361#ifdef __cplusplus
  • trunk/src/VBox/GuestHost/OpenGL/include/state/cr_limits.h

    r26407 r27091  
    228228        GLboolean ARB_transpose_matrix;
    229229        GLboolean ARB_vertex_buffer_object;
     230    GLboolean ARB_pixel_buffer_object;
    230231        GLboolean ARB_vertex_program;
    231232        GLboolean ARB_window_pos;
  • trunk/src/VBox/GuestHost/OpenGL/include/state/cr_texture.h

    r25154 r27091  
    2222 */
    2323#define CR_STATE_NO_TEXTURE_IMAGE_STORE
     24
     25#if defined(CR_ARB_pixel_buffer_object) && !defined(CR_STATE_NO_TEXTURE_IMAGE_STORE)
     26#error CR_ARB_pixel_buffer_object not supported without CR_STATE_NO_TEXTURE_IMAGE_STORE
     27#endif
    2428
    2529#define CR_MAX_MIPMAP_LEVELS 20
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