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_PROGREPORT_H
|
---|
17 | #define S3D_DRV_D3D9_PROGREPORT_H
|
---|
18 |
|
---|
19 | #include "drv_d3d9_env.h"
|
---|
20 | #include "drv_d3d9_prog.h"
|
---|
21 | #include "util/stream/util_textstreampos.h"
|
---|
22 | #include "lib/stream/lib_stream_prepro.h"
|
---|
23 |
|
---|
24 | ///////////////////////////////////////////////////////////////////////////////
|
---|
25 |
|
---|
26 | //@
|
---|
27 | class s3d_CDrvD3d9ProgReport
|
---|
28 | {
|
---|
29 | public:
|
---|
30 | //@
|
---|
31 | virtual s3d_CUtilStr CalcInfoOfSrc(
|
---|
32 | s3d_CUtilStr_cr SrcName, int SrcLine) = 0;
|
---|
33 |
|
---|
34 | //@
|
---|
35 | static s3d_CUtilStr GetDxBufferStr(
|
---|
36 | LPD3DXBUFFER DxBuffer);
|
---|
37 |
|
---|
38 | //@
|
---|
39 | bool ReportCompilingText(
|
---|
40 | s3d_CDrvD3d9Env *DxEnv, s3d_CUtilStr_cr Info,
|
---|
41 | s3d_CUtilStr_cr Text, HRESULT DxResult);
|
---|
42 |
|
---|
43 | //@
|
---|
44 | bool ReportCompilingBuffer(
|
---|
45 | s3d_CDrvD3d9Env *DxEnv, s3d_CUtilStr_cr Info,
|
---|
46 | LPD3DXBUFFER DxBuffer, HRESULT DxResult);
|
---|
47 | };
|
---|
48 |
|
---|
49 | ///////////////////////////////////////////////////////////////////////////////
|
---|
50 |
|
---|
51 | //@
|
---|
52 | class s3d_CDrvD3d9ProgReportMap: public s3d_CDrvD3d9ProgReport
|
---|
53 | {
|
---|
54 | public:
|
---|
55 | //@
|
---|
56 | s3d_CDrvD3d9ProgReportMap(
|
---|
57 | s3d_CUtilStr_cr MainStreamName, int MainLineOffs,
|
---|
58 | const s3d_CUtilMap<s3d_CUtilStr, s3d_CUtilStr> *StreamNameMap);
|
---|
59 |
|
---|
60 | //@
|
---|
61 | s3d_CUtilStr CalcInfoOfSrc(
|
---|
62 | s3d_CUtilStr_cr SrcName, int SrcLine);
|
---|
63 |
|
---|
64 | private:
|
---|
65 | s3d_CUtilStr m_MainStreamName;
|
---|
66 | int m_MainLineOffs;
|
---|
67 | const s3d_CUtilMap<s3d_CUtilStr, s3d_CUtilStr> *m_StreamNameMap;
|
---|
68 | };
|
---|
69 | ///////////////////////////////////////////////////////////////////////////////
|
---|
70 |
|
---|
71 | //@
|
---|
72 | class s3d_CDrvD3d9ProgReportRetrace: public s3d_CDrvD3d9ProgReport
|
---|
73 | {
|
---|
74 | public:
|
---|
75 | //@
|
---|
76 | s3d_CDrvD3d9ProgReportRetrace(
|
---|
77 | s3d_CLibStreamPreproDest *PreproDest);
|
---|
78 |
|
---|
79 | //@
|
---|
80 | s3d_CUtilStr CalcInfoOfSrc(
|
---|
81 | s3d_CUtilStr_cr SrcName, int SrcLine);
|
---|
82 |
|
---|
83 | private:
|
---|
84 | s3d_CLibStreamPreproDest *m_PreproDest;
|
---|
85 | };
|
---|
86 |
|
---|
87 | ///////////////////////////////////////////////////////////////////////////////
|
---|
88 |
|
---|
89 | #endif
|
---|