Open CASCADE Technology  7.5.0
Public Member Functions
OpenGl_AspectsSprite Class Reference

OpenGl resources for custom point sprites. More...

#include <OpenGl_AspectsSprite.hxx>

Public Member Functions

 OpenGl_AspectsSprite ()
 Empty constructor. More...
 
Standard_ShortReal MarkerSize () const
 
bool IsReady () const
 Return TRUE if resource is up-to-date. More...
 
void Invalidate ()
 Invalidate resource state. More...
 
bool HasPointSprite (const Handle< OpenGl_Context > &theCtx, const Handle< Graphic3d_Aspects > &theAspects)
 Return TRUE if OpenGl point sprite resource defines texture. More...
 
bool IsDisplayListSprite (const Handle< OpenGl_Context > &theCtx, const Handle< Graphic3d_Aspects > &theAspects)
 Return TRUE if OpenGl point sprite resource defined by obsolete Display List (bitmap). More...
 
const Handle< OpenGl_PointSprite > & Sprite (const Handle< OpenGl_Context > &theCtx, const Handle< Graphic3d_Aspects > &theAspects, bool theIsAlphaSprite)
 Return sprite. More...
 
void UpdateRediness (const Handle< Graphic3d_Aspects > &theAspect)
 Update texture resource up-to-date state. More...
 
void Release (OpenGl_Context *theCtx)
 Release texture resource. More...
 

Detailed Description

OpenGl resources for custom point sprites.

Constructor & Destructor Documentation

◆ OpenGl_AspectsSprite()

OpenGl_AspectsSprite::OpenGl_AspectsSprite ( )
inline

Empty constructor.

Member Function Documentation

◆ HasPointSprite()

bool OpenGl_AspectsSprite::HasPointSprite ( const Handle< OpenGl_Context > &  theCtx,
const Handle< Graphic3d_Aspects > &  theAspects 
)

Return TRUE if OpenGl point sprite resource defines texture.

◆ Invalidate()

void OpenGl_AspectsSprite::Invalidate ( )
inline

Invalidate resource state.

◆ IsDisplayListSprite()

bool OpenGl_AspectsSprite::IsDisplayListSprite ( const Handle< OpenGl_Context > &  theCtx,
const Handle< Graphic3d_Aspects > &  theAspects 
)

Return TRUE if OpenGl point sprite resource defined by obsolete Display List (bitmap).

◆ IsReady()

bool OpenGl_AspectsSprite::IsReady ( ) const
inline

Return TRUE if resource is up-to-date.

◆ MarkerSize()

Standard_ShortReal OpenGl_AspectsSprite::MarkerSize ( ) const
inline

◆ Release()

void OpenGl_AspectsSprite::Release ( OpenGl_Context theCtx)

Release texture resource.

◆ Sprite()

const Handle< OpenGl_PointSprite >& OpenGl_AspectsSprite::Sprite ( const Handle< OpenGl_Context > &  theCtx,
const Handle< Graphic3d_Aspects > &  theAspects,
bool  theIsAlphaSprite 
)

Return sprite.

◆ UpdateRediness()

void OpenGl_AspectsSprite::UpdateRediness ( const Handle< Graphic3d_Aspects > &  theAspect)

Update texture resource up-to-date state.


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