OpenSceneGraph
3.5.1
|
A class for assisting the building a scene graph that is equivilant to OpenGL 1.0 style calls. More...
Classes | |
struct | QuadricState |
Public Member Functions | |
SceneGraphBuilder () | |
void | PushMatrix () |
void | PopMatrix () |
void | LoadIdentity () |
void | LoadMatrixd (const GLdouble *m) |
void | MultMatrixd (const GLdouble *m) |
void | Translated (GLdouble x, GLdouble y, GLdouble z) |
void | Scaled (GLdouble x, GLdouble y, GLdouble z) |
void | Rotated (GLdouble angle, GLdouble x, GLdouble y, GLdouble z) |
void | BlendFunc (GLenum srcFactor, GLenum dstFactor) |
void | CullFace (GLenum mode) |
void | DepthFunc (GLenum mode) |
void | FrontFace (GLenum mode) |
void | LineStipple (GLint factor, GLushort pattern) |
void | LineWidth (GLfloat lineWidth) |
void | PointSize (GLfloat pointSize) |
void | PolygonMode (GLenum face, GLenum mode) |
void | PolygonOffset (GLfloat factor, GLfloat units) |
void | PolygonStipple (const GLubyte *mask) |
void | ShadeModel (GLenum mode) |
void | Enable (GLenum mode) |
void | Disable (GLenum mode) |
void | Color4f (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) |
void | Color4fv (GLfloat *c) |
void | Vertex3f (GLfloat x, GLfloat y, GLfloat z) |
void | Vertex3fv (GLfloat *v) |
void | Normal3f (GLfloat x, GLfloat y, GLfloat z) |
void | Normal3fv (GLfloat *n) |
void | TexCoord1f (GLfloat x) |
void | TexCoord1fv (GLfloat *tc) |
void | TexCoord2f (GLfloat x, GLfloat y) |
void | TexCoord2fv (GLfloat *tc) |
void | TexCoord3f (GLfloat x, GLfloat y, GLfloat z) |
void | TexCoord3fv (GLfloat *tc) |
void | TexCoord4f (GLfloat x, GLfloat y, GLfloat z, GLfloat w) |
void | TexCoord4fv (GLfloat *tc) |
void | Begin (GLenum mode) |
void | End () |
void | QuadricDrawStyle (GLenum aDrawStyle) |
void | QuadricNormals (GLenum aNormals) |
void | QuadricOrientation (GLenum aOrientation) |
void | QuadricTexture (GLboolean aTexture) |
void | Cylinder (GLfloat base, GLfloat top, GLfloat height, GLint slices, GLint stacks) |
void | Disk (GLfloat inner, GLfloat outer, GLint slices, GLint loops) |
void | PartialDisk (GLfloat inner, GLfloat outer, GLint slices, GLint loops, GLfloat start, GLfloat sweep) |
void | Sphere (GLfloat radius, GLint slices, GLint stacks) |
osg::Node * | getScene () |
osg::Node * | takeScene () |
Protected Types | |
typedef std::vector< osg::Matrixd > | Matrices |
Protected Member Functions | |
void | matrixChanged () |
void | addAttribute (osg::StateAttribute *attribute) |
void | addMode (GLenum mode, bool enabled) |
void | addTextureAttribute (unsigned int unit, osg::StateAttribute *attribute) |
void | addTextureMode (unsigned int unit, GLenum mode, bool enabled) |
void | addShape (osg::Shape *shape) |
void | addDrawable (osg::Drawable *drawable) |
void | newGeometry () |
void | allocateGeometry () |
void | completeGeometry () |
void | allocateStateSet () |
Protected Attributes | |
Matrices | _matrixStack |
osg::ref_ptr< osg::StateSet > | _stateset |
bool | _statesetAssigned |
bool | _normalSet |
osg::Vec3f | _normal |
bool | _colorSet |
osg::Vec4f | _color |
unsigned int | _maxNumTexCoordComponents |
osg::Vec4f | _texCoord |
GLenum | _primitiveMode |
osg::ref_ptr< osg::Vec3Array > | _vertices |
osg::ref_ptr< osg::Vec3Array > | _normals |
osg::ref_ptr< osg::Vec4Array > | _colors |
osg::ref_ptr< osg::Vec4Array > | _texCoords |
QuadricState | _quadricState |
osg::ref_ptr< osg::Geometry > | _geometry |
osg::ref_ptr< osg::Geode > | _geode |
osg::ref_ptr< osg::MatrixTransform > | _transform |
osg::ref_ptr< osg::Group > | _group |
A class for assisting the building a scene graph that is equivilant to OpenGL 1.0 style calls.
|
protected |
osgUtil::SceneGraphBuilder::SceneGraphBuilder | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
void osgUtil::SceneGraphBuilder::Begin | ( | GLenum | mode | ) |
void osgUtil::SceneGraphBuilder::BlendFunc | ( | GLenum | srcFactor, |
GLenum | dstFactor | ||
) |
void osgUtil::SceneGraphBuilder::Color4f | ( | GLfloat | red, |
GLfloat | green, | ||
GLfloat | blue, | ||
GLfloat | alpha | ||
) |
|
inline |
|
protected |
void osgUtil::SceneGraphBuilder::CullFace | ( | GLenum | mode | ) |
void osgUtil::SceneGraphBuilder::Cylinder | ( | GLfloat | base, |
GLfloat | top, | ||
GLfloat | height, | ||
GLint | slices, | ||
GLint | stacks | ||
) |
void osgUtil::SceneGraphBuilder::DepthFunc | ( | GLenum | mode | ) |
void osgUtil::SceneGraphBuilder::Disable | ( | GLenum | mode | ) |
void osgUtil::SceneGraphBuilder::Disk | ( | GLfloat | inner, |
GLfloat | outer, | ||
GLint | slices, | ||
GLint | loops | ||
) |
void osgUtil::SceneGraphBuilder::Enable | ( | GLenum | mode | ) |
void osgUtil::SceneGraphBuilder::End | ( | ) |
void osgUtil::SceneGraphBuilder::FrontFace | ( | GLenum | mode | ) |
osg::Node* osgUtil::SceneGraphBuilder::getScene | ( | ) |
void osgUtil::SceneGraphBuilder::LineStipple | ( | GLint | factor, |
GLushort | pattern | ||
) |
void osgUtil::SceneGraphBuilder::LineWidth | ( | GLfloat | lineWidth | ) |
void osgUtil::SceneGraphBuilder::LoadIdentity | ( | ) |
void osgUtil::SceneGraphBuilder::LoadMatrixd | ( | const GLdouble * | m | ) |
|
protected |
void osgUtil::SceneGraphBuilder::MultMatrixd | ( | const GLdouble * | m | ) |
|
protected |
void osgUtil::SceneGraphBuilder::Normal3f | ( | GLfloat | x, |
GLfloat | y, | ||
GLfloat | z | ||
) |
|
inline |
void osgUtil::SceneGraphBuilder::PartialDisk | ( | GLfloat | inner, |
GLfloat | outer, | ||
GLint | slices, | ||
GLint | loops, | ||
GLfloat | start, | ||
GLfloat | sweep | ||
) |
void osgUtil::SceneGraphBuilder::PointSize | ( | GLfloat | pointSize | ) |
void osgUtil::SceneGraphBuilder::PolygonMode | ( | GLenum | face, |
GLenum | mode | ||
) |
void osgUtil::SceneGraphBuilder::PolygonOffset | ( | GLfloat | factor, |
GLfloat | units | ||
) |
void osgUtil::SceneGraphBuilder::PolygonStipple | ( | const GLubyte * | mask | ) |
void osgUtil::SceneGraphBuilder::PopMatrix | ( | ) |
void osgUtil::SceneGraphBuilder::PushMatrix | ( | ) |
void osgUtil::SceneGraphBuilder::QuadricDrawStyle | ( | GLenum | aDrawStyle | ) |
void osgUtil::SceneGraphBuilder::QuadricNormals | ( | GLenum | aNormals | ) |
void osgUtil::SceneGraphBuilder::QuadricOrientation | ( | GLenum | aOrientation | ) |
void osgUtil::SceneGraphBuilder::QuadricTexture | ( | GLboolean | aTexture | ) |
void osgUtil::SceneGraphBuilder::Rotated | ( | GLdouble | angle, |
GLdouble | x, | ||
GLdouble | y, | ||
GLdouble | z | ||
) |
void osgUtil::SceneGraphBuilder::Scaled | ( | GLdouble | x, |
GLdouble | y, | ||
GLdouble | z | ||
) |
void osgUtil::SceneGraphBuilder::ShadeModel | ( | GLenum | mode | ) |
void osgUtil::SceneGraphBuilder::Sphere | ( | GLfloat | radius, |
GLint | slices, | ||
GLint | stacks | ||
) |
osg::Node* osgUtil::SceneGraphBuilder::takeScene | ( | ) |
void osgUtil::SceneGraphBuilder::TexCoord1f | ( | GLfloat | x | ) |
|
inline |
void osgUtil::SceneGraphBuilder::TexCoord2f | ( | GLfloat | x, |
GLfloat | y | ||
) |
|
inline |
void osgUtil::SceneGraphBuilder::TexCoord3f | ( | GLfloat | x, |
GLfloat | y, | ||
GLfloat | z | ||
) |
|
inline |
void osgUtil::SceneGraphBuilder::TexCoord4f | ( | GLfloat | x, |
GLfloat | y, | ||
GLfloat | z, | ||
GLfloat | w | ||
) |
|
inline |
void osgUtil::SceneGraphBuilder::Translated | ( | GLdouble | x, |
GLdouble | y, | ||
GLdouble | z | ||
) |
void osgUtil::SceneGraphBuilder::Vertex3f | ( | GLfloat | x, |
GLfloat | y, | ||
GLfloat | z | ||
) |
|
inline |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Generated at Wed Nov 11 2015 22:15:18 for the OpenSceneGraph by doxygen 1.8.10. |