[cosmetics] update date in GPL header
[vuplus_xbmc] / xbmc / visualizations / Vortex / VortexVis / Core / Texture.h
1 /*
2  *  Copyright © 2010-2013 Team XBMC
3  *  http://xbmc.org
4  *
5  *  This program is free software: you can redistribute it and/or modify
6  *  it under the terms of the GNU General Public License as published by
7  *  the Free Software Foundation, either version 2 of the License, or
8  *  (at your option) any later version.
9  *
10  *  This program is distributed in the hope that it will be useful,
11  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  *  GNU General Public License for more details.
14  *
15  *  You should have received a copy of the GNU General Public License
16  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
17  *
18  */
19
20 #ifndef _TEXTURE_H_
21 #define _TEXTURE_H_
22
23 #include "Renderer.h"
24 #include <string>
25
26 using namespace std;
27
28 class Texture
29 {
30 public:
31         Texture();
32         void CreateTexture();
33         void LoadTexture( string& filename );
34
35         void AddRef();
36         void Release();
37
38         LPDIRECT3DTEXTURE9 m_pTexture;
39         bool m_renderTarget;
40
41 protected:
42         ~Texture();
43         int m_iRefCount;
44 };
45
46 inline Texture* Texture_Factory()
47 {
48         // The class constructor is initializing the reference counter to 1
49         return new Texture();
50 }
51
52 #endif