OpenGl resources for custom point sprites. More...
#include <OpenGl_AspectsSprite.hxx>
Public Member Functions | |
| OpenGl_AspectsSprite () | |
| Empty constructor. | |
| Standard_ShortReal | MarkerSize () const |
| bool | IsReady () const |
| Return TRUE if resource is up-to-date. | |
| void | Invalidate () |
| Invalidate resource state. | |
| bool | HasPointSprite (const Handle< OpenGl_Context > &theCtx, const Handle< Graphic3d_Aspects > &theAspects) |
| Return TRUE if OpenGl point sprite resource defines texture. | |
| 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). | |
| const Handle< OpenGl_PointSprite > & | Sprite (const Handle< OpenGl_Context > &theCtx, const Handle< Graphic3d_Aspects > &theAspects, bool theIsAlphaSprite) |
| Return sprite. | |
| void | UpdateRediness (const Handle< Graphic3d_Aspects > &theAspect) |
| Update texture resource up-to-date state. | |
| void | Release (OpenGl_Context *theCtx) |
| Release texture resource. | |
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.