summaryrefslogblamecommitdiffstats
path: root/src/render/Draw.h
blob: 1fcb52129569715e0853420a443370fb513ae986 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11

            


                          





                                    
                                     
                                          
 
       




                                



                                                                              
 
                                      
                                                     


                                                                     

                                                                               
  
#pragma once

#define HUD_SCALE 0.8f
#define DEFAULT_SCALE 1.0f

class CDraw
{
private:
	static float &ms_fNearClipZ;
	static float &ms_fFarClipZ;
	static float &ms_fFOV;
	static float ms_fAspectRatio;
	static float ms_fScreenMultiplier;

public:
	static uint8 &FadeValue;
	static uint8 &FadeRed;
	static uint8 &FadeGreen;
	static uint8 &FadeBlue;

	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; }

	static void SetFOV(float fov);
	static float GetFOV(void) { return ms_fFOV; }

	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; };
};