Open CASCADE Technology
7.7.0
|
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... | |
OpenGl resources for custom point sprites.
|
inline |
Empty constructor.
bool OpenGl_AspectsSprite::HasPointSprite | ( | const Handle< OpenGl_Context > & | theCtx, |
const Handle< Graphic3d_Aspects > & | theAspects | ||
) |
Return TRUE if OpenGl point sprite resource defines texture.
|
inline |
Invalidate resource state.
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).
|
inline |
Return TRUE if resource is up-to-date.
|
inline |
void OpenGl_AspectsSprite::Release | ( | OpenGl_Context * | theCtx | ) |
Release texture resource.
const Handle< OpenGl_PointSprite >& OpenGl_AspectsSprite::Sprite | ( | const Handle< OpenGl_Context > & | theCtx, |
const Handle< Graphic3d_Aspects > & | theAspects, | ||
bool | theIsAlphaSprite | ||
) |
Return sprite.
void OpenGl_AspectsSprite::UpdateRediness | ( | const Handle< Graphic3d_Aspects > & | theAspect | ) |
Update texture resource up-to-date state.