Mondschein Engine  0.3.0
texture.h
Go to the documentation of this file.
1 #ifndef GL13_TEXTURE_H_INCLUDED
2 #define GL13_TEXTURE_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 "gl13_types.h"
26 #include "core/renderable.h"
27 
28 namespace mondschein
29 {
30  namespace renderer
31  {
32  class GL13_Texture : virtual public Renderable
33  {
34  private:
35  uint8 unit;
36  uint32 texture;
37 
38  public:
39  explicit GL13_Texture();
40  explicit GL13_Texture(uint8 _u,uint32 _t);
41  virtual ~GL13_Texture();
42 
43  virtual void set_unit(uint8 _u);
44  virtual uint8 get_unit() const;
45 
46  virtual void set_texture(uint32 _t);
47  virtual uint32 get_texture() const;
48 
49  virtual void render() const;
50  };
51  }
52 }
53 
54 #endif // GL13_TEXTURE_H_INCLUDED