Files | |
file | buffer.cpp |
file | buffer.h |
OpenGL Framebuffer Classes. | |
file | colmap.cpp |
file | colmap.h |
One Dimensional Color-Mapping Class. | |
file | color.cpp |
file | color.h |
OpenGL Color Interface. | |
file | config.cpp |
file | config.h |
GLT Configuration File. | |
file | countsrf.cpp |
file | countsrf.h |
Surface Counting Interface. | |
file | cursor.cpp |
file | cursor.h |
OpenGL Cursor Interface. | |
file | dlcache.cpp |
file | dlcache.h |
Display List Cache. | |
file | error.cpp |
file | error.h |
OpenGL Debugging Tools. | |
file | font.cpp |
file | font.h |
OpenGL Font Interface. | |
file | fontasci.cpp |
file | fontasci.h |
Ascii OpenGL Font Interface. | |
file | fonttex.cpp |
file | fonttex.h |
Textured OpenGL Font. | |
file | fontunic.cpp |
file | fontunic.h |
OpenGL Unicode Font Class. | |
file | frame.cpp |
file | frame.h |
OpenGL Frame Rate Information. | |
file | gl.h |
OpenGL (proxy) header file. | |
file | glu.h |
GLU (proxy) header file. | |
file | info.cpp |
file | info.h |
Output OpenGL information. | |
file | light.cpp |
file | light.h |
OpenGL Light Source Class. | |
file | lightm.cpp |
file | lightm.h |
OpenGL Lighting Model Class. | |
file | material.cpp |
file | material.h |
OpenGL Material Class. | |
file | matrix.cpp |
file | matrix.h |
OpenGL Matrix Manipulation. | |
file | mcubes.cpp |
file | mcubes.cpp |
file | mcubes.h |
Marching Cubes Interface. | |
file | project.cpp |
file | project.h |
OpenGL Projection Classes. | |
file | raster.cpp |
file | raster.h |
OpenGL Raster Position Class. | |
file | rgb.cpp |
file | rgb.h |
OpenGL Convenience Colors. | |
file | texture.cpp |
file | texture.h |
OpenGL Texture Class. | |
file | viewport.cpp |
file | viewport.h |
OpenGL Viewport Class. | |
file | zplane.cpp |
file | zplane.h |
Z-Plane Drawing. | |
file | zvis.cpp |
file | zvis.h |
OpenGL Z-Buffer Visualisation. | |
Compounds | |
class | GltFrameBuffer |
Base class for framebuffer interfaces. More... | |
class | GltFrameBufferRGB |
RGB frame buffer interface. More... | |
class | GltFrameBufferZ |
Z-buffer interface. More... | |
class | GltFrameBufferStencil |
Stencil buffer interface. More... | |
class | GltColorMap |
One Dimensional Color-Mapping Class. More... | |
class | GltColor |
OpenGL RGB Color. More... | |
class | GltClearColor |
OpenGL RGB Clear Color. More... | |
class | GltCursor |
Cursor position class. More... | |
class | GltDisplayListCache |
Display List Cache. More... | |
class | GltFont |
Abstract base class for bitmap fonts. More... | |
class | GltFontAscii |
GLT ASCII font class. More... | |
class | GltFontTexture |
GLT Textured font class. More... | |
class | GltFontUnicode |
OpenGL Unicode Font Class. More... | |
class | GltFrameRate |
OpenGL Frame Rate Information Class. More... | |
class | GltLight |
OpenGL Light Source Class. More... | |
class | GltLightModel |
OpenGL Lighting Model Class. More... | |
class | GltMaterial |
OpenGL Material Class. More... | |
class | GltPushMatrix |
OpenGL Push-Matrix Convenience Class. More... | |
class | GltOrtho |
OpenGL Orthographic Camera Class. More... | |
class | GltFrustum |
OpenGL Perspective Camera Class. More... | |
class | GltRasterPos |
OpenGL Raster Position Class. More... | |
class | GltTexture |
OpenGL Texture Class. More... | |
class | GltViewport |
OpenGL Viewport Class. More... | |
class | GltSkyBox |
OpenGL Sky Box. More... | |
class | GltSkySphere |
OpenGL Sphere Box. More... | |
Defines | |
#define | GLERROR |
Check OpenGL error state. | |
Typedefs | |
typedef GltFrameBufferZ< GLfloat, GL_FLOAT > | GltFrameBufferZFloat |
Floating point z-buffer. | |
typedef GltFrameBufferZ< GLushort, GL_UNSIGNED_SHORT > | GltFrameBufferZShort |
Unsigned short z-buffer. | |
typedef GltFrameBufferZ< GLuint, GL_UNSIGNED_INT > | GltFrameBufferZUint |
Unsigned integer z-buffer. | |
typedef GltFrameBufferStencil< GLubyte, GL_UNSIGNED_BYTE > | GltFrameBufferStencilUbyte |
Unsigned byte stencil buffer. | |
Enumerations | |
enum | GltTextureType { TEXTURE_TYPE_RGB = 0, TEXTURE_TYPE_RGBA, TEXTURE_TYPE_GREY, TEXTURE_TYPE_GREYA, TEXTURE_TYPE_ALPHA, TEXTURE_TYPE_BITMAP, TEXTURE_TYPE_INDEXED_RGB, TEXTURE_TYPE_INDEXED_RGBA } |
GLT texture types. More... | |
Functions | |
GltColor | operator * (const GltColor &c, const real x) |
Scale color. | |
GltColor | operator/ (const GltColor &c, const real x) |
Scale color. | |
GltColor | operator * (const real x, const GltColor &c) |
Scale color. | |
GltColor | operator+ (const GltColor &c1, const GltColor &c2) |
Add red, green and blue components. | |
GltColor | operator- (const GltColor &c1, const GltColor &c2) |
Subtract red, green and blue components. | |
void | countSurfaces (const GltShape &shape) |
Use the stencil buffer to count the number of surfaces drawn at each pixel. | |
GLubyte | countSurfaces (const GltShape &shape, const countSurfacesMode mode) |
Use the stencil buffer to count the number of surfaces drawn at each pixel. | |
GLubyte | countSurfacesVisualise (const GltShape &shape) |
Visualise the number of rendered surfaces at each pixel. | |
GLuint | stencilHistogram (GLuint histogram[256]) |
Extract a stencil buffer histogram for the current viewport. | |
void | glTranslate (const Vector &tr) |
OpenGL vector translation. | |
void | glScale (const Vector &sf) |
OpenGL non-uniform scale. | |
void | glScale (const GLdouble sf) |
OpenGL uniform scale. | |
void | glScale (const GLfloat sf) |
OpenGL uniform scale. | |
void | glScale (const GLint sf) |
OpenGL uniform scale. | |
void | glScale (const GLuint sf) |
OpenGL uniform scale. | |
void | glRotateX (const GLdouble angle, const Vector &axis) |
OpenGL rotation. | |
void | glRotateX (const GLdouble angle) |
OpenGL rotation around X axis. | |
void | glRotateX (const GLfloat angle) |
OpenGL rotation around X axis. | |
void | glRotateX (const GLint angle) |
OpenGL rotation around X axis. | |
void | glRotateX (const GLuint angle) |
OpenGL rotation around X axis. | |
void | glRotateY (const GLdouble angle) |
OpenGL rotation around Y axis. | |
void | glRotateY (const GLfloat angle) |
OpenGL rotation around Y axis. | |
void | glRotateY (const GLint angle) |
OpenGL rotation around Y axis. | |
void | glRotateY (const GLuint angle) |
OpenGL rotation around Y axis. | |
void | glRotateZ (const GLdouble angle) |
OpenGL rotation around Z axis. | |
void | glRotateZ (const GLfloat angle) |
OpenGL rotation around Z axis. | |
void | glRotateZ (const GLint angle) |
OpenGL rotation around Z axis. | |
void | glRotateZ (const GLuint angle) |
OpenGL rotation around Z axis. | |
int | GltMarchingCubes (GltFunc3d func, float minx, float miny, float minz, float maxx, float maxy, float maxz, int xsteps, int ysteps, int zsteps) |
Marching Cubes Algorithm. | |
void | drawZnear () |
Draw an OpenGL polygon at Z-near, covering the viewport. | |
void | drawZfar () |
Draw an OpenGL polygon at Z-far, covering the viewport. | |
void | drawZat (const GLdouble z) |
Draw an OpenGL polygon at a z-position, covering the viewport. |
|
|
GLT texture types.
|
|
Use the stencil buffer to count the number of surfaces drawn at each pixel.
Definition at line 28 of file countsrf.cpp. |
|
Use the stencil buffer to count the number of surfaces drawn at each pixel.
Definition at line 65 of file countsrf.cpp. References COUNT_SURFACES_99TH_PERCENTILE, COUNT_SURFACES_ALL, countSurfacesMode, GLERROR, and stencilHistogram(). Referenced by countSurfacesVisualise(). |
|
Visualise the number of rendered surfaces at each pixel.
Definition at line 139 of file countsrf.cpp. References COUNT_SURFACES_ALL, countSurfaces(), drawZnear(), GltColor::glColor(), and maxColors. |
|
Extract a stencil buffer histogram for the current viewport.
Definition at line 181 of file countsrf.cpp. Referenced by countSurfaces(). |
|
OpenGL vector translation.
Definition at line 77 of file matrix.h. References Vector::x(), Vector::y(), and Vector::z(). |
|
OpenGL non-uniform scale.
Definition at line 87 of file matrix.h. References Vector::x(), Vector::y(), and Vector::z(). |
|
OpenGL uniform scale.
|
|
OpenGL uniform scale.
|
|
OpenGL uniform scale.
|
|
OpenGL uniform scale.
|
|
OpenGL rotation.
Definition at line 122 of file matrix.h. References Vector::x(), Vector::y(), and Vector::z(). |
|
OpenGL rotation around X axis.
|
|
OpenGL rotation around X axis.
|
|
OpenGL rotation around X axis.
|
|
OpenGL rotation around X axis.
Definition at line 149 of file matrix.h. Referenced by GlutAxes::draw(). |
|
OpenGL rotation around Y axis.
|
|
OpenGL rotation around Y axis.
|
|
OpenGL rotation around Y axis.
|
|
OpenGL rotation around Y axis.
Definition at line 173 of file matrix.h. Referenced by GlutAxes::draw(). |
|
OpenGL rotation around Z axis.
|
|
OpenGL rotation around Z axis.
|
|
OpenGL rotation around Z axis.
|
|
OpenGL rotation around Z axis.
|
|
Marching Cubes Algorithm. A simple implementation of the marching cubes algorithm for tesselating a 3d function. The function is tesselated into triangle faces and drawn using OpenGL. You are free to use all or part of this code in your own programs as long as proper credit is given.
Definition at line 66 of file mcubes.cpp. References GltFunc3d. |