Mondschein Engine
0.3.0
Main Page
Namespaces
Classes
Files
File List
src
core
context.h
Go to the documentation of this file.
1
#ifndef CONTEXT_H_INCLUDED
2
#define CONTEXT_H_INCLUDED
3
4
/* Mondschein Engine is a fast, powerful, and easy-to-use 3D realtime rendering engine.
5
*
6
* Copyright (C) 2009-2013 by Andreas Amereller
7
* E-Mail: andreas.amereller.dev@googlemail.com
8
*
9
* This program is free software; you can redistribute it and/or modify it
10
* under the terms of the GNU General Public License as published by the Free
11
* Software Foundation; either version 3 of the License, or (at your option)
12
* any later version.
13
*
14
* This program is distributed in the hope that it will be useful, but WITHOUT
15
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
17
* more details.
18
*
19
* You should have received a copy of the GNU General Public License along
20
* with this program; if not, write to the Free Software Foundation, Inc.,
21
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22
*/
24
25
#include "
types.h
"
26
27
namespace
mondschein
28
{
29
namespace
renderer
30
{
38
class
Context
39
{
40
private
:
41
context_attribs_t
context_attribs;
42
std::map<std::string,Renderable_c> renderables;
43
44
protected
:
45
explicit
Context
();
46
explicit
Context
(
const
context_attribs_t
&_c);
47
virtual
~
Context
();
48
49
public
:
50
virtual
void
set_renderables(
const
std::map<std::string,Renderable_c>& _r);
51
virtual
std::map<std::string,Renderable_c> get_renderables()
const
;
52
58
virtual
void
set_context_attribs
(
const
context_attribs_t
&_c);
59
65
virtual
context_attribs_t
get_context_attribs
()
const
;
66
72
virtual
void
init
() = 0;
73
80
virtual
void
make_current
() = 0;
81
};
82
}
83
}
84
#endif // CONTEXT_H_INCLUDED
Generated on Thu Apr 11 2013 21:37:16 for Mondschein Engine by
1.8.3.1