Developer Documentation
ACG::GLSphere Class Reference
Inheritance diagram for ACG::GLSphere:
ACG::GLPrimitive

Public Member Functions

 GLSphere (int _slices, int _stacks)
 
void draw (GLState &_state, float _radius, const ACG::Vec3f &_center=ACG::Vec3f(0.0f, 0.0f, 0.0f))
 
void addToRenderer (class IRenderer *_renderer, const struct RenderObject *_base, float _radius, const ACG::Vec3f &_center=ACG::Vec3f(0.0f, 0.0f, 0.0f))
 
int getNumTriangles ()
 
- Public Member Functions inherited from ACG::GLPrimitive
void draw_primitive ()
 
void draw_primitive (GLSL::Program *_program)
 
void addToRenderer_primitive (class IRenderer *_renderer, struct RenderObject *_ro)
 
virtual int getNumLines ()
 
unsigned int getVBO ()
 
const VertexDeclarationgetVertexDecl () const
 

Private Member Functions

void updateVBO ()
 
void addTriangle (int sl0, int st0, int sl1, int st1, int sl2, int st2)
 
ACG::Vec3f positionOnSphere (int _sliceNumber, int _stackNumber)
 
ACG::Vec2f texCoordOnSphere (int _sliceNumber, int _stackNumber)
 

Private Attributes

int slices_
 
int stacks_
 

Additional Inherited Members

- Public Types inherited from ACG::GLPrimitive
enum  NormalOrientation { OUTSIDE, INSIDE }
 
- Protected Member Functions inherited from ACG::GLPrimitive
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 ()
 
- Protected Attributes inherited from ACG::GLPrimitive
bool vboDataInvalid_
 
NormalOrientation normalOrientation_
 

Detailed Description

Definition at line 139 of file GLPrimitives.hh.


The documentation for this class was generated from the following files: