66#ifndef _SO_SHAPE_STYLE_ELEMENT
67#define _SO_SHAPE_STYLE_ELEMENT
114 {
return (texEnabled && (!texFunc)); }
121 {
return renderCaseMask; }
153 bool texEnabled, texFunc;
#define SoEXTENDER
Provide inline template functions for abs, swap, min, max, and clamp.
#define INVENTOR_API
Disable some annoying warnings on MSVC 6.
#define SO_ELEMENT_HEADER(className)
This one is for non-abstract element classes.
This is the abstract base class for all state elements.
This elements stores some information shapes need to quickly determine whether or not they should ren...
static void setTextureFunction(SoState *state, bool value)
static bool isScreenDoor(SoState *state)
static void setLightModel(SoState *state, int32_t value)
static const SoShapeStyleElement * get(SoState *state)
API USED BY SHAPES:
virtual void init(SoState *state)
Initializes element.
static void setDrawStyle(SoState *state, int32_t value)
API USED BY OTHER ELEMENTS:
static void setComplexityType(SoState *state, int32_t value)
virtual void print(FILE *fp) const
Prints element (for debugging)
static void setTransparencyType(SoState *state, int32_t value)
static void setOverrides(SoState *state, bool value)
Set value is TRUE if either diffuse, transparency, or materialbinding are overridden; otherwise FALSE...
bool mightNotRender() const
Returns TRUE if shapes may not render for some reason:
virtual SoElement * copyMatchInfo() const
Create a copy that we can put in a cache used list and call matches() on later.
virtual ~SoShapeStyleElement()
static void setTextureEnabled(SoState *state, bool value)
bool needTexCoords() const
Returns TRUE if need texture coordinates:
virtual void push(SoState *state)
Pushes/pops element.
bool needNormals() const
Returns TRUE if need normals:
int getRenderCaseMask() const
Returns a mask that can be used by the SoVertexPropertyCache class (see SoVertexProperty....
virtual bool matches(const SoElement *elt) const
Returns TRUE if the element matches another element (of the same class, presumably) with respect to c...
bool isTextureFunction() const
An SoState collects and holds state while traversing a scene graph.