SimGear - Simulator Construction Tools
tr.h File Reference
#include <simgear/compiler.h>
#include <osg/GL>

Go to the source code of this file.

Macros

#define TR_MAJOR_VERSION   1
 
#define TR_MINOR_VERSION   1
 
#define TR_VERSION   "1.1"
 

Typedefs

typedef struct _TRctx TRcontext
 

Enumerations

enum  TRenum {
  TR_TILE_WIDTH = 100, TR_TILE_HEIGHT, TR_TILE_BORDER, TR_IMAGE_WIDTH,
  TR_IMAGE_HEIGHT, TR_ROWS, TR_COLUMNS, TR_CURRENT_ROW,
  TR_CURRENT_COLUMN, TR_CURRENT_TILE_WIDTH, TR_CURRENT_TILE_HEIGHT, TR_ROW_ORDER,
  TR_TOP_TO_BOTTOM, TR_BOTTOM_TO_TOP, TR_LEFT, TR_RIGHT,
  TR_BOTTOM, TR_TOP, TR_NEAR, TR_FAR
}
 

Functions

void trBeginTile (TRcontext *tr)
 
void trDelete (TRcontext *tr)
 
int trEndTile (TRcontext *tr)
 
void trFrustum (TRcontext *tr, GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar)
 
GLint trGet (TRcontext *tr, TRenum param)
 
GLdouble trGetD (TRcontext *tr, TRenum param)
 
void trImageBuffer (TRcontext *tr, GLenum format, GLenum type, GLvoid *image)
 
void trImageSize (TRcontext *tr, GLint width, GLint height)
 
TRcontexttrNew (void)
 
void trOrtho (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 trRasterPos3f (TRcontext *tr, GLfloat x, GLfloat y, GLfloat z)
 
void trRowOrder (TRcontext *tr, TRenum order)
 
void trTileBuffer (TRcontext *tr, GLenum format, GLenum type, GLvoid *image)
 
void trTileSize (TRcontext *tr, GLint width, GLint height, GLint border)
 

Macro Definition Documentation

#define TR_MAJOR_VERSION   1

Definition at line 112 of file tr.h.

#define TR_MINOR_VERSION   1

Definition at line 113 of file tr.h.

#define TR_VERSION   "1.1"

Definition at line 111 of file tr.h.

Typedef Documentation

typedef struct _TRctx TRcontext

Definition at line 116 of file tr.h.

Enumeration Type Documentation

enum TRenum
Enumerator
TR_TILE_WIDTH 
TR_TILE_HEIGHT 
TR_TILE_BORDER 
TR_IMAGE_WIDTH 
TR_IMAGE_HEIGHT 
TR_ROWS 
TR_COLUMNS 
TR_CURRENT_ROW 
TR_CURRENT_COLUMN 
TR_CURRENT_TILE_WIDTH 
TR_CURRENT_TILE_HEIGHT 
TR_ROW_ORDER 
TR_TOP_TO_BOTTOM 
TR_BOTTOM_TO_TOP 
TR_LEFT 
TR_RIGHT 
TR_BOTTOM 
TR_TOP 
TR_NEAR 
TR_FAR 

Definition at line 119 of file tr.h.

Function Documentation

void trBeginTile ( TRcontext tr)

Definition at line 407 of file tr.cxx.

void trDelete ( TRcontext tr)

Definition at line 223 of file tr.cxx.

int trEndTile ( TRcontext tr)

Definition at line 481 of file tr.cxx.

void trFrustum ( TRcontext tr,
GLdouble  left,
GLdouble  right,
GLdouble  bottom,
GLdouble  top,
GLdouble  zNear,
GLdouble  zFar 
)

Definition at line 376 of file tr.cxx.

Referenced by trPerspective().

GLint trGet ( TRcontext tr,
TRenum  param 
)

Definition at line 286 of file tr.cxx.

GLdouble trGetD ( TRcontext tr,
TRenum  param 
)

Definition at line 326 of file tr.cxx.

void trImageBuffer ( TRcontext tr,
GLenum  format,
GLenum  type,
GLvoid *  image 
)

Definition at line 275 of file tr.cxx.

void trImageSize ( TRcontext tr,
GLint  width,
GLint  height 
)

Definition at line 264 of file tr.cxx.

TRcontext* trNew ( void  )

Definition at line 209 of file tr.cxx.

void trOrtho ( TRcontext tr,
GLdouble  left,
GLdouble  right,
GLdouble  bottom,
GLdouble  top,
GLdouble  zNear,
GLdouble  zFar 
)

Definition at line 358 of file tr.cxx.

void trPerspective ( TRcontext tr,
GLdouble  fovy,
GLdouble  aspect,
GLdouble  zNear,
GLdouble  zFar 
)

Definition at line 394 of file tr.cxx.

void trRasterPos3f ( TRcontext tr,
GLfloat  x,
GLfloat  y,
GLfloat  z 
)

Definition at line 550 of file tr.cxx.

void trRowOrder ( TRcontext tr,
TRenum  order 
)

Definition at line 348 of file tr.cxx.

void trTileBuffer ( TRcontext tr,
GLenum  format,
GLenum  type,
GLvoid *  image 
)

Definition at line 252 of file tr.cxx.

void trTileSize ( TRcontext tr,
GLint  width,
GLint  height,
GLint  border 
)

Definition at line 231 of file tr.cxx.