C++ SDK Reference  12.5
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
diguyGraphicsMeshDx9.h
Go to the documentation of this file.
1 
2 /*
3  * Copyright (C) 1992-2013 Boston Dynamics
4  * ALL RIGHTS RESERVED.
5  *
6  * These coded instructions, statements, and computer programs
7  * contain unpublished proprietary information of Boston Dynamics
8  * and are protected by Copyright Laws of the United States.
9  * They may not be used, duplicated, or disclosed in any form, in
10  * whole or in part, without the prior written consent from Boston
11  * Dynamics.
12  *
13  * RESTRICTED RIGHTS LEGEND
14  * Use, duplication, or disclosure by the government is subject
15  * to restrictions as set forth in FAR 52.227.19(c)(2) or
16  * subparagraph (c)(1)(ii) of the Rights in Technical Data and
17  * Computer Software clause at DFARS 252.227-7013 and/or in
18  * similar or successor clauses in the FAR, or the DOD or NASA
19  * FAR Supplement, or to subparagraphs (c)(1) and (c)(2) of the
20  * Commercial Computer Software--Restricted Rights at 48 CFR
21  * 52.227-19, as applicable. Unpublished-rights reserved under
22  * the Copyright Laws of the United States.
23  * Contractor/Manufacturer is:
24  * Boston Dynamics/78 Fourth Avenue/Waltham MA 02451.
25  */
26 
27 
28 #ifndef __diguyGraphicsMeshDx9_H
29 #define __diguyGraphicsMeshDx9_H
30 
31 #include <d3d9.h>
32 #include <d3d9types.h>
33 #include <d3dx9math.h>
34 #include <d3dx9mesh.h>
35 
37 
38 class bdiMeshDx9;
39 
40 
41 /*********************************************************************/
47 class BDI_DECLSPEC_diguy_graphics diguyGraphicsMeshDx9
48 {
49 
50 public:
51 
52  /*l
53  *b Description:
54  **
55  ** Returns the name of the mesh. This pointer will
56  ** never be NULL.
57  **
58  *b Returns:
59  **
60  ** name of the mesh
61  */
62  const char* get_name();
63 
64  /*l
65  ** Description:
66  **
67  ** Flag specifying whether the mesh is deformable (value will be 1)
68  ** or rigid (value will be 0).
69  */
70  int get_is_deformable_flag();
71 
72  /*l
73  ** Description:
74  **
75  ** Flag specifying whether the mesh is currently visible (value will be
76  ** 1) or not (value will be 0).
77  */
78  int get_is_visible_flag();
79 
80  /*l
81  ** Description:
82  **
83  ** Pointer to mesh. May be NULL.
84  **
85  ** Draw using ID3DXMesh::DrawSubset() call.
86  */
87  LPD3DXMESH get_mesh();
88 
89  /*l
90  ** Description:
91  **
92  ** Pointer to tranformation matrix of mesh. May be NULL.
93  **
94  ** Apply before drawing by using IDirect3DDevice9::SetTransform() call.
95  */
96  D3DXMATRIX* get_xform();
97 
98  /*l
99  ** Description:
100  **
101  ** Pointer to material of mesh. May be NULL.
102  **
103  ** If not NULL, bind before drawing by using
104  ** IDirect3DDevice9::SetMaterial() call.
105  */
106  D3DMATERIAL9* get_material();
107 
108  /*l
109  ** Description:
110  **
111  ** Pointer to texture to be applied to mesh. May be NULL.
112  **
113  ** If not NULL, bind before drawing by using
114  ** IDirect3DDevice9::SetTexture() call.
115  */
116  LPDIRECT3DTEXTURE9 get_texture();
117 
118 private:
119 
120  /*l
121  ** A private constructor.
122  */
123  diguyGraphicsMeshDx9(bdiMeshDx9* mesh);
124 
125  /*l
126  ** A private destructor.
127  */
129 
130  bdiMeshDx9* m_scripted_object;
131 
132  friend class bdiMeshDx9;
133 
134 };
135 
136 #endif /* __diguyGraphicsMeshDx9_H */
137 
138 
139 /*
140  * Copyright (C) 1992-2013 Boston Dynamics
141  * ALL RIGHTS RESERVED.
142  *
143  * These coded instructions, statements, and computer programs
144  * contain unpublished proprietary information of Boston Dynamics
145  * and are protected by Copyright Laws of the United States.
146  * They may not be used, duplicated, or disclosed in any form, in
147  * whole or in part, without the prior written consent from Boston
148  * Dynamics.
149  *
150  * RESTRICTED RIGHTS LEGEND
151  * Use, duplication, or disclosure by the government is subject
152  * to restrictions as set forth in FAR 52.227.19(c)(2) or
153  * subparagraph (c)(1)(ii) of the Rights in Technical Data and
154  * Computer Software clause at DFARS 252.227-7013 and/or in
155  * similar or successor clauses in the FAR, or the DOD or NASA
156  * FAR Supplement, or to subparagraphs (c)(1) and (c)(2) of the
157  * Commercial Computer Software--Restricted Rights at 48 CFR
158  * 52.227-19, as applicable. Unpublished-rights reserved under
159  * the Copyright Laws of the United States.
160  * Contractor/Manufacturer is:
161  * Boston Dynamics/78 Fourth Avenue/Waltham MA 02451.
162  */
163