CSCI441 OpenGL Library 5.9.0
CS@Mines CSCI441 Computer Graphics Course Library
|
CSCI441 Helper Functions for OpenGL. More...
Classes | |
class | ArcballCam |
A camera that implements an ArcBall camera model. More... | |
class | Camera |
Abstract Class to represent a synthetic camera. The following methods must be overridden: More... | |
class | ComputeShaderProgram |
Handles registration and compilation of Compute Shaders. More... | |
class | FixedCam |
A camera that can be positioned and oriented but never moved or rotated. More... | |
class | FreeCam |
A camera that implements a FreeCam camera model. More... | |
class | HUDCamera |
creates a 2D Orthographic projection camera used for Heads Up Display overlays More... | |
class | MD5Camera |
A camera that implements the MD5Camera specification. More... | |
class | MD5Model |
stores a Doom3 MD5 Mesh + Animation More... | |
class | ModelLoader |
Loads object models from file and renders using VBOs/VAOs. More... | |
class | OpenGL3DEngine |
Abstract Class to run an OpenGL application with a 3D environment. Creates and contains a default ArcballCam implementation, tracks the status of the left mouse button, shift key, and mouse position. The following methods must be overridden: More... | |
class | OpenGLEngine |
Abstract Class to run an OpenGL application. The following methods must be overridden: More... | |
class | OrthographicCamera |
Abstract Class to represent an orthographic camera. Stores box clip planes. More... | |
class | PerspectiveCamera |
Abstract Class to represent a perspective camera. Stores aspect ratio and field of view. More... | |
class | ShaderProgram |
Handles registration and compilation of Shaders. More... | |
class | ShaderProgramPipeline |
Handles registration and compilation of Shader Program Pipelines. More... | |
class | UniformBufferObject |
Storage of UBO related data. More... | |
Functions | |
void | setVertexAttributeLocations (GLint positionLocation, GLint normalLocation=-1, GLint texCoordLocation=-1) |
Sets the attribute locations for vertex positions, normals, and texture coordinates. | |
void | deleteObjectVAOs () |
deletes the VAOs stored for all object types | |
void | deleteObjectVBOs () |
deletes the VBOs stored for all object types | |
void | drawSolidCone (GLfloat base, GLfloat height, GLint stacks, GLint slices) |
Draws a solid cone. | |
void | drawWireCone (GLfloat base, GLfloat height, GLint stacks, GLint slices) |
Draws a wireframe cone. | |
void | drawSolidCube (GLfloat sideLength) |
Calls through to drawSolidCubeIndexed() | |
void | drawSolidCubeFlat (GLfloat sideLength) |
Draws a solid cube with normals aligned with cube face. | |
void | drawSolidCubeIndexed (GLfloat sideLength) |
Draws a solid cube. | |
void | drawSolidCubeTextured (GLfloat sideLength) |
Draws a solid textured cube. Calls through to drawSolidCubeFlat() | |
void | drawWireCube (GLfloat sideLength) |
Draws a wireframe cube. | |
void | drawCubeMap (GLfloat sideLength) |
Draws a cube with 3D Texture Coordinates to map a cube map texture to it. | |
void | drawSolidCylinder (GLfloat base, GLfloat top, GLfloat height, GLint stacks, GLint slices) |
Draws a solid open ended cylinder. | |
void | drawWireCylinder (GLfloat base, GLfloat top, GLfloat height, GLint stacks, GLint slices) |
Draws a wireframe open ended cylinder. | |
void | drawSolidDisk (GLfloat inner, GLfloat outer, GLint slices, GLint rings) |
Draws a solid disk. | |
void | drawWireDisk (GLfloat inner, GLfloat outer, GLint slices, GLint rings) |
Draws a wireframe disk. | |
void | drawSolidPartialDisk (GLfloat inner, GLfloat outer, GLint slices, GLint rings, GLfloat start, GLfloat sweep) |
Draws part of a solid disk. | |
void | drawWirePartialDisk (GLfloat inner, GLfloat outer, GLint slices, GLint rings, GLfloat start, GLfloat sweep) |
Draws part of a wireframe disk. | |
void | drawSolidSphere (GLfloat radius, GLint stacks, GLint slices) |
Draws a solid sphere. | |
void | drawWireSphere (GLfloat radius, GLint stacks, GLint slices) |
Draws a wireframe sphere. | |
void | drawSolidHalfSphere (GLfloat radius, GLint stacks, GLint slices) |
Draws a solid half sphere with a bottom. | |
void | drawWireHalfSphere (GLfloat radius, GLint stacks, GLint slices) |
Draws a wireframe half sphere with a bottom. | |
void | drawSolidDome (GLfloat radius, GLint stacks, GLint slices) |
Draws a solid dome. | |
void | drawWireDome (GLfloat radius, GLint stacks, GLint slices) |
Draws a wireframe dome. | |
void | drawSolidTeapot (GLfloat unused=1.0f) |
Draws a solid teapot. | |
void | drawWireTeapot (GLfloat unused=1.0f) |
Draws a wireframe teapot. | |
void | drawSolidTorus (GLfloat innerRadius, GLfloat outerRadius, GLint sides, GLint rings) |
Draws a solid torus. | |
void | drawWireTorus (GLfloat innerRadius, GLfloat outerRadius, GLint sides, GLint rings) |
Draws a wireframe torus. | |
CSCI441 Helper Functions for OpenGL.
|
inline |
Draws a cube with 3D Texture Coordinates to map a cube map texture to it.
sideLength | length of the edge of the cube |
|
inline |
Draws a solid cone.
base | radius of the base of the cone |
height | height of the cone from the base to the tip |
stacks | resolution of the number of steps rotated around the central axis of the cone |
slices | resolution of the number of steps to take along the height |
|
inline |
Calls through to drawSolidCubeIndexed()
sideLength | length of the edge of the cube |
|
inline |
Draws a solid cube with normals aligned with cube face.
sideLength | length of the edge of the cube |
|
inline |
Draws a solid cube.
sideLength | length of the edge of the cube |
|
inline |
Draws a solid textured cube. Calls through to drawSolidCubeFlat()
sideLength | length of the edge of the cube |
|
inline |
Draws a solid open ended cylinder.
base | radius of the base of the cylinder |
top | radius of the top of the cylinder |
height | height of the cylinder from the base to the top |
stacks | resolution of the number of steps rotated around the central axis of the cylinder |
slices | resolution of the number of steps to take along the height |
|
inline |
Draws a solid disk.
inner | equivalent to the width of the disk |
outer | radius from the center of the disk to the center of the ring |
slices | resolution of the number of steps rotated along the disk |
rings | resolution of the number of steps to take along the disk width |
|
inline |
Draws a solid dome.
radius | radius of the dome |
stacks | resolution of the number of steps to take along theta (rotate around Y-axis) |
slices | resolution of the number of steps to take along phi (rotate around X- or Z-axis) |
|
inline |
Draws a solid half sphere with a bottom.
radius | radius of the sphere |
stacks | resolution of the number of steps to take along theta (rotate around Y-axis) |
slices | resolution of the number of steps to take along phi (rotate around X- or Z-axis) |
|
inline |
Draws part of a solid disk.
inner | equivalent to the width of the disk |
outer | radius from the center of the disk to the center of the ring |
slices | resolution of the number of steps rotated along the disk |
rings | resolution of the number of steps to take along the disk width |
start | angle in degrees to start the disk at |
sweep | distance in degrees to rotate through |
|
inline |
Draws a solid sphere.
radius | radius of the sphere |
stacks | resolution of the number of steps to take along theta (rotate around Y-axis) |
slices | resolution of the number of steps to take along phi (rotate around X- or Z-axis) |
|
inline |
Draws a solid teapot.
unused | present for historical compatability |
|
inline |
Draws a solid torus.
innerRadius | equivalent to the width of the torus ring |
outerRadius | radius from the center of the torus to the center of the ring |
sides | resolution of steps to take around the band of the ring |
rings | resolution of steps to take around the torus |
|
inline |
Draws a wireframe cone.
base | radius of the base of the cone |
height | height of the cone from the base to the tip |
stacks | resolution of the number of steps rotated around the central axis of the cone |
slices | resolution of the number of steps to take along the height |
|
inline |
Draws a wireframe cube.
sideLength | length of the edge of the cube |
|
inline |
Draws a wireframe open ended cylinder.
base | radius of the base of the cylinder |
top | radius of the top of the cylinder |
height | height of the cylinder from the base to the top |
stacks | resolution of the number of steps rotated around the central axis of the cylinder |
slices | resolution of the number of steps to take along the height |
|
inline |
Draws a wireframe disk.
inner | equivalent to the width of the disk |
outer | radius from the center of the disk to the center of the ring |
slices | resolution of the number of steps rotated along the disk |
rings | resolution of the number of steps to take along the disk width |
|
inline |
Draws a wireframe dome.
radius | radius of the dome |
stacks | resolution of the number of steps to take along theta (rotate around Y-axis) |
slices | resolution of the number of steps to take along phi (rotate around X- or Z-axis) |
|
inline |
Draws a wireframe half sphere with a bottom.
radius | radius of the sphere |
stacks | resolution of the number of steps to take along theta (rotate around Y-axis) |
slices | resolution of the number of steps to take along phi (rotate around X- or Z-axis) |
|
inline |
Draws part of a wireframe disk.
inner | equivalent to the width of the disk |
outer | radius from the center of the disk to the center of the ring |
slices | resolution of the number of steps rotated along the disk |
rings | resolution of the number of steps to take along the disk width |
start | angle in degrees to start the disk at |
sweep | distance in degrees to rotate through |
|
inline |
Draws a wireframe sphere.
radius | radius of the sphere |
stacks | resolution of the number of steps to take along theta (rotate around Y-axis) |
slices | resolution of the number of steps to take along phi (rotate around X- or Z-axis) |
|
inline |
Draws a wireframe teapot.
unused | present for historical compatability |
|
inline |
Draws a wireframe torus.
innerRadius | equivalent to the width of the torus ring |
outerRadius | radius from the center of the torus to the center of the ring |
sides | resolution of steps to take around the band of the ring |
rings | resolution of steps to take around the torus |
|
inline |
Sets the attribute locations for vertex positions, normals, and texture coordinates.
positionLocation | location of the vertex position attribute |
normalLocation | location of the vertex normal attribute |
texCoordLocation | location of the vertex texture coordinate attribute |