leocad/common/tr.h

47 lines
1 KiB
C
Raw Normal View History

2011-09-07 23:06:51 +02:00
// TR.h: interface for the TiledRender class.
//
//////////////////////////////////////////////////////////////////////
#ifndef _TR_H_
#define _TR_H_
class TiledRender
{
public:
TiledRender();
2017-02-11 18:46:21 +01:00
~TiledRender();
2011-09-07 23:06:51 +02:00
2017-02-11 18:46:21 +01:00
void TileSize(int width, int height);
2011-09-07 23:06:51 +02:00
void ImageSize(int width, int height);
void Ortho(double left, double right, double bottom, double top, double zNear, double zFar);
void Frustum(double left, double right, double bottom, double top, double zNear, double zFar);
void Perspective(double fovy, double aspect, double zNear, double zFar );
int EndTile();
2017-02-11 18:46:21 +01:00
lcMatrix44 BeginTile();
2011-09-07 23:06:51 +02:00
// Final image parameters
2017-02-11 18:46:21 +01:00
int mImageWidth, mImageHeight;
2011-09-07 23:06:51 +02:00
// Tile parameters
2017-02-11 18:46:21 +01:00
int mTileWidth, mTileHeight;
2011-09-07 23:06:51 +02:00
// Projection parameters
2017-02-11 18:46:21 +01:00
bool mPerspective;
double mLeft;
double mRight;
double mBottom;
double mTop;
double mNear;
double mFar;
2011-09-07 23:06:51 +02:00
// Misc
2017-02-11 18:46:21 +01:00
int mRows, mColumns;
int mCurrentTile;
int mCurrentTileWidth, mCurrentTileHeight;
int mCurrentRow, mCurrentColumn;
2011-09-07 23:06:51 +02:00
2017-02-11 18:46:21 +01:00
GLint mViewportSave[4];
2011-09-07 23:06:51 +02:00
};
#endif // _TR_H_