Raytrix Light Field SDK
5.0
|
Provides methods for using OpenGL contexts and textures.
Inherits Rx::Net::NativeInterfaceWrapper< Rx::LFR::COpenGlInterop, Rx::LFR::Net::Interfaces::EOpenGlInterop >.
Public Member Functions | |
OpenGlInterop () | |
Default constructor. More... | |
~OpenGlInterop () | |
Default Destructor. More... | |
void | CreateContextSharedWithCurrent () |
Creates an OpenGL context that is shared with the current OpenGL context. This requires a current OpenGL context. More... | |
void | DeleteStoredContext () |
Deletes the stored context (if it has been created by CreateContextSharedWithCurrent). More... | |
void | DestroyTexture (EImage eImgID) |
Destroys the OpenGL texture of the image defined by the given ID. More... | |
void | DestroyTextures () |
Destroys all OpenGL textures. More... | |
virtual System::Object ^ | GetInterface (Rx::LFR::Net::Interfaces::EOpenGlInterop eData) |
Gets the interface. More... | |
unsigned | GetTextureID (EImage eImgID) |
Gets the OpenGL texture ID of the image defined by the given ID. More... | |
bool | HasStoredContext () |
Query if this object has a valid OpenGL context stored. More... | |
bool | MakeStoredContextCurrent () |
Makes the stored OpenGL rendering context the calling thread's current rendering context. More... | |
void | ReleaseContext () |
Releases the OpenGL context. Changes the calling thread's current rendering context so it's no longer current. This method does not delete the stored OpenGL context. More... | |
void | StoreCurrentContext () |
Stores the current OpenGL context. Throws an exception if the calling thread hasn't a current OpenGL context. More... | |
Static Public Member Functions | |
static void | GetVersion (RX_OUT int % iMajor, RX_OUT int % iMinor) |
Gets the OpenGL version. More... | |
|
inline |
Default constructor.
|
inline |
Default Destructor.
|
inline |
Creates an OpenGL context that is shared with the current OpenGL context. This requires a current OpenGL context.
|
inline |
Deletes the stored context (if it has been created by CreateContextSharedWithCurrent).
|
inline |
Destroys the OpenGL texture of the image defined by the given ID.
Attention: An OpenGL context must be stored before by calling StoreCurrentContext.
eImgID | [in] The image ID. |
|
inline |
Destroys all OpenGL textures.
Attention: An OpenGL context must be stored before by calling StoreCurrentContext.
|
inlinevirtualinherited |
Gets the interface.
|
inline |
Gets the OpenGL texture ID of the image defined by the given ID.
If the desired texture has not been created yet, the returned texture ID is 0.
Attention: An OpenGL context must be stored before by calling StoreCurrentContext.
eImgID | [in] The image ID. |
|
inlinestatic |
Gets the OpenGL version.
iMajor | [out] The major part of the version. |
iMinor | [out] The minor part of the version. |
|
inline |
Query if this object has a valid OpenGL context stored.
|
inline |
Makes the stored OpenGL rendering context the calling thread's current rendering context.
|
inline |
Releases the OpenGL context. Changes the calling thread's current rendering context so it's no longer current. This method does not delete the stored OpenGL context.
|
inline |
Stores the current OpenGL context. Throws an exception if the calling thread hasn't a current OpenGL context.