|
Open CASCADE Technology
6.7.1
|
Point sprite resource. On modern hardware it will be texture with extra parameters. On ancient hardware sprites will be drawn using bitmaps. More...
#include <OpenGl_PointSprite.hxx>
Public Member Functions | |
| OpenGl_PointSprite () | |
| Create uninitialized resource. More... | |
| virtual | ~OpenGl_PointSprite () |
| Destroy object. More... | |
| virtual void | Release (const OpenGl_Context *theCtx) |
| Destroy object - will release GPU memory if any. More... | |
| Standard_Boolean | IsDisplayList () const |
| void | DrawBitmap (const Handle< OpenGl_Context > &theCtx) const |
| Draw sprite using glBitmap. Please call glRasterPos3fv() before to setup sprite position. More... | |
| void | SetDisplayList (const Handle< OpenGl_Context > &theCtx, const GLuint theBitmapList) |
| Initialize point sprite as display list. More... | |
Public Member Functions inherited from OpenGl_Texture | |
| OpenGl_Texture (const Handle< Graphic3d_TextureParams > &theParams=NULL) | |
| Create uninitialized VBO. More... | |
| virtual | ~OpenGl_Texture () |
| Destroy object. More... | |
| bool | IsValid () const |
| GLenum | GetTarget () const |
| GLsizei | SizeX () const |
| GLsizei | SizeY () const |
| GLuint | TextureId () const |
| GLint | GetFormat () const |
| bool | Create (const Handle< OpenGl_Context > &theCtx) |
| Creates Texture id if not yet generated. Data should be initialized by another method. More... | |
| void | Bind (const Handle< OpenGl_Context > &theCtx, const GLenum theTextureUnit=GL_TEXTURE0) const |
| Bind this Texture to specified unit. More... | |
| void | Unbind (const Handle< OpenGl_Context > &theCtx, const GLenum theTextureUnit=GL_TEXTURE0) const |
| Unbind texture from specified unit. More... | |
| bool | Init (const Handle< OpenGl_Context > &theCtx, const Image_PixMap &theImage, const Graphic3d_TypeOfTexture theType) |
| Notice that texture will be unbound after this call. More... | |
| const Standard_Boolean | HasMipmaps () const |
| const Handle < Graphic3d_TextureParams > & | GetParams () const |
| void | SetParams (const Handle< Graphic3d_TextureParams > &theParams) |
Public Member Functions inherited from OpenGl_Resource | |
| OpenGl_Resource () | |
| Empty constructor. More... | |
| virtual | ~OpenGl_Resource () |
| Destructor. Inheritors should call Clean (NULL) within it. More... | |
Public Member Functions inherited from Standard_Transient | |
| Standard_Transient () | |
| Empty constructor. More... | |
| Standard_Transient (const Standard_Transient &) | |
| Copy constructor – does nothing. More... | |
| Standard_Transient & | operator= (const Standard_Transient &) |
| Assignment operator, needed to avoid copying reference counter. More... | |
| virtual | ~Standard_Transient () |
| Destructor must be virtual. More... | |
| virtual void | Delete () const |
| Memory deallocator for transient classes. More... | |
| virtual void | ShallowDump (Standard_OStream &) const |
| virtual const Handle_Standard_Type & | DynamicType () const |
| Returns a type information object about this object. More... | |
| Standard_Boolean | IsInstance (const Handle_Standard_Type &theType) const |
| Returns a true value if this is an instance of Type. More... | |
| Standard_Boolean | IsInstance (const Standard_CString theTypeName) const |
| Returns a true value if this is an instance of TypeName. More... | |
| Standard_Boolean | IsKind (const Handle_Standard_Type &theType) const |
| Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More... | |
| Standard_Boolean | IsKind (const Standard_CString theTypeName) const |
| Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More... | |
| virtual Handle_Standard_Transient | This () const |
| Returns a Handle which references this object. Must never be called to objects created in stack. More... | |
| Standard_Integer | GetRefCount () const |
| Get the reference counter of this object. More... | |
Protected Attributes | |
| GLuint | myBitmapList |
| if of display list to draw sprite using glBitmap (for backward compatibility) More... | |
Protected Attributes inherited from OpenGl_Texture | |
| GLuint | myTextureId |
| GL resource ID. More... | |
| GLenum | myTarget |
| GL_TEXTURE_1D/GL_TEXTURE_2D. More... | |
| GLsizei | mySizeX |
| texture width More... | |
| GLsizei | mySizeY |
| texture height More... | |
| GLint | myTextFormat |
| texture format - GL_RGB, GL_RGBA,... More... | |
| Standard_Boolean | myHasMipmaps |
| flag indicates that texture was uploaded with mipmaps More... | |
| Handle< Graphic3d_TextureParams > | myParams |
| texture parameters More... | |
Additional Inherited Members | |
Static Public Attributes inherited from OpenGl_Texture | |
| static const GLuint | NO_TEXTURE = 0 |
| Helpful constants. More... | |
Point sprite resource. On modern hardware it will be texture with extra parameters. On ancient hardware sprites will be drawn using bitmaps.
| OpenGl_PointSprite::OpenGl_PointSprite | ( | ) |
Create uninitialized resource.
|
virtual |
Destroy object.
| void OpenGl_PointSprite::DrawBitmap | ( | const Handle< OpenGl_Context > & | theCtx | ) | const |
Draw sprite using glBitmap. Please call glRasterPos3fv() before to setup sprite position.
|
inline |
|
virtual |
Destroy object - will release GPU memory if any.
Reimplemented from OpenGl_Texture.
| void OpenGl_PointSprite::SetDisplayList | ( | const Handle< OpenGl_Context > & | theCtx, |
| const GLuint | theBitmapList | ||
| ) |
Initialize point sprite as display list.
|
protected |
if of display list to draw sprite using glBitmap (for backward compatibility)
1.8.5