1 | ///////////////////////////////////////////////////////////////////////////////
|
---|
2 | //
|
---|
3 | // ## ######
|
---|
4 | // ###### ###
|
---|
5 | // ## ############### Shark 3D Engine (www.shark3d.com)
|
---|
6 | // ########## # # #
|
---|
7 | // ######## Copyright (c) 1996-2006 Spinor GmbH.
|
---|
8 | // ######### # # # All rights reserved.
|
---|
9 | // ## ##########
|
---|
10 | // ##
|
---|
11 | //
|
---|
12 | ///////////////////////////////////////////////////////////////////////////////
|
---|
13 |
|
---|
14 | //@cpp
|
---|
15 |
|
---|
16 | #ifndef S3D_DRV_D3D9_BATCH_H
|
---|
17 | #define S3D_DRV_D3D9_BATCH_H
|
---|
18 |
|
---|
19 | #include "drv_d3d9_buf.h"
|
---|
20 | #include "drv/interf/drv_gfx.h"
|
---|
21 |
|
---|
22 | ///////////////////////////////////////////////////////////////////////////////
|
---|
23 |
|
---|
24 | //@
|
---|
25 | struct s3d_CDrvD3d9Batch
|
---|
26 | : public s3d_CDrvGfxBatch
|
---|
27 | {
|
---|
28 | //@
|
---|
29 | s3d_CDrvD3d9Batch(
|
---|
30 | s3d_CUtilMsgHandler *ReportMsgHandler);
|
---|
31 |
|
---|
32 | //@
|
---|
33 | ~s3d_CDrvD3d9Batch();
|
---|
34 |
|
---|
35 | //@
|
---|
36 | s3d_CUtilStr m_MainInfo;
|
---|
37 |
|
---|
38 | //@
|
---|
39 | s3d_CUtilStr m_ObjInfo;
|
---|
40 |
|
---|
41 | //@
|
---|
42 | s3d_CUtilStr m_ObjDesc;
|
---|
43 |
|
---|
44 | //@
|
---|
45 | s3d_CDrvGfxProgPtr m_Prog;
|
---|
46 |
|
---|
47 | //@
|
---|
48 | bool m_Complete;
|
---|
49 |
|
---|
50 | //@
|
---|
51 | s3d_CDrvD3d9VertBufObjBatchPtr m_VertBufObj;
|
---|
52 |
|
---|
53 | //@
|
---|
54 | s3d_CDrvD3d9IdxBufObjBatchPtr m_IdxBufObj;
|
---|
55 |
|
---|
56 | //@
|
---|
57 | s3d_CSysIntps m_VertSubCnt;
|
---|
58 |
|
---|
59 | //@
|
---|
60 | s3d_CSysIntps m_VertSubBase;
|
---|
61 |
|
---|
62 | //@
|
---|
63 | s3d_CSysIntps m_IdxSubCnt;
|
---|
64 |
|
---|
65 | //@
|
---|
66 | s3d_CSysIntps m_IdxSubBase;
|
---|
67 |
|
---|
68 | //@
|
---|
69 | s3d_CSysIntps m_BoneIdxSubCnt;
|
---|
70 |
|
---|
71 | //@
|
---|
72 | s3d_CSysIntps m_BoneIdxSubBase;
|
---|
73 |
|
---|
74 | //@
|
---|
75 | s3d_CSysIntps m_PacketSubCnt;
|
---|
76 |
|
---|
77 | //@
|
---|
78 | s3d_CSysIntps m_PacketSubBase;
|
---|
79 |
|
---|
80 | //@
|
---|
81 | s3d_CSysIntps m_PrimCnt;
|
---|
82 |
|
---|
83 | //@
|
---|
84 | s3d_CUtilMsgHandlerPtr m_ReportMsgHandler;
|
---|
85 |
|
---|
86 | // GAMETOOLS
|
---|
87 | // bool use_triangle_strips;
|
---|
88 |
|
---|
89 | bool IsComplete();
|
---|
90 |
|
---|
91 | };
|
---|
92 |
|
---|
93 | S3D_UTIL_RECOG_DECLAREINFO(s3d_CDrvD3d9Batch);
|
---|
94 |
|
---|
95 | typedef s3d_CUtilPtr<s3d_CDrvD3d9Batch> s3d_CDrvD3d9BatchPtr;
|
---|
96 |
|
---|
97 | ///////////////////////////////////////////////////////////////////////////////
|
---|
98 | // Implementations
|
---|
99 | ///////////////////////////////////////////////////////////////////////////////
|
---|
100 |
|
---|
101 | S3D_SYS_INLINE
|
---|
102 | bool s3d_CDrvD3d9Batch::IsComplete()
|
---|
103 | {
|
---|
104 | return m_Complete;
|
---|
105 | }
|
---|
106 |
|
---|
107 |
|
---|
108 | ///////////////////////////////////////////////////////////////////////////////
|
---|
109 |
|
---|
110 | #endif
|
---|