22 #ifndef WATCHMAKER_RENDERER_H 23 #define WATCHMAKER_RENDERER_H 25 #include "math/matrix4.h" 26 #include "watchmaker/2d_stuff.h" 27 #include "watchmaker/rect.h" 28 #include "watchmaker/sdl_wrapper.h" 29 #include "watchmaker/struct.h" 30 #include "watchmaker/types.h" 31 #include "watchmaker/utils.h" 32 #include "watchmaker/work_dirs.h" 51 Fonts *_fonts =
nullptr;
60 void setVirtualScreen(
unsigned int dimX,
unsigned int dimY);
61 void getScreenInfos(
unsigned int &width,
unsigned int &height)
const;
63 bool createScreenBuffer();
64 void initBlitterViewPort();
66 void setCurCameraViewport(t3dF32 fov, uint8 sup);
69 void printText(
const char *s,
unsigned int dst, FontKind font, FontColor color, uint16 x, uint16 y);
76 static const int MAX_BITMAP_LIST = 1024;
78 unsigned int _numBitmaps = 0;
81 unsigned int acquirePosition();
84 void clearBitmap(
int dst,
int dposx,
int dposy,
int sdimx,
int sdimy,
unsigned char r,
unsigned char g,
unsigned char b);
85 void blitScreenBuffer();
86 unsigned int getBitmapDimX(int32
id)
const;
87 unsigned int getBitmapDimY(int32
id)
const;
88 unsigned int getBitmapRealDimX(int32
id)
const;
89 unsigned int getBitmapRealDimY(int32
id)
const;
91 bool setProjectionMatrix(
float width,
float height,
float fAspect,
float fNearPlane,
float fFarPlane);
92 Math::Vector3d screenSpaceToCameraSpace(
float x,
float y);
98 float gAspectX = 1, gAspectY = 1;
99 float gInvAspectX = 1, gInvAspectY = 1;
100 float _nearPlane = 0.0f;
101 Math::Matrix4 _projectionMatrix;
107 #endif // WATCHMAKER_RENDERER_H Definition: renderer.h:77
Definition: 2d_stuff.h:30
Definition: sdl_wrapper.h:32
Definition: renderer.h:39
Definition: work_dirs.h:30
Definition: 2d_stuff.h:34
Definition: renderer.h:45
Definition: material.h:39