Several useful OpenGL effects. More...
Classes | |
struct | glut::sphere_init_t |
data needed for cool spheres More... | |
struct | glut::tex_sphere_t |
data needed for texture-mapped spheres More... | |
Functions | |
glut::sphere_init_t::sphere_init_t (void) throw () | |
void | glut::sphere_init_t::clear (void) throw () |
bool | glut::sphere_init_t::isValid (void) const throw () |
smart_ptr< Renderable > | glut::createCoolSphere (IN const sphere_init_t &si) |
create a really cool-looking sphere. Yeah. | |
smart_ptr< Renderable > | glut::createMappedSphere (IN const tex_sphere_t &ts) |
create a texture-mapped sphere (mercator projection) The sphere will be oriented so that north is the positive y-direction, and that will be the top of the texture (v=1 coordinate) | |
Variables | |
float | glut::sphere_init_t::radius |
radius of sphere (meters) | |
int | glut::sphere_init_t::nRings |
number of electricity rings | |
img_color_t | glut::sphere_init_t::color |
color of sphere | |
int | glut::tex_sphere_t::textureId |
texture to use |
Several useful OpenGL effects.
glut::sphere_init_t::sphere_init_t | ( | void | ) | throw () [inline, inherited] |
Definition at line 62 of file opengl-effects.h.
void glut::sphere_init_t::clear | ( | void | ) | throw () [inline, inherited] |
Definition at line 63 of file opengl-effects.h.
bool glut::sphere_init_t::isValid | ( | void | ) | const throw () [inline, inherited] |
Definition at line 68 of file opengl-effects.h.
smart_ptr< Renderable > glut::createCoolSphere | ( | IN const sphere_init_t & | si | ) |
create a really cool-looking sphere. Yeah.
Definition at line 326 of file sphere.cpp.
smart_ptr< Renderable > glut::createMappedSphere | ( | IN const tex_sphere_t & | ts | ) |
create a texture-mapped sphere (mercator projection) The sphere will be oriented so that north is the positive y-direction, and that will be the top of the texture (v=1 coordinate)
Definition at line 289 of file tex-sphere.cpp.
float glut::sphere_init_t::radius [inherited] |
radius of sphere (meters)
Definition at line 74 of file opengl-effects.h.
int glut::sphere_init_t::nRings [inherited] |
number of electricity rings
Definition at line 75 of file opengl-effects.h.
img_color_t glut::sphere_init_t::color [inherited] |
color of sphere
Definition at line 76 of file opengl-effects.h.
int glut::tex_sphere_t::textureId [inherited] |
texture to use
Definition at line 91 of file opengl-effects.h.