Developer Documentation
|
Public Member Functions | |
GLTorus (GLdouble innerRadius, GLdouble outerRadius, GLint nsides, GLint rings) | |
int | getNumTriangles () override |
![]() | |
void | draw_primitive () |
void | draw_primitive (GLSL::Program *_program) |
void | addToRenderer_primitive (class IRenderer *_renderer, struct RenderObject *_ro) |
virtual int | getNumTriangles ()=0 |
virtual int | getNumLines () |
unsigned int | getVBO () |
const VertexDeclaration * | getVertexDecl () const |
Private Member Functions | |
void | updateVBO () override |
Private Attributes | |
int | rings_ |
int | nsides_ |
float | innerRadius_ |
float | outerRadius_ |
Additional Inherited Members | |
![]() | |
enum | NormalOrientation { OUTSIDE , INSIDE } |
![]() | |
virtual void | updateVBO ()=0 |
void | addTriangleToVBO (const ACG::Vec3f *_p, const ACG::Vec3f *_n, const ACG::Vec2f *_tex) |
void | addLineToVBO (const ACG::Vec3f *_p, const ACG::Vec3f *_n, const ACG::Vec2f *_tex) |
void | bindVBO () |
bool | checkVBO () |
void | unBindVBO () |
![]() | |
bool | vboDataInvalid_ |
NormalOrientation | normalOrientation_ |
Definition at line 357 of file GLPrimitives.hh.
ACG::GLTorus::GLTorus | ( | GLdouble | innerRadius, |
GLdouble | outerRadius, | ||
GLint | nsides, | ||
GLint | rings | ||
) |
Definition at line 1449 of file GLPrimitives.cc.
ACG::GLTorus::~GLTorus | ( | ) |
Definition at line 1461 of file GLPrimitives.cc.
|
overridevirtual |
Implements ACG::GLPrimitive.
Definition at line 1467 of file GLPrimitives.cc.
|
overrideprivatevirtual |
Implements ACG::GLPrimitive.
Definition at line 1474 of file GLPrimitives.cc.
|
private |
Definition at line 373 of file GLPrimitives.hh.
|
private |
Definition at line 372 of file GLPrimitives.hh.
|
private |
Definition at line 374 of file GLPrimitives.hh.
|
private |
Definition at line 371 of file GLPrimitives.hh.