Skip to content

Commit 8ca4e1a

Browse files
committed
Merge from dev [skip ci]
2 parents c6245aa + 6cee14e commit 8ca4e1a

File tree

2 files changed

+3
-43
lines changed

2 files changed

+3
-43
lines changed

ogsr_engine/xrGame/ui_defs.h

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -5,43 +5,3 @@
55
#include "../Include/xrRender/UIShader.h"
66

77
typedef FactoryPtr<IUIShader> ui_shader;
8-
9-
/*
10-
#define UI_BASE_WIDTH 1024.0f
11-
#define UI_BASE_HEIGHT 768.0f
12-
13-
enum EUIItemAlign{
14-
alNone = 0x0000,
15-
alLeft = 0x0001,
16-
alRight = 0x0002,
17-
alTop = 0x0004,
18-
alBottom= 0x0008,
19-
alCenter= 0x0010
20-
};
21-
22-
struct S2DVert
23-
{
24-
Fvector2 pt;
25-
Fvector2 uv;
26-
S2DVert (){}
27-
S2DVert (float pX, float pY, float tU, float tV){pt.set(pX,pY);uv.set(tU,tV);}
28-
void set (float pt_x, float pt_y, float uv_x, float uv_y){pt.set(pt_x,pt_y);uv.set(uv_x,uv_y);}
29-
void set (const Fvector2& _pt, const Fvector2& _uv){pt.set(_pt);uv.set(_uv);}
30-
void rotate_pt (const Fvector2& pivot, const float cosA, const float sinA, const float kx);
31-
};
32-
33-
#define UI_FRUSTUM_MAXPLANES 12
34-
#define UI_FRUSTUM_SAFE (UI_FRUSTUM_MAXPLANES*4)
35-
typedef svector<S2DVert,UI_FRUSTUM_SAFE> sPoly2D;
36-
37-
class C2DFrustum
38-
{
39-
svector<Fplane2,FRUSTUM_MAXPLANES> planes;
40-
Frect m_rect;
41-
public:
42-
void CreateFromRect (const Frect& rect);
43-
sPoly2D* ClipPoly (sPoly2D& S, sPoly2D& D) const;
44-
};
45-
46-
extern ENGINE_API BOOL g_bRendering;
47-
*/

ogsr_engine/xr_3da/CameraManager.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ struct ENGINE_API SPPInfo
77
struct SColor
88
{
99
float r, g, b;
10-
SColor() = default;
10+
SColor() {};
1111
SColor(float _r, float _g, float _b) : r(_r), g(_g), b(_b) {}
1212
IC operator u32()
1313
{
@@ -44,7 +44,7 @@ struct ENGINE_API SPPInfo
4444
struct SDuality
4545
{
4646
float h, v;
47-
SDuality() = default;
47+
SDuality() {};
4848
SDuality(float _h, float _v) : h(_h), v(_v) {}
4949
IC SDuality& set(float _h, float _v)
5050
{
@@ -57,7 +57,7 @@ struct ENGINE_API SPPInfo
5757
{
5858
float intensity, grain;
5959
float fps;
60-
SNoise() = default;
60+
SNoise() {};
6161
SNoise(float _i, float _g, float _f) : intensity(_i), grain(_g), fps(_f) {}
6262
IC SNoise& set(float _i, float _g, float _f)
6363
{

0 commit comments

Comments
 (0)