1 #ifndef COIN_SOSHADEROBJECT_H
2 #define COIN_SOSHADEROBJECT_H
27 #include <Inventor/nodes/SoNode.h>
28 #include <Inventor/nodes/SoSubNode.h>
29 #include <Inventor/fields/SoSFString.h>
30 #include <Inventor/fields/SoSFEnum.h>
31 #include <Inventor/fields/SoSFBool.h>
32 #include <Inventor/fields/SoMFNode.h>
33 #include <Inventor/C/glue/gl.h>
35 class SoGLShaderObject;
36 class SoGLShaderProgram;
60 static void initClass(
void);
65 void updateParameters(
SoState * state);
68 SbString getSourceProgram(
void)
const;
76 class SoShaderObjectP * pimpl;
int getLength(void) const
Definition: SbPList.h:94
static SoType badType(void)
Definition: SoType.cpp:664
The SoState class manages the Coin scenegraph traversal state data.
Definition: SoState.h:35
int getNum(void) const
Definition: SoMField.h:86
virtual void search(SoSearchAction *action)
Definition: SoNode.cpp:1120
virtual ~SoShaderObject()
Definition: SoShaderObject.cpp:259
SoSFBool isActive
Definition: SoShaderObject.h:53
The SbName class stores strings by reference.
Definition: SbName.h:31
virtual void search(SoSearchAction *action)
Definition: SoShaderObject.cpp:273
The SoSensor class is the abstract base class for all sensors.
Definition: SoSensor.h:34
virtual void GLRender(SoGLRenderAction *action)
Definition: SoNode.cpp:904
The SoSFBool class is a container for an SbBool value.
Definition: SoSFBool.h:30
@ GLSL_PROGRAM
Definition: SoShaderObject.h:49
SbString getSubString(int startidx, int endidx=-1) const
Definition: SbString.h:73
SoSFEnum sourceType
Definition: SoShaderObject.h:54
The SoSearchAction class provides methods for searching through scene graphs.
Definition: SoSearchAction.h:32
void updateParameters(SoState *state)
Definition: SoShaderObject.cpp:337
static void postWarning(const char *const source, const char *const format,...)
Definition: SoDebugError.cpp:324
The SoSFString class is a container for an SbString.
Definition: SoSFString.h:31
virtual SbBool readInstance(SoInput *in, unsigned short flags)
Definition: SoNode.cpp:1438
SoSFString sourceProgram
Definition: SoShaderObject.h:55
The SbString class is a string class with convenience functions for string operations.
Definition: SbString.h:42
SourceType getSourceType(void) const
Definition: SoShaderObject.cpp:320
The SbStringList class is a container for arrays of SbString pointers.
Definition: SbStringList.h:31
SbString getSourceProgram(void) const
Definition: SoShaderObject.cpp:328
The SoField class is the top-level abstract base class for fields.
Definition: SoField.h:38
void setDefault(SbBool def)
Definition: SoField.cpp:650
virtual SbBool readInstance(SoInput *in, unsigned short flags)
Definition: SoShaderObject.cpp:302
const char * getString(void) const
Definition: SbName.cpp:278
@ CG_PROGRAM
Definition: SoShaderObject.h:48
int getLength(void) const
Definition: SbList.h:145
The SoSFEnum class is a container for an enum value.
Definition: SoSFEnum.h:31
void popCurPath(const PathCode prevpathcode)
Definition: SoAction.h:165
@ FILENAME
Definition: SoShaderObject.h:50
PathCode getPathCode(int &numindices, const int *&indices)
Definition: SoAction.cpp:890
The SbColor class contains the red, green and blue components which make up a color value.
Definition: SbColor.h:30
The SoBase class is the top-level superclass for a number of class-hierarchies.
Definition: SoBase.h:41
SoState * getState(void) const
Definition: SoAction.cpp:1028
virtual void GLRender(SoGLRenderAction *action)
Definition: SoShaderObject.cpp:266
The SoGeometryShader class is used for loading geometry shader programs.
Definition: SoGeometryShader.h:33
@ ARB_PROGRAM
Definition: SoShaderObject.h:47
SoMFNode parameter
Definition: SoShaderObject.h:58
The SoNodeSensor class detects changes to nodes.
Definition: SoNodeSensor.h:29
static void removeContextDestructionCallback(ContextDestructionCB *func, void *closure)
Definition: SoContextHandler.cpp:242
SoShaderObject(void)
Definition: SoShaderObject.cpp:234
void pushCurPath(const int childindex, SoNode *node=NULL)
Definition: SoAction.cpp:919
void setNum(const int num)
Definition: SoMField.cpp:615
static void addContextDestructionCallback(ContextDestructionCB *func, void *closure)
Definition: SoContextHandler.cpp:217
The SoNode class is the base class for nodes used in scene graphs.
Definition: SoNode.h:47
The SoMFNode class is a container for nodes.
Definition: SoMFNode.h:32
int getLength(void) const
Definition: SbString.h:63
const char * getString(void) const
Definition: SbString.h:71
The SoGLRenderAction class renders the scene graph with OpenGL calls.
Definition: SoGLRenderAction.h:39
Definition: SoShaderObject.h:41
SourceType
Definition: SoShaderObject.h:46
SbBool isFound(void) const
Definition: SoSearchAction.cpp:376
Copyright © 1998-2007 by Systems in Motion AS. All rights reserved.
Generated on Wed Jul 24 2019 for Coin by Doxygen. 1.8.17