SoGLDisplayList(3) Coin SoGLDisplayList(3)NAME
SoGLDisplayList -
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.
SYNOPSIS
#include <Inventor/elements/SoGLCacheContextElement.h>
Public Types
enum Type { DISPLAY_LIST, TEXTURE_OBJECT }
Public Member Functions
SoGLDisplayList (SoState *state, Type type, int allocnum=1, SbBool mipmaptexobj=FALSE)
void ref (void)
void unref (SoState *state=NULL)
void open (SoState *state, int index=0)
void close (SoState *state)
void call (SoState *state, int index=0)
void addDependency (SoState *state)
SbBool isMipMapTextureObject (void) const
Type getType (void) const
int getNumAllocated (void) const
unsigned int getFirstIndex (void) const
int getContext (void) const
void setTextureTarget (int target)
int getTextureTarget (void) const
Detailed Description
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.
Constructor & Destructor Documentation
SoGLDisplayList::SoGLDisplayList (SoState *state, Typetype, intallocnum = 1, SbBoolmipmaptexobj = FALSE)
Constructor.
Member Function Documentation
void SoGLDisplayList::ref (void)
Increase reference count for this display list/texture object.
void SoGLDisplayList::unref (SoState *state = NULL)
Decrease reference count for this instance. When reference count reaches 0, the instence is deleted.
void SoGLDisplayList::open (SoState *state, intindex = 0)
Open this display list/texture object.
void SoGLDisplayList::close (SoState *state)
Close this display list/texture object.
void SoGLDisplayList::call (SoState *state, intindex = 0)
Execute this display list/texture object.
void SoGLDisplayList::addDependency (SoState *state)
Create a dependency on the display list.
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.
SoGLDisplayList::Type SoGLDisplayList::getType (void) const
Return type. Display list or texture object.
int SoGLDisplayList::getNumAllocated (void) const
Return number of display lists/texture objects allocated.
unsigned int SoGLDisplayList::getFirstIndex (void) const
Return first GL index for this display list.
int SoGLDisplayList::getContext (void) const
Return an id for the current context.
void SoGLDisplayList::setTextureTarget (inttarget)
Sets the texture object target
Since:
Coin 2.5
int SoGLDisplayList::getTextureTarget (void) const
Returns the texture target
Since:
Coin 2.5
Author
Generated automatically by Doxygen for Coin from the source code.
Version 3.1.3 Wed May 23 2012 SoGLDisplayList(3)
Check Out this Related Man Page
SoShapeStyleElement(3) Coin SoShapeStyleElement(3)NAME
SoShapeStyleElement -
The SoShapeStyleElement class is yet to be documented.
FIXME: write doc.
SYNOPSIS
#include <Inventor/elements/SoShapeStyleElement.h>
Inherits SoElement.
Public Types
enum Flags { LIGHTING = 0x00000100, TEXENABLED = 0x00000200, TEXFUNC = 0x00000400, BBOXCMPLX = 0x00000800, INVISIBLE = 0x00001000,
ABORTCB = 0x00002000, OVERRIDE = 0x00004000, TEX3ENABLED = 0x00008000, BIGIMAGE = 0x00010000, BUMPMAP = 0x00020000, VERTEXARRAY =
0x00040000, TRANSP_TEXTURE = 0x00080000, TRANSP_MATERIAL = 0x00100000, TRANSP_SORTED_TRIANGLES = 0x00200000, SHADOWMAP =
0x00400000, SHADOWS = 0x00800000 }
Public Member Functions
virtual void init (SoState *state)
FIXME: write doc.
virtual void push (SoState *state)
FIXME: write doc.
virtual void pop (SoState *state, const SoElement *prevTopElement)
FIXME: write doc.
virtual SbBool matches (const SoElement *element) const
FIXME: write doc.
virtual SoElement * copyMatchInfo (void) const
FIXME: write doc.
unsigned int getFlags (void) const
SbBool mightNotRender (void) const
SbBool needNormals (void) const
SbBool needTexCoords (void) const
int getRenderCaseMask (void) const
SbBool isTextureFunction (void) const
Static Public Member Functions
static SoType getClassTypeId (void)
static int getClassStackIndex (void)
static void * createInstance (void)
static void initClass (void)
static const SoShapeStyleElement * get (SoState *const state)
FIXME: write doc.
static void setDrawStyle (SoState *const state, const int32_t value)
FIXME: write doc.
static void setComplexityType (SoState *const state, const int32_t value)
FIXME: write doc.
static void setTransparencyType (SoState *const state, const int32_t value)
FIXME: write doc.
static void setTextureEnabled (SoState *const state, const SbBool value)
FIXME: write doc.
static void setTexture3Enabled (SoState *const state, const SbBool value)
static void setTextureFunction (SoState *const state, const SbBool value)
FIXME: write doc.
static void setLightModel (SoState *const state, const int32_t value)
FIXME: write doc.
static void setOverrides (SoState *const state, const SbBool value)
FIXME: write doc.
static SbBool isScreenDoor (SoState *const state)
FIXME: write doc.
static int getTransparencyType (SoState *const state)
static void setBumpmapEnabled (SoState *state, const SbBool value)
static void setBigImageEnabled (SoState *state, const SbBool value)
static void setVertexArrayRendering (SoState *state, const SbBool value)
static void setTransparentMaterial (SoState *state, const SbBool value)
static void setTransparentTexture (SoState *state, const SbBool value)
static void setShadowMapRendering (SoState *state, const SbBool value)
static void setShadowsRendering (SoState *state, const SbBool value)
Protected Member Functions
virtual ~SoShapeStyleElement ()
Additional Inherited Members
Detailed Description
The SoShapeStyleElement class is yet to be documented.
FIXME: write doc.
Constructor & Destructor Documentation
SoShapeStyleElement::~SoShapeStyleElement () [protected], [virtual]
The destructor.
Member Function Documentation
SoType SoShapeStyleElement::getClassTypeId (void) [static]
This static method returns the class type.
Reimplemented from SoElement.
int SoShapeStyleElement::getClassStackIndex (void) [static]
This static method returns the state stack index for the class.
Reimplemented from SoElement.
void * SoShapeStyleElement::createInstance (void) [static]
This API member is considered internal to the library, as it is not likely to be of interest to the application programmer.
void SoShapeStyleElement::initClass (void) [static]
This static method initializes static data for the SoShapeStyleElement class.
Reimplemented from SoElement.
unsigned int SoShapeStyleElement::getFlags (void) const
Returns the state flags. Used internally to optimize rendering.
since Coin 2.4
SbBool SoShapeStyleElement::mightNotRender (void) const
FIXME: write doc.
SbBool SoShapeStyleElement::needNormals (void) const
FIXME: write doc.
SbBool SoShapeStyleElement::needTexCoords (void) const
FIXME: write doc.
int SoShapeStyleElement::getRenderCaseMask (void) const
Not implemented in Coin. It is used by SoVertexProperty in SGI OIV.
void SoShapeStyleElement::setTexture3Enabled (SoState *conststate, const SbBoolvalue) [static]
FIXME: write doc.
This function is an extension for Coin, and it is not available in the original SGI Open Inventor v2.1 API.
Since:
Coin 2.0
int SoShapeStyleElement::getTransparencyType (SoState *conststate) [static]
Returns the current transparency type.
This function is an extension for Coin, and it is not available in the original SGI Open Inventor v2.1 API.
Since:
Coin 2.0
SbBool SoShapeStyleElement::isTextureFunction (void) const
Returns if texture function is currently enabled.
void SoShapeStyleElement::setBumpmapEnabled (SoState *state, const SbBoolvalue) [static]
Sets bumpmap enabled.
Since:
Coin 2.4
void SoShapeStyleElement::setBigImageEnabled (SoState *state, const SbBoolvalue) [static]
Sets bigimage enabled.
Since:
Coin 2.4
void SoShapeStyleElement::setVertexArrayRendering (SoState *state, const SbBoolvalue) [static]
Sets if vertex array rendering might be used.
Since:
Coin 2.4
void SoShapeStyleElement::setTransparentMaterial (SoState *state, const SbBoolvalue) [static]
Sets material transparency.
Since:
Coin 2.4
void SoShapeStyleElement::setTransparentTexture (SoState *state, const SbBoolvalue) [static]
Sets texture transparency.
Since:
Coin 2.4
void SoShapeStyleElement::setShadowMapRendering (SoState *state, const SbBoolvalue) [static]
Sets whether we are rendering to a shadow (depth) map or not.
Since:
Coin 2.5
void SoShapeStyleElement::setShadowsRendering (SoState *state, const SbBoolvalue) [static]
Sets whether we are rendering with shadows or not.
Since:
Coin 2.5
Author
Generated automatically by Doxygen for Coin from the source code.
Version 3.1.3 Wed May 23 2012 SoShapeStyleElement(3)