VirtualBox

Ignore:
Timestamp:
May 3, 2019 9:51:02 PM (6 years ago)
Author:
vboxsync
Message:

Additions/common/crOpengl,GuestHost/OpenGL,HostServices/SharedOpenGL: Eliminate all global variables from the state tracker library (state_tracker) in preparation of the SPU DLL merging, bugref:9435

File:
1 edited

Legend:

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

    r69474 r78375  
    5454
    5555        CRBufferObject *nullBuffer;  /* name = 0 */
     56    /** Attached state tracker. */
     57    PCRStateTracker pStateTracker;
    5658} CRBufferObjectState;
    5759
    5860DECLEXPORT(CRBufferObject *) crStateGetBoundBufferObject(GLenum target, CRBufferObjectState *b);
    59 DECLEXPORT(GLboolean) crStateIsBufferBound(GLenum target);
     61DECLEXPORT(GLboolean) crStateIsBufferBound(PCRStateTracker pState, GLenum target);
    6062struct CRContext;
    6163DECLEXPORT(GLboolean) crStateIsBufferBoundForCtx(struct CRContext *g, GLenum target);
    6264
    63 DECLEXPORT(GLuint) STATE_APIENTRY crStateBufferHWIDtoID(GLuint hwid);
    64 DECLEXPORT(GLuint) STATE_APIENTRY crStateGetBufferHWID(GLuint id);
     65DECLEXPORT(GLuint) STATE_APIENTRY crStateBufferHWIDtoID(PCRStateTracker pState, GLuint hwid);
     66DECLEXPORT(GLuint) STATE_APIENTRY crStateGetBufferHWID(PCRStateTracker pState, GLuint id);
    6567
    66 DECLEXPORT(void) crStateRegBuffers(GLsizei n, GLuint *buffers);
     68DECLEXPORT(void) crStateRegBuffers(PCRStateTracker pState, GLsizei n, GLuint *buffers);
    6769#ifdef __cplusplus
    6870}
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