81 void AttributeBegin();
89 void TransformBegin();
105 void Translate(
const Real _x,
const Real _y,
const Real _z );
113 void Rotate(
const Real _angle,
const Real _x,
const Real _y,
const Real _z );
121 void Scale(
const Real _x,
const Real _y,
const Real _z );
129 void Sphere(
const Real _radius,
const Real _zMin,
const Real _zMax,
const Real _sweep );
137 void Cylinder(
const Real _radius,
const Real _zMin,
const Real _zMax,
const Real _sweep);
144 void Cone(
const Real _height,
const Real _radius,
const Real _sweep );
152 void Paraboloid(
const Real _topRad,
const Real _zMin,
const Real _zMax,
const Real _sweep );
159 void Hyperboloid(
const Real _p1,
const Real _p2,
const Real _sweep );
166 void Disk(
const Real _height,
const Real _radius,
const Real _sweep );
175 void Torus(
const Real _major,
const Real _minor,
const Real _phiMin,
const Real _phiMax,
const Real _sweep);
int m_tabs
the current tab level for auto tabing of rib file
std::fstream & getStream()
a method to get the rib stream
main definition of types and namespace
int m_frameNumber
Hold the frame number for calls to Frame.
int m_worldCount
count calls to WorldBegin to ensure matching
bool isOpen()
method to see if stream is open
bool m_isOpen
if the stream is open
implementation files for RibExport class
PRECISION Real
create a variable called Real which is the main data type we use (GLfloat for most cases) ...
std::fstream m_ribFile
the RibFile stream opened in the ctor
simple rib export class, attempts to auto tab the rib file etc. needs lots of work to make it complet...
std::string m_ribFileName
The name of the RibFile.
bool m_oneShot
we can use this once or multiple times
int m_transformCount
count calls to TransformBegin to ensure matching
GLsizei const GLchar *const * string
int m_attribCount
count calls to AttributeBegin to ensure matching