Open CASCADE Technology  6.9.1
Public Member Functions | Data Fields
OpenGl_AspectFace::Resources Struct Reference

OpenGl resources. More...

#include <OpenGl_AspectFace.hxx>

Public Member Functions

 Resources ()
 
Standard_Boolean IsTextureReady () const
 
Standard_Boolean IsShaderReady () const
 
void SetTextureReady ()
 
void SetShaderReady ()
 
void ResetTextureReadiness ()
 
void ResetShaderReadiness ()
 
void BuildTexture (const Handle< OpenGl_Context > &theCtx, const Handle< Graphic3d_TextureMap > &theTexture)
 
void BuildShader (const Handle< OpenGl_Context > &theCtx, const Handle< Graphic3d_ShaderProgram > &theShader)
 

Data Fields

Handle< OpenGl_TextureTexture
 
TCollection_AsciiString TextureId
 
Handle< OpenGl_ShaderProgramShaderProgram
 
TCollection_AsciiString ShaderProgramId
 

Detailed Description

OpenGl resources.

Constructor & Destructor Documentation

OpenGl_AspectFace::Resources::Resources ( )
inline

Member Function Documentation

void OpenGl_AspectFace::Resources::BuildShader ( const Handle< OpenGl_Context > &  theCtx,
const Handle< Graphic3d_ShaderProgram > &  theShader 
)
void OpenGl_AspectFace::Resources::BuildTexture ( const Handle< OpenGl_Context > &  theCtx,
const Handle< Graphic3d_TextureMap > &  theTexture 
)
Standard_Boolean OpenGl_AspectFace::Resources::IsShaderReady ( ) const
inline
Standard_Boolean OpenGl_AspectFace::Resources::IsTextureReady ( ) const
inline
void OpenGl_AspectFace::Resources::ResetShaderReadiness ( )
inline
void OpenGl_AspectFace::Resources::ResetTextureReadiness ( )
inline
void OpenGl_AspectFace::Resources::SetShaderReady ( )
inline
void OpenGl_AspectFace::Resources::SetTextureReady ( )
inline

Field Documentation

Handle< OpenGl_ShaderProgram > OpenGl_AspectFace::Resources::ShaderProgram
TCollection_AsciiString OpenGl_AspectFace::Resources::ShaderProgramId
Handle< OpenGl_Texture > OpenGl_AspectFace::Resources::Texture
TCollection_AsciiString OpenGl_AspectFace::Resources::TextureId

The documentation for this struct was generated from the following file: