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

OpenGl resources. More...

#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_ShaderProgramShaderProgram
 
TCollection_AsciiString ShaderProgramId
 

Detailed Description

OpenGl resources.

Constructor & Destructor Documentation

◆ Resources()

OpenGl_AspectFace::Resources::Resources ( )
inline

Empty constructor.

Member Function Documentation

◆ BuildShader()

void OpenGl_AspectFace::Resources::BuildShader ( const Handle< OpenGl_Context > &  theCtx,
const Handle< Graphic3d_ShaderProgram > &  theShader 
)

Build shader resource.

◆ BuildTextures()

void OpenGl_AspectFace::Resources::BuildTextures ( const Handle< OpenGl_Context > &  theCtx,
const Handle< Graphic3d_TextureSet > &  theTextures 
)

Build texture resource.

◆ IsShaderReady()

Standard_Boolean OpenGl_AspectFace::Resources::IsShaderReady ( ) const
inline

Return TRUE if shader resource is up-to-date.

◆ IsTextureReady()

Standard_Boolean OpenGl_AspectFace::Resources::IsTextureReady ( ) const
inline

Return TRUE if texture resource is up-to-date.

◆ ReleaseTextures()

void OpenGl_AspectFace::Resources::ReleaseTextures ( OpenGl_Context theCtx)

Release texture resource.

◆ ResetShaderReadiness()

void OpenGl_AspectFace::Resources::ResetShaderReadiness ( )
inline

Reset shader resource up-to-date state.

◆ SetShaderReady()

void OpenGl_AspectFace::Resources::SetShaderReady ( )
inline

Set shader resource up-to-date state.

◆ SetTextureReady()

void OpenGl_AspectFace::Resources::SetTextureReady ( )
inline

Set texture resource up-to-date state.

◆ TextureSet()

const Handle< OpenGl_TextureSet >& OpenGl_AspectFace::Resources::TextureSet ( ) const
inline

Return textures array.

◆ UpdateTexturesRediness()

void OpenGl_AspectFace::Resources::UpdateTexturesRediness ( const Handle< Graphic3d_TextureSet > &  theTextures)

Update texture resource up-to-date state.

Field Documentation

◆ ShaderProgram

Handle< OpenGl_ShaderProgram > OpenGl_AspectFace::Resources::ShaderProgram

◆ ShaderProgramId

TCollection_AsciiString OpenGl_AspectFace::Resources::ShaderProgramId

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