Skip to content

Commit 91a2212

Browse files
author
nitrocaster
committed
Merge RenderDeviceRender into dsgraph_structure.
1 parent c1b1eac commit 91a2212

File tree

236 files changed

+2824
-3273
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

236 files changed

+2824
-3273
lines changed

src/Include/xrAPI/xrAPI.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212

1313
#ifndef _EDITOR
14-
class IRender_interface;
15-
extern XRAPI_API IRender_interface* Render;
14+
class IRender;
15+
extern XRAPI_API IRender* Render;
1616

1717
class IRenderFactory;
1818
extern XRAPI_API IRenderFactory* RenderFactory;

src/Include/xrRender/FactoryPtr.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,11 @@ class FactoryPtr
5858
FACTORY_PTR_INSTANCIATE(UIShader)
5959
FACTORY_PTR_INSTANCIATE(StatGraphRender)
6060
FACTORY_PTR_INSTANCIATE(ConsoleRender)
61-
FACTORY_PTR_INSTANCIATE(RenderDeviceRender)
6261
# ifdef DEBUG
6362
FACTORY_PTR_INSTANCIATE(ObjectSpaceRender)
6463
# endif // DEBUG
6564
FACTORY_PTR_INSTANCIATE(ApplicationRender)
6665
FACTORY_PTR_INSTANCIATE(WallMarkArray)
67-
FACTORY_PTR_INSTANCIATE(StatsRender);
6866
#endif // _EDITOR
6967

7068
#ifndef _EDITOR

src/Include/xrRender/Kinematics.h

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -34,37 +34,37 @@ class IKinematics
3434
virtual void EnumBoneVertices (SEnumVerticesCallback &C, u16 bone_id) = 0;
3535

3636
// Low level interface
37-
virtual u16 _BCL LL_BoneID(LPCSTR B) = 0;
38-
virtual u16 _BCL LL_BoneID(const shared_str& B) = 0;
39-
virtual LPCSTR _BCL LL_BoneName_dbg(u16 ID) = 0;
37+
virtual u16 LL_BoneID(LPCSTR B) = 0;
38+
virtual u16 LL_BoneID(const shared_str& B) = 0;
39+
virtual LPCSTR LL_BoneName_dbg(u16 ID) = 0;
4040

41-
virtual CInifile* _BCL LL_UserData() = 0;
41+
virtual CInifile* LL_UserData() = 0;
4242
virtual accel* LL_Bones() = 0;
4343

44-
virtual ICF CBoneInstance& _BCL LL_GetBoneInstance(u16 bone_id) = 0;
44+
virtual ICF CBoneInstance& LL_GetBoneInstance(u16 bone_id) = 0;
4545

46-
virtual CBoneData& _BCL LL_GetData(u16 bone_id) = 0;
46+
virtual CBoneData& LL_GetData(u16 bone_id) = 0;
4747

48-
virtual const IBoneData& _BCL GetBoneData(u16 bone_id) const = 0;
48+
virtual const IBoneData& GetBoneData(u16 bone_id) const = 0;
4949

50-
virtual u16 _BCL LL_BoneCount()const = 0;
50+
virtual u16 LL_BoneCount()const = 0;
5151
virtual u16 LL_VisibleBoneCount() = 0;
5252

53-
virtual ICF Fmatrix& _BCL LL_GetTransform(u16 bone_id) = 0;
54-
virtual ICF const Fmatrix& _BCL LL_GetTransform(u16 bone_id) const = 0;
53+
virtual ICF Fmatrix& LL_GetTransform(u16 bone_id) = 0;
54+
virtual ICF const Fmatrix& LL_GetTransform(u16 bone_id) const = 0;
5555

5656
virtual ICF Fmatrix& LL_GetTransform_R(u16 bone_id) = 0;
5757
virtual Fobb& LL_GetBox(u16 bone_id) = 0;
58-
virtual const Fbox& _BCL GetBox()const = 0;
58+
virtual const Fbox& GetBox()const = 0;
5959
virtual void LL_GetBindTransform(xr_vector<Fmatrix>& matrices) = 0;
6060
virtual int LL_GetBoneGroups(xr_vector<xr_vector<u16> >& groups) = 0;
6161

62-
virtual u16 _BCL LL_GetBoneRoot() = 0;
62+
virtual u16 LL_GetBoneRoot() = 0;
6363
virtual void LL_SetBoneRoot(u16 bone_id) = 0;
6464

65-
virtual BOOL _BCL LL_GetBoneVisible(u16 bone_id) = 0;
65+
virtual BOOL LL_GetBoneVisible(u16 bone_id) = 0;
6666
virtual void LL_SetBoneVisible(u16 bone_id, BOOL val, BOOL bRecursive) = 0;
67-
virtual u64 _BCL LL_GetBonesVisible() = 0;
67+
virtual u64 LL_GetBonesVisible() = 0;
6868
virtual void LL_SetBonesVisible(u64 mask) = 0;
6969

7070
// Main functionality
@@ -80,13 +80,13 @@ virtual const IBoneData& _BCL GetBoneData(u16 bone_id) const = 0;
8080
virtual void* GetUpdateCallbackParam() = 0;
8181
//UpdateCallback Update_Callback;
8282
//void* Update_Callback_Param;
83-
virtual IRenderVisual* _BCL dcast_RenderVisual() = 0;
83+
virtual IRenderVisual* dcast_RenderVisual() = 0;
8484
virtual IKinematicsAnimated* dcast_PKinematicsAnimated() = 0;
8585

8686
// debug
8787
#ifdef DEBUG
8888
virtual void DebugRender (Fmatrix& XFORM) = 0;
89-
virtual shared_str _BCL getDebugName () = 0;
89+
virtual shared_str getDebugName () = 0;
9090
#endif
9191
};
9292

src/Include/xrRender/KinematicsAnimated.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ class IKinematicsAnimated
100100

101101
virtual const CPartition& partitions () const = 0;
102102

103-
virtual IRenderVisual* _BCL dcast_RenderVisual() = 0;
104-
virtual IKinematics* _BCL dcast_PKinematics() = 0;
103+
virtual IRenderVisual* dcast_RenderVisual() = 0;
104+
virtual IKinematics* dcast_PKinematics() = 0;
105105

106106
virtual float get_animation_length (MotionID motion_ID) = 0;
107107
//#ifdef DEBUG

src/Include/xrRender/RenderDeviceRender.h

Lines changed: 0 additions & 62 deletions
This file was deleted.

src/Include/xrRender/RenderFactory.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,11 @@ class IRenderFactory
4949
RENDER_FACTORY_INTERFACE(UIShader)
5050
RENDER_FACTORY_INTERFACE(StatGraphRender)
5151
RENDER_FACTORY_INTERFACE(ConsoleRender)
52-
RENDER_FACTORY_INTERFACE(RenderDeviceRender)
5352
# ifdef DEBUG
5453
RENDER_FACTORY_INTERFACE(ObjectSpaceRender)
5554
# endif // DEBUG
5655
RENDER_FACTORY_INTERFACE(ApplicationRender)
5756
RENDER_FACTORY_INTERFACE(WallMarkArray)
58-
RENDER_FACTORY_INTERFACE(StatsRender)
5957
#endif // _EDITOR
6058

6159
#ifndef _EDITOR

src/Include/xrRender/RenderVisual.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ class IRenderVisual
1212
public:
1313
virtual ~IRenderVisual() {;}
1414

15-
virtual vis_data& _BCL getVisData() = 0;
15+
virtual vis_data& getVisData() = 0;
1616
virtual u32 getType() = 0;
1717

1818
#ifdef DEBUG
19-
virtual shared_str _BCL getDebugName() = 0;
19+
virtual shared_str getDebugName() = 0;
2020
#endif
2121

22-
virtual IKinematics* _BCL dcast_PKinematics () { return 0; }
22+
virtual IKinematics* dcast_PKinematics () { return 0; }
2323
virtual IKinematicsAnimated* dcast_PKinematicsAnimated () { return 0; }
2424
virtual IParticleCustom* dcast_ParticleCustom () { return 0; }
2525
};

src/Include/xrRender/StatsRender.h

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/Layers/xrAPI/xrAPI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include "stdafx.h"
55
#include "Include/xrAPI/xrAPI.h"
66

7-
XRAPI_API IRender_interface* Render = NULL;
7+
XRAPI_API IRender* Render = NULL;
88
XRAPI_API IRenderFactory* RenderFactory = NULL;
99
XRAPI_API CDUInterface* DU = NULL;
1010
XRAPI_API xr_token* vid_mode_token = NULL;

src/Layers/xrRender/Blender_Recorder_R2.cpp

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
#include "blenders\Blender_Recorder.h"
66
#include "blenders\Blender.h"
77

8-
#include "dxRenderDeviceRender.h"
9-
108
void fix_texture_name(LPSTR fn);
119

1210
void CBlender_Compile::r_Pass (LPCSTR _vs, LPCSTR _ps, bool bFog, BOOL bZtest, BOOL bZwrite, BOOL bABlend, D3DBLEND abSRC, D3DBLEND abDST, BOOL aTest, u32 aRef)
@@ -24,17 +22,17 @@ void CBlender_Compile::r_Pass (LPCSTR _vs, LPCSTR _ps, bool bFog, BOOL bZtest,
2422
PassSET_LightFog (FALSE,bFog);
2523

2624
// Create shaders
27-
SPS* ps = DEV->_CreatePS (_ps);
28-
SVS* vs = DEV->_CreateVS (_vs);
25+
SPS* ps = RImplementation.Resources->_CreatePS(_ps);
26+
SVS* vs = RImplementation.Resources->_CreateVS(_vs);
2927
dest.ps = ps;
3028
dest.vs = vs;
3129
#if defined(USE_DX10) || defined(USE_DX11)
32-
SGS* gs = DEV->_CreateGS ("null");
30+
SGS* gs = RImplementation.Resources->_CreateGS ("null");
3331
dest.gs = gs;
3432
# ifdef USE_DX11
35-
dest.hs = DEV->_CreateHS("null");
36-
dest.ds = DEV->_CreateDS("null");
37-
dest.cs = DEV->_CreateCS("null");
33+
dest.hs = RImplementation.Resources->_CreateHS("null");
34+
dest.ds = RImplementation.Resources->_CreateDS("null");
35+
dest.cs = RImplementation.Resources->_CreateCS("null");
3836
# endif
3937
#endif // USE_DX10
4038
ctable.merge (&ps->constants);
@@ -90,7 +88,7 @@ u32 CBlender_Compile::i_Sampler (LPCSTR _name)
9088
}
9189
void CBlender_Compile::i_Texture (u32 s, LPCSTR name)
9290
{
93-
if (name) passTextures.push_back (mk_pair(s, ref_texture(DEV->_CreateTexture(name))));
91+
if (name) passTextures.push_back(mk_pair(s, ref_texture(RImplementation.Resources->_CreateTexture(name))));
9492
}
9593
void CBlender_Compile::i_Projective (u32 s, bool b)
9694
{
@@ -169,13 +167,13 @@ void CBlender_Compile::r_Sampler_clw (LPCSTR name, LPCSTR texture, bool b_ps1x_P
169167
void CBlender_Compile::r_End ()
170168
{
171169
SetMapping ();
172-
dest.constants = DEV->_CreateConstantTable(ctable);
173-
dest.state = DEV->_CreateState (RS.GetContainer());
174-
dest.T = DEV->_CreateTextureList (passTextures);
170+
dest.constants = RImplementation.Resources->_CreateConstantTable(ctable);
171+
dest.state = RImplementation.Resources->_CreateState (RS.GetContainer());
172+
dest.T = RImplementation.Resources->_CreateTextureList (passTextures);
175173
dest.C = 0;
176174
#ifdef _EDITOR
177175
dest.M = 0;
178176
#endif
179-
SH->passes.push_back(DEV->_CreatePass(dest));
177+
SH->passes.push_back(RImplementation.Resources->_CreatePass(dest));
180178
}
181179
#endif // USE_DX10

0 commit comments

Comments
 (0)