|
OpenSceneGraph
3.0.1
|
A class adapting OpenGL 1.0 glBegin()/glEnd() style code to vertex array based code. More...
Public Types | |
| enum | MatrixMode { APPLY_LOCAL_MATRICES_TO_VERTICES, APPLY_LOCAL_MATRICES_TO_MODELVIEW } |
Public Member Functions | |
| GLBeginEndAdapter (State *state=0) | |
| void | setState (State *state) |
| State * | getState () |
| const State * | getState () const |
| void | setMatrixMode (MatrixMode mode) |
| MatrixMode | setMatrixMode () const |
| void | PushMatrix () |
| void | PopMatrix () |
| void | LoadIdentity () |
| void | LoadMatrixd (const GLdouble *m) |
| void | MultMatrixd (const GLdouble *m) |
| void | Translatef (GLfloat x, GLfloat y, GLfloat z) |
| void | Scalef (GLfloat x, GLfloat y, GLfloat z) |
| void | Rotatef (GLfloat angle, GLfloat x, GLfloat y, GLfloat z) |
| 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 | Vertex3f (GLfloat x, GLfloat y, GLfloat z) |
| void | Vertex3fv (const GLfloat *v) |
| void | Color4f (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) |
| void | Color4fv (const GLfloat *c) |
| void | Color4ubv (const GLubyte *c) |
| void | Normal3f (GLfloat x, GLfloat y, GLfloat z) |
| void | Normal3fv (const GLfloat *n) |
| void | TexCoord1f (GLfloat x) |
| void | TexCoord1fv (const GLfloat *tc) |
| void | TexCoord2f (GLfloat x, GLfloat y) |
| void | TexCoord2fv (const GLfloat *tc) |
| void | TexCoord3f (GLfloat x, GLfloat y, GLfloat z) |
| void | TexCoord3fv (const GLfloat *tc) |
| void | TexCoord4f (GLfloat x, GLfloat y, GLfloat z, GLfloat w) |
| void | TexCoord4fv (const GLfloat *tc) |
| void | MultiTexCoord1f (GLenum target, GLfloat x) |
| void | MultiTexCoord1fv (GLenum target, const GLfloat *tc) |
| void | MultiTexCoord2f (GLenum target, GLfloat x, GLfloat y) |
| void | MultiTexCoord2fv (GLenum target, const GLfloat *tc) |
| void | MultiTexCoord3f (GLenum target, GLfloat x, GLfloat y, GLfloat z) |
| void | MultiTexCoord3fv (GLenum target, const GLfloat *tc) |
| void | MultiTexCoord4f (GLenum target, GLfloat x, GLfloat y, GLfloat z, GLfloat w) |
| void | MultiTexCoord4fv (GLenum target, const GLfloat *tc) |
| void | VertexAttrib1f (GLuint unit, GLfloat x) |
| void | VertexAttrib1fv (GLuint unit, const GLfloat *tc) |
| void | VertexAttrib2f (GLuint unit, GLfloat x, GLfloat y) |
| void | VertexAttrib2fv (GLuint unit, const GLfloat *tc) |
| void | VertexAttrib3f (GLuint unit, GLfloat x, GLfloat y, GLfloat z) |
| void | VertexAttrib3fv (GLuint unit, const GLfloat *tc) |
| void | VertexAttrib4f (GLuint unit, GLfloat x, GLfloat y, GLfloat z, GLfloat w) |
| void | VertexAttrib4fv (GLuint unit, const GLfloat *tc) |
| void | Begin (GLenum mode) |
| void | End () |
Protected Types | |
| typedef std::list< Matrixd > | MatrixStack |
| typedef std::vector< bool > | AssignedList |
| typedef std::vector< osg::Vec4f > | VertexList |
| typedef std::vector < osg::ref_ptr< Vec4Array > > | VertexArrayList |
Protected Attributes | |
| State * | _state |
| MatrixMode | _mode |
| MatrixStack | _matrixStack |
| bool | _normalAssigned |
| osg::Vec3f | _normal |
| bool | _colorAssigned |
| osg::Vec4f | _color |
| osg::Vec3f | _overallNormal |
| osg::Vec4f | _overallColor |
| AssignedList | _texCoordAssignedList |
| VertexList | _texCoordList |
| AssignedList | _vertexAttribAssignedList |
| VertexList | _vertexAttribList |
| GLenum | _primitiveMode |
| osg::ref_ptr< osg::Vec3Array > | _vertices |
| osg::ref_ptr< osg::Vec3Array > | _normals |
| osg::ref_ptr< osg::Vec4Array > | _colors |
| VertexArrayList | _texCoordsList |
| VertexArrayList | _vertexAttribsList |
A class adapting OpenGL 1.0 glBegin()/glEnd() style code to vertex array based code.
typedef std::vector<bool> osg::GLBeginEndAdapter::AssignedList [protected] |
typedef std::list<Matrixd> osg::GLBeginEndAdapter::MatrixStack [protected] |
typedef std::vector< osg::ref_ptr<Vec4Array> > osg::GLBeginEndAdapter::VertexArrayList [protected] |
typedef std::vector<osg::Vec4f> osg::GLBeginEndAdapter::VertexList [protected] |
| osg::GLBeginEndAdapter::GLBeginEndAdapter | ( | State * | state = 0 | ) |
| void osg::GLBeginEndAdapter::Begin | ( | GLenum | mode | ) |
Referenced by osgParticle::Particle::beginRender().
| void osg::GLBeginEndAdapter::Color4f | ( | GLfloat | red, |
| GLfloat | green, | ||
| GLfloat | blue, | ||
| GLfloat | alpha | ||
| ) | [inline] |
| void osg::GLBeginEndAdapter::Color4fv | ( | const GLfloat * | c | ) | [inline] |
| void osg::GLBeginEndAdapter::Color4ubv | ( | const GLubyte * | c | ) | [inline] |
Referenced by osgParticle::Particle::endRender().
| State* osg::GLBeginEndAdapter::getState | ( | ) | [inline] |
| const State* osg::GLBeginEndAdapter::getState | ( | ) | const [inline] |
| void osg::GLBeginEndAdapter::LoadMatrixd | ( | const GLdouble * | m | ) |
| void osg::GLBeginEndAdapter::MultiTexCoord1f | ( | GLenum | target, |
| GLfloat | x | ||
| ) | [inline] |
| void osg::GLBeginEndAdapter::MultiTexCoord1fv | ( | GLenum | target, |
| const GLfloat * | tc | ||
| ) | [inline] |
| void osg::GLBeginEndAdapter::MultiTexCoord2f | ( | GLenum | target, |
| GLfloat | x, | ||
| GLfloat | y | ||
| ) | [inline] |
| void osg::GLBeginEndAdapter::MultiTexCoord2fv | ( | GLenum | target, |
| const GLfloat * | tc | ||
| ) | [inline] |
| void osg::GLBeginEndAdapter::MultiTexCoord3f | ( | GLenum | target, |
| GLfloat | x, | ||
| GLfloat | y, | ||
| GLfloat | z | ||
| ) | [inline] |
| void osg::GLBeginEndAdapter::MultiTexCoord3fv | ( | GLenum | target, |
| const GLfloat * | tc | ||
| ) | [inline] |
| void osg::GLBeginEndAdapter::MultiTexCoord4f | ( | GLenum | target, |
| GLfloat | x, | ||
| GLfloat | y, | ||
| GLfloat | z, | ||
| GLfloat | w | ||
| ) |
| void osg::GLBeginEndAdapter::MultiTexCoord4fv | ( | GLenum | target, |
| const GLfloat * | tc | ||
| ) | [inline] |
| void osg::GLBeginEndAdapter::MultMatrixd | ( | const GLdouble * | m | ) |
| void osg::GLBeginEndAdapter::Normal3f | ( | GLfloat | x, |
| GLfloat | y, | ||
| GLfloat | z | ||
| ) | [inline] |
| void osg::GLBeginEndAdapter::Normal3fv | ( | const GLfloat * | n | ) | [inline] |
| void osg::GLBeginEndAdapter::Rotatef | ( | GLfloat | angle, |
| GLfloat | x, | ||
| GLfloat | y, | ||
| GLfloat | z | ||
| ) | [inline] |
| void osg::GLBeginEndAdapter::Scaled | ( | GLdouble | x, |
| GLdouble | y, | ||
| GLdouble | z | ||
| ) |
| void osg::GLBeginEndAdapter::Scalef | ( | GLfloat | x, |
| GLfloat | y, | ||
| GLfloat | z | ||
| ) | [inline] |
| void osg::GLBeginEndAdapter::setMatrixMode | ( | MatrixMode | mode | ) | [inline] |
| MatrixMode osg::GLBeginEndAdapter::setMatrixMode | ( | ) | const [inline] |
| void osg::GLBeginEndAdapter::setState | ( | State * | state | ) | [inline] |
| void osg::GLBeginEndAdapter::TexCoord1f | ( | GLfloat | x | ) | [inline] |
References GL_TEXTURE0.
| void osg::GLBeginEndAdapter::TexCoord1fv | ( | const GLfloat * | tc | ) | [inline] |
References GL_TEXTURE0.
| void osg::GLBeginEndAdapter::TexCoord2f | ( | GLfloat | x, |
| GLfloat | y | ||
| ) | [inline] |
References GL_TEXTURE0.
| void osg::GLBeginEndAdapter::TexCoord2fv | ( | const GLfloat * | tc | ) | [inline] |
References GL_TEXTURE0.
| void osg::GLBeginEndAdapter::TexCoord3f | ( | GLfloat | x, |
| GLfloat | y, | ||
| GLfloat | z | ||
| ) | [inline] |
References GL_TEXTURE0.
| void osg::GLBeginEndAdapter::TexCoord3fv | ( | const GLfloat * | tc | ) | [inline] |
References GL_TEXTURE0.
| void osg::GLBeginEndAdapter::TexCoord4f | ( | GLfloat | x, |
| GLfloat | y, | ||
| GLfloat | z, | ||
| GLfloat | w | ||
| ) | [inline] |
References GL_TEXTURE0.
| void osg::GLBeginEndAdapter::TexCoord4fv | ( | const GLfloat * | tc | ) | [inline] |
References GL_TEXTURE0.
| void osg::GLBeginEndAdapter::Translated | ( | GLdouble | x, |
| GLdouble | y, | ||
| GLdouble | z | ||
| ) |
| void osg::GLBeginEndAdapter::Translatef | ( | GLfloat | x, |
| GLfloat | y, | ||
| GLfloat | z | ||
| ) | [inline] |
| void osg::GLBeginEndAdapter::Vertex3f | ( | GLfloat | x, |
| GLfloat | y, | ||
| GLfloat | z | ||
| ) |
| void osg::GLBeginEndAdapter::Vertex3fv | ( | const GLfloat * | v | ) | [inline] |
| void osg::GLBeginEndAdapter::VertexAttrib1f | ( | GLuint | unit, |
| GLfloat | x | ||
| ) | [inline] |
| void osg::GLBeginEndAdapter::VertexAttrib1fv | ( | GLuint | unit, |
| const GLfloat * | tc | ||
| ) | [inline] |
| void osg::GLBeginEndAdapter::VertexAttrib2f | ( | GLuint | unit, |
| GLfloat | x, | ||
| GLfloat | y | ||
| ) | [inline] |
| void osg::GLBeginEndAdapter::VertexAttrib2fv | ( | GLuint | unit, |
| const GLfloat * | tc | ||
| ) | [inline] |
| void osg::GLBeginEndAdapter::VertexAttrib3f | ( | GLuint | unit, |
| GLfloat | x, | ||
| GLfloat | y, | ||
| GLfloat | z | ||
| ) | [inline] |
| void osg::GLBeginEndAdapter::VertexAttrib3fv | ( | GLuint | unit, |
| const GLfloat * | tc | ||
| ) | [inline] |
| void osg::GLBeginEndAdapter::VertexAttrib4f | ( | GLuint | unit, |
| GLfloat | x, | ||
| GLfloat | y, | ||
| GLfloat | z, | ||
| GLfloat | w | ||
| ) |
| void osg::GLBeginEndAdapter::VertexAttrib4fv | ( | GLuint | unit, |
| const GLfloat * | tc | ||
| ) | [inline] |
osg::Vec4f osg::GLBeginEndAdapter::_color [protected] |
bool osg::GLBeginEndAdapter::_colorAssigned [protected] |
osg::ref_ptr<osg::Vec4Array> osg::GLBeginEndAdapter::_colors [protected] |
MatrixStack osg::GLBeginEndAdapter::_matrixStack [protected] |
MatrixMode osg::GLBeginEndAdapter::_mode [protected] |
osg::Vec3f osg::GLBeginEndAdapter::_normal [protected] |
bool osg::GLBeginEndAdapter::_normalAssigned [protected] |
osg::ref_ptr<osg::Vec3Array> osg::GLBeginEndAdapter::_normals [protected] |
osg::Vec4f osg::GLBeginEndAdapter::_overallColor [protected] |
osg::Vec3f osg::GLBeginEndAdapter::_overallNormal [protected] |
GLenum osg::GLBeginEndAdapter::_primitiveMode [protected] |
State* osg::GLBeginEndAdapter::_state [protected] |
VertexList osg::GLBeginEndAdapter::_texCoordList [protected] |
VertexList osg::GLBeginEndAdapter::_vertexAttribList [protected] |
osg::ref_ptr<osg::Vec3Array> osg::GLBeginEndAdapter::_vertices [protected] |
| Generated at Thu Sep 27 2012 17:02:53 for the OpenSceneGraph by doxygen 1.7.6.1. |