Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cDXRenderBatch.h
Go to the documentation of this file.
1 //
4 //
5 
6 #ifndef _INC_cDXRenderBatch_H
7 #define _INC_cDXRenderBatch_H
8 #ifndef NO_PRAGMA_ONCE
9 #pragma once
10 #endif
11 
12 #include "cDXEffect.h"
14 
15 class CCamera;
16 
17 namespace Gray3D
18 {
20  {
25 
26  private:
27  bool m_bStopped;
28  // int m_iRankSort; //!< when to draw. 0x1000 = first, 0x2000 = 2d, 0x3000 = 3d, 0x4000 = last
29  public:
30  cDXRenderBatch(void);
31  virtual ~cDXRenderBatch(void);
32 
33  virtual const char* get_NameCPtr() const = 0;
34 
36  { return S_OK; }
37  virtual void FinalCleanup()
38  {}
39 
40  virtual void FrameMoveAll( TIMESECF_t fElapsedTime )
41  {
43  UNREFERENCED_PARAMETER(fElapsedTime);
44  }
45  virtual void PreRenderAll()
46  {
49  }
50  virtual HRESULT RenderAll(CCamera* pCamera) // can be recursive!
51  {
53  UNREFERENCED_PARAMETER(pCamera);
54  return S_OK;
55  }
56 
57  virtual void UpdateD3DOffset( const cVector3f& vOffset )
58  {
60  UNREFERENCED_PARAMETER(vOffset);
61  }
62 
63  bool isStopped() const noexcept
64  {
65  return m_bStopped;
66  }
67  void put_Stopped( bool bStop ) noexcept
68  {
69  // For debug we can stop rendering this type.
70  m_bStopped = bStop;
71  }
72  };
73 }
74 
75 #endif // _INC_cDXRenderBatch_H
#define GRAY3D_LINK
Definition: Gray3D.h:15
#define UNREFERENCED_PARAMETER(P)
< _WIN32 type thing. get rid of stupid warning.
Definition: SysTypes.h:299
INT32 HRESULT
_WIN32 style error codes. INT32
Definition: SysTypes.h:465
Definition: cDXBase.h:20
Definition: cDXRenderBatch.h:20
virtual HRESULT OneTimeSceneInit()
Definition: cDXRenderBatch.h:35
virtual HRESULT RenderAll(CCamera *pCamera)
Definition: cDXRenderBatch.h:50
virtual void FrameMoveAll(TIMESECF_t fElapsedTime)
Definition: cDXRenderBatch.h:40
bool isStopped() const noexcept
Definition: cDXRenderBatch.h:63
virtual void UpdateD3DOffset(const cVector3f &vOffset)
Definition: cDXRenderBatch.h:57
virtual void PreRenderAll()
Definition: cDXRenderBatch.h:45
void put_Stopped(bool bStop) noexcept
Definition: cDXRenderBatch.h:67
virtual const char * get_NameCPtr() const =0
Render type must have a name.
virtual void FinalCleanup()
Definition: cDXRenderBatch.h:37
Definition: cVector.h:94
Definition: Gray3D.cpp:12
float TIMESECF_t
delta float seconds.
Definition: cTimeSys.h:20