Coin
4.0.3
Coin3D core library
|
The SoGLDisplayList class stores and manages OpenGL display lists. More...
#include <Inventor/elements/SoGLDisplayList.h>
Public Types | |
enum | Type { DISPLAY_LIST , TEXTURE_OBJECT } |
Public Member Functions | |
SoGLDisplayList (SoState *state, Type type, int allocnum=1, SbBool mipmaptexobj=FALSE) | |
void | addDependency (SoState *state) |
void | call (SoState *state, int index=0) |
void | close (SoState *state) |
int | getContext (void) const |
unsigned int | getFirstIndex (void) const |
int | getNumAllocated (void) const |
int | getTextureTarget (void) const |
Type | getType (void) const |
SbBool | isMipMapTextureObject (void) const |
void | open (SoState *state, int index=0) |
void | ref (void) |
void | setTextureTarget (int target) |
void | unref (SoState *state=NULL) |
The SoGLDisplayList class stores and manages OpenGL display lists.
The TEXTURE_OBJECT type is not directly supported in Coin. We handle textures differently in a more flexible class called SoGLImage, which also stores some information about the texture used when rendering. Old code which use this element should not stop working though. The texture object extension will just not be used, and the texture will be stored in a display list instead.
SoGLDisplayList::SoGLDisplayList | ( | SoState * | state, |
Type | type, | ||
int | allocnum = 1, | ||
SbBool | mipmaptexobj = FALSE ) |
Constructor.
Execute this display list/texture object.
int SoGLDisplayList::getContext | ( | void | ) | const |
Return an id for the current context.
Return first GL index for this display list.
int SoGLDisplayList::getNumAllocated | ( | void | ) | const |
Return number of display lists/texture objects allocated.
SoGLDisplayList::Type SoGLDisplayList::getType | ( | void | ) | const |
Return type. Display list or texture object.
SbBool SoGLDisplayList::isMipMapTextureObject | ( | void | ) | const |
Returns whether the texture object stored in this instance was created with mipmap data. This method is an extension versus the Open Inventor API.
Open this display list/texture object.
Decrease reference count for this instance. When reference count reaches 0, the instance is deleted.