re3/src/render/Draw.h

34 lines
930 B
C
Raw Normal View History

2019-05-15 14:52:37 +00:00
#pragma once
#define HUD_SCALE 0.8f
#define DEFAULT_SCALE 1.0f
2019-05-15 14:52:37 +00:00
class CDraw
{
private:
static float &ms_fNearClipZ;
static float &ms_fFarClipZ;
static float &ms_fFOV;
2019-06-15 22:20:55 +00:00
static float ms_fAspectRatio;
static float ms_fScreenMultiplier;
2019-06-15 22:20:55 +00:00
2019-05-15 14:52:37 +00:00
public:
static uint8 &FadeValue;
static uint8 &FadeRed;
static uint8 &FadeGreen;
static uint8 &FadeBlue;
2019-05-15 14:52:37 +00:00
static void SetNearClipZ(float nearclip) { ms_fNearClipZ = nearclip; }
static float GetNearClipZ(void) { return ms_fNearClipZ; }
static void SetFarClipZ(float farclip) { ms_fFarClipZ = farclip; }
static float GetFarClipZ(void) { return ms_fFarClipZ; }
2019-06-15 22:20:55 +00:00
2019-05-30 11:35:13 +00:00
static void SetFOV(float fov);
2019-05-15 14:52:37 +00:00
static float GetFOV(void) { return ms_fFOV; }
2019-06-15 22:20:55 +00:00
static void CalculateAspectRatio();
static float GetAspectRatio(void) { return ms_fAspectRatio; }
static void SetScreenMult(float mult) { ms_fScreenMultiplier = mult; };
static float GetScreenMult(void) { return ms_fScreenMultiplier; };
2019-05-15 14:52:37 +00:00
};