|
3Depict
|
#include "common/assertion.h"#include <math.h>#include <cstdlib>#include <GL/gl.h>#include <GL/glu.h>#include "tr.h"
Classes | |
| struct | _TRctx |
Macros | |
| #define | DEFAULT_TILE_WIDTH 256 |
| #define | DEFAULT_TILE_HEIGHT 256 |
| #define | DEFAULT_TILE_BORDER 0 |
Functions | |
| TRcontext * | trNew (void) |
| void | trDelete (TRcontext *tr) |
| void | trTileSize (TRcontext *tr, GLint width, GLint height, GLint border) |
| void | trTileBuffer (TRcontext *tr, GLenum format, GLenum type, GLvoid *image) |
| void | trImageSize (TRcontext *tr, GLint width, GLint height) |
| void | trImageBuffer (TRcontext *tr, GLenum format, GLenum type, GLvoid *image) |
| GLint | trGet (TRcontext *tr, TRenum param) |
| void | trRowOrder (TRcontext *tr, TRenum order) |
| void | trOrtho (TRcontext *tr, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar) |
| void | trFrustum (TRcontext *tr, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar) |
| void | trPerspective (TRcontext *tr, GLdouble fovy, GLdouble aspect, GLdouble zNear, GLdouble zFar) |
| void | trBeginTile (TRcontext *tr) |
| int | trEndTile (TRcontext *tr) |
| void | trRasterPos3f (TRcontext *tr, GLfloat x, GLfloat y, GLfloat z) |
| #define DEFAULT_TILE_BORDER 0 |
Referenced by trNew().
| #define DEFAULT_TILE_HEIGHT 256 |
Referenced by trNew().
| #define DEFAULT_TILE_WIDTH 256 |
Referenced by trNew().
| void trBeginTile | ( | TRcontext * | tr | ) |
References _TRctx::CurrentTile.
Referenced by BasicGLPane::saveImage().

| void trDelete | ( | TRcontext * | tr | ) |
| int trEndTile | ( | TRcontext * | tr | ) |
References ASSERT, _TRctx::Columns, _TRctx::CurrentColumn, _TRctx::CurrentRow, _TRctx::CurrentTile, _TRctx::CurrentTileHeight, _TRctx::CurrentTileWidth, _TRctx::ImageBuffer, _TRctx::ImageFormat, _TRctx::ImageType, _TRctx::ImageWidth, _TRctx::Rows, _TRctx::TileBorder, _TRctx::TileBuffer, _TRctx::TileFormat, _TRctx::TileHeightNB, _TRctx::TileType, _TRctx::TileWidthNB, and _TRctx::ViewportSave.
Referenced by BasicGLPane::saveImage().

| void trFrustum | ( | TRcontext * | tr, |
| GLdouble | left, | ||
| GLdouble | right, | ||
| GLdouble | bottom, | ||
| GLdouble | top, | ||
| GLdouble | zNear, | ||
| GLdouble | zFar | ||
| ) |
References _TRctx::Bottom, _TRctx::Far, _TRctx::Left, _TRctx::Near, _TRctx::Perspective, _TRctx::Right, and _TRctx::Top.
Referenced by trPerspective().

References _TRctx::Columns, _TRctx::CurrentColumn, _TRctx::CurrentRow, _TRctx::CurrentTile, _TRctx::CurrentTileHeight, _TRctx::CurrentTileWidth, _TRctx::ImageHeight, _TRctx::ImageWidth, _TRctx::RowOrder, _TRctx::Rows, _TRctx::TileBorder, _TRctx::TileHeight, _TRctx::TileWidth, TR_COLUMNS, TR_CURRENT_COLUMN, TR_CURRENT_ROW, TR_CURRENT_TILE_HEIGHT, TR_CURRENT_TILE_WIDTH, TR_IMAGE_HEIGHT, TR_IMAGE_WIDTH, TR_ROW_ORDER, TR_ROWS, TR_TILE_BORDER, TR_TILE_HEIGHT, and TR_TILE_WIDTH.
Referenced by BasicGLPane::saveImage().

| void trImageBuffer | ( | TRcontext * | tr, |
| GLenum | format, | ||
| GLenum | type, | ||
| GLvoid * | image | ||
| ) |
References _TRctx::ImageBuffer, _TRctx::ImageFormat, and _TRctx::ImageType.
Referenced by BasicGLPane::updateClearColour().

| void trImageSize | ( | TRcontext * | tr, |
| GLint | width, | ||
| GLint | height | ||
| ) |
References _TRctx::ImageHeight, and _TRctx::ImageWidth.
Referenced by BasicGLPane::updateClearColour().

| TRcontext* trNew | ( | void | ) |
References _TRctx::CurrentTile, DEFAULT_TILE_BORDER, DEFAULT_TILE_HEIGHT, DEFAULT_TILE_WIDTH, _TRctx::RowOrder, _TRctx::TileBorder, _TRctx::TileHeight, _TRctx::TileWidth, and TR_BOTTOM_TO_TOP.
Referenced by BasicGLPane::updateClearColour().

| void trOrtho | ( | TRcontext * | tr, |
| GLdouble | left, | ||
| GLdouble | right, | ||
| GLdouble | bottom, | ||
| GLdouble | top, | ||
| GLdouble | zNear, | ||
| GLdouble | zFar | ||
| ) |
References _TRctx::Bottom, _TRctx::Far, _TRctx::Left, _TRctx::Near, _TRctx::Perspective, _TRctx::Right, and _TRctx::Top.
Referenced by BasicGLPane::saveImage().

| void trPerspective | ( | TRcontext * | tr, |
| GLdouble | fovy, | ||
| GLdouble | aspect, | ||
| GLdouble | zNear, | ||
| GLdouble | zFar | ||
| ) |
References M_PI, and trFrustum().
Referenced by BasicGLPane::saveImage().

| void trRasterPos3f | ( | TRcontext * | tr, |
| GLfloat | x, | ||
| GLfloat | y, | ||
| GLfloat | z | ||
| ) |
References _TRctx::CurrentTile, _TRctx::CurrentTileHeight, and _TRctx::CurrentTileWidth.
References _TRctx::RowOrder, TR_BOTTOM_TO_TOP, and TR_TOP_TO_BOTTOM.
Referenced by BasicGLPane::updateClearColour().

| void trTileBuffer | ( | TRcontext * | tr, |
| GLenum | format, | ||
| GLenum | type, | ||
| GLvoid * | image | ||
| ) |
References _TRctx::TileBuffer, _TRctx::TileFormat, and _TRctx::TileType.
| void trTileSize | ( | TRcontext * | tr, |
| GLint | width, | ||
| GLint | height, | ||
| GLint | border | ||
| ) |
References ASSERT, _TRctx::TileBorder, _TRctx::TileHeight, _TRctx::TileHeightNB, _TRctx::TileWidth, and _TRctx::TileWidthNB.
Referenced by BasicGLPane::updateClearColour().

1.8.13