Open CASCADE Technology  7.2.0
Public Member Functions
OpenGl_AspectMarker::Resources Struct Reference

OpenGl resources. More...

#include <OpenGl_AspectMarker.hxx>

Public Member Functions

 Resources ()
 Empty constructor. More...
 
const Handle< OpenGl_TextureSet > & Sprite () const
 
const Handle< OpenGl_TextureSet > & SpriteA () const
 
const Handle< OpenGl_ShaderProgram > & ShaderProgram () const
 
Standard_Boolean IsSpriteReady () const
 
Standard_Boolean IsShaderReady () const
 
void SetSpriteReady ()
 
void SetShaderReady ()
 
void UpdateTexturesRediness (const Handle< Graphic3d_AspectMarker3d > &theAspect, Standard_ShortReal &theMarkerSize)
 Update texture resource up-to-date state. More...
 
void UpdateShaderRediness (const Handle< Graphic3d_AspectMarker3d > &theAspect)
 Update shader resource up-to-date state. More...
 
void ReleaseTextures (OpenGl_Context *theCtx)
 Release texture resource. More...
 
void ReleaseShaders (OpenGl_Context *theCtx)
 Release shader resource. More...
 
void BuildSprites (const Handle< OpenGl_Context > &theCtx, const Handle< Graphic3d_MarkerImage > &theMarkerImage, const Aspect_TypeOfMarker theType, const Standard_ShortReal theScale, const Graphic3d_Vec4 &theColor, Standard_ShortReal &theMarkerSize)
 Build texture resources. More...
 
void BuildShader (const Handle< OpenGl_Context > &theCtx, const Handle< Graphic3d_ShaderProgram > &theShader)
 Build shader resources. More...
 

Detailed Description

OpenGl resources.

Constructor & Destructor Documentation

◆ Resources()

OpenGl_AspectMarker::Resources::Resources ( )
inline

Empty constructor.

Member Function Documentation

◆ BuildShader()

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

Build shader resources.

◆ BuildSprites()

void OpenGl_AspectMarker::Resources::BuildSprites ( const Handle< OpenGl_Context > &  theCtx,
const Handle< Graphic3d_MarkerImage > &  theMarkerImage,
const Aspect_TypeOfMarker  theType,
const Standard_ShortReal  theScale,
const Graphic3d_Vec4 theColor,
Standard_ShortReal theMarkerSize 
)

Build texture resources.

◆ IsShaderReady()

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

◆ IsSpriteReady()

Standard_Boolean OpenGl_AspectMarker::Resources::IsSpriteReady ( ) const
inline

◆ ReleaseShaders()

void OpenGl_AspectMarker::Resources::ReleaseShaders ( OpenGl_Context theCtx)

Release shader resource.

◆ ReleaseTextures()

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

Release texture resource.

◆ SetShaderReady()

void OpenGl_AspectMarker::Resources::SetShaderReady ( )
inline

◆ SetSpriteReady()

void OpenGl_AspectMarker::Resources::SetSpriteReady ( )
inline

◆ ShaderProgram()

const Handle< OpenGl_ShaderProgram >& OpenGl_AspectMarker::Resources::ShaderProgram ( ) const
inline

◆ Sprite()

const Handle< OpenGl_TextureSet >& OpenGl_AspectMarker::Resources::Sprite ( ) const
inline

◆ SpriteA()

const Handle< OpenGl_TextureSet >& OpenGl_AspectMarker::Resources::SpriteA ( ) const
inline

◆ UpdateShaderRediness()

void OpenGl_AspectMarker::Resources::UpdateShaderRediness ( const Handle< Graphic3d_AspectMarker3d > &  theAspect)

Update shader resource up-to-date state.

◆ UpdateTexturesRediness()

void OpenGl_AspectMarker::Resources::UpdateTexturesRediness ( const Handle< Graphic3d_AspectMarker3d > &  theAspect,
Standard_ShortReal theMarkerSize 
)

Update texture resource up-to-date state.


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