Open CASCADE Technology
7.2.0
|
#include <OpenGl_AspectFace.hxx>
Public Member Functions | |
Resources () | |
Empty constructor. More... | |
Standard_Boolean | IsTextureReady () const |
Return TRUE if texture resource is up-to-date. More... | |
Standard_Boolean | IsShaderReady () const |
Return TRUE if shader resource is up-to-date. More... | |
void | SetTextureReady () |
Set texture resource up-to-date state. More... | |
void | SetShaderReady () |
Set shader resource up-to-date state. More... | |
void | ResetShaderReadiness () |
Reset shader resource up-to-date state. More... | |
const Handle< OpenGl_TextureSet > & | TextureSet () const |
Return textures array. More... | |
void | UpdateTexturesRediness (const Handle< Graphic3d_TextureSet > &theTextures) |
Update texture resource up-to-date state. More... | |
void | BuildTextures (const Handle< OpenGl_Context > &theCtx, const Handle< Graphic3d_TextureSet > &theTextures) |
Build texture resource. More... | |
void | BuildShader (const Handle< OpenGl_Context > &theCtx, const Handle< Graphic3d_ShaderProgram > &theShader) |
Build shader resource. More... | |
void | ReleaseTextures (OpenGl_Context *theCtx) |
Release texture resource. More... | |
Data Fields | |
Handle< OpenGl_ShaderProgram > | ShaderProgram |
TCollection_AsciiString | ShaderProgramId |
OpenGl resources.
|
inline |
Empty constructor.
void OpenGl_AspectFace::Resources::BuildShader | ( | const Handle< OpenGl_Context > & | theCtx, |
const Handle< Graphic3d_ShaderProgram > & | theShader | ||
) |
Build shader resource.
void OpenGl_AspectFace::Resources::BuildTextures | ( | const Handle< OpenGl_Context > & | theCtx, |
const Handle< Graphic3d_TextureSet > & | theTextures | ||
) |
Build texture resource.
|
inline |
Return TRUE if shader resource is up-to-date.
|
inline |
Return TRUE if texture resource is up-to-date.
void OpenGl_AspectFace::Resources::ReleaseTextures | ( | OpenGl_Context * | theCtx | ) |
Release texture resource.
|
inline |
Reset shader resource up-to-date state.
|
inline |
Set shader resource up-to-date state.
|
inline |
Set texture resource up-to-date state.
|
inline |
Return textures array.
void OpenGl_AspectFace::Resources::UpdateTexturesRediness | ( | const Handle< Graphic3d_TextureSet > & | theTextures | ) |
Update texture resource up-to-date state.
Handle< OpenGl_ShaderProgram > OpenGl_AspectFace::Resources::ShaderProgram |
TCollection_AsciiString OpenGl_AspectFace::Resources::ShaderProgramId |