Skip to content

Commit

Permalink
xrGame/ui_defs.h: convert macros to constexpr floats
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Sep 29, 2018
1 parent 3aa80f1 commit a09608c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/xrGame/ui_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

typedef FactoryPtr<IUIShader> ui_shader;

#define UI_BASE_WIDTH 1024.0f
#define UI_BASE_HEIGHT 768.0f
constexpr float UI_BASE_WIDTH = 1024.0f;
constexpr float UI_BASE_HEIGHT = 768.0f;

enum EUIItemAlign
{
Expand Down Expand Up @@ -47,8 +47,8 @@ struct S2DVert
void rotate_pt(const Fvector2& pivot, const float cosA, const float sinA, const float kx);
};

#define UI_FRUSTUM_MAXPLANES 12
#define UI_FRUSTUM_SAFE (UI_FRUSTUM_MAXPLANES * 4)
constexpr u32 UI_FRUSTUM_MAXPLANES = 12;
constexpr u32 UI_FRUSTUM_SAFE = (UI_FRUSTUM_MAXPLANES * 4);
typedef svector<S2DVert, UI_FRUSTUM_SAFE> sPoly2D;

class C2DFrustum
Expand Down

0 comments on commit a09608c

Please sign in to comment.