zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Renderable.hxx
Go to the documentation of this file.
1 /* This file is part of the Zenipex Library (zenilib).
2  * Copyright (C) 2011 Mitchell Keith Bloch (bazald).
3  *
4  * zenilib is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * zenilib is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with zenilib. If not, see <http://www.gnu.org/licenses/>.
16  */
17 
18 #ifndef ZENI_RENDERABLE_HXX
19 #define ZENI_RENDERABLE_HXX
20 
21 // HXXed below
22 #include <Zeni/Material.h>
23 
24 #include <Zeni/Renderable.h>
25 
26 namespace Zeni {
27 
29  : m_material(0),
30  delete_m_material(false)
31  {
32  }
33 
35  : m_material(0),
36  delete_m_material(false)
37  {
38  fax_Material(rhs.m_material);
39  }
40 
42  fax_Material(rhs.m_material);
43 
44  return *this;
45  }
46 
48  return m_material;
49  }
50 
51 }
52 
53 #include <Zeni/Material.hxx>
54 
55 #endif
Renderable & operator=(const Renderable &rhs)
Definition: Renderable.hxx:41
const Material * get_Material() const
Get the Material.
Definition: Renderable.hxx:47
An Abstraction of a Material.
Definition: Material.h:56
A Renderable Interface.
Definition: Renderable.h:47
void fax_Material(const Material *const &material)
Set the Material, giving the Renderable a copy.
Definition: Renderable.cpp:50
#define false
Definition: ftrandom.c:50