Mondschein Engine  0.3.0
context.cpp
1 /* Mondschein Engine is a fast, powerful, and easy-to-use 3D realtime rendering engine.
2  *
3  * Copyright (C) 2009-2013 by Andreas Amereller
4  * E-Mail: andreas.amereller.dev@googlemail.com
5  *
6  * This program is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License as published by the Free
8  * Software Foundation; either version 3 of the License, or (at your option)
9  * any later version.
10  *
11  * This program is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14  * more details.
15  *
16  * You should have received a copy of the GNU General Public License along
17  * with this program; if not, write to the Free Software Foundation, Inc.,
18  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19  */
20 
21 #include "core/context.h"
22 
23 using namespace mondschein;
24 using namespace renderer;
25 
26 Context::Context() : context_attribs()
27 {
28  return;
29 }
30 
31 Context::Context(const context_attribs_t &_c) : context_attribs(_c)
32 {
33  return;
34 }
35 
36 Context::~Context()
37 {
38  return;
39 }
40 
41 void Context::set_renderables(const std::map<std::string,Renderable_c> &_r)
42 {
43  renderables=_r;
44  return;
45 }
46 
47 std::map<std::string,Renderable_c> Context::get_renderables() const
48 {
49  return renderables;
50 }
51 
52 void Context::set_context_attribs(const context_attribs_t &_c)
53 {
54  context_attribs=_c;
55  return;
56 }
57 
58 context_attribs_t Context::get_context_attribs() const
59 {
60  return context_attribs;
61 }