Panda3D
colladaBindMaterial.h
1 // Filename: colladaBindMaterial.h
2 // Created by: rdb (25May11)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef COLLADABINDMATERIAL_H
16 #define COLLADABINDMATERIAL_H
17 
18 #include "config_collada.h"
19 #include "renderState.h"
20 #include "pmap.h"
21 
22 class ColladaPrimitive;
23 
24 class domBind_material;
25 class domInstance_material;
26 
27 ////////////////////////////////////////////////////////////////////
28 // Class : ColladaBindMaterial
29 // Description : Class that deals with binding materials to
30 // COLLADA geometry.
31 ////////////////////////////////////////////////////////////////////
33 public:
34  CPT(RenderState) get_material(const ColladaPrimitive *prim) const;
35  CPT(RenderState) get_material(const string &symbol) const;
36 
37  void load_bind_material(domBind_material &bind_mat);
38  void load_instance_material(domInstance_material &inst);
39 
40 private:
42 };
43 
44 #endif
void load_instance_material(domInstance_material &inst)
Loads an instance_material object.
This represents a unique collection of RenderAttrib objects that correspond to a particular renderabl...
Definition: renderState.h:53
Class that deals with COLLADA primitive structures, such as <triangles> and <polylist>.
Class that deals with binding materials to COLLADA geometry.