Stellarium 0.12.3
Main Page
Namespaces
Classes
Coding Style
Scripting
Plugins
Renderer
File Structure
File List
File Members
core
renderer
StelTextureNew.hpp
1
/*
2
* Stellarium
3
* Copyright (C) 2012 Ferdinand Majerech
4
*
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License
7
* as published by the Free Software Foundation; either version 2
8
* of the License, or (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, write to the Free Software
17
* Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA.
18
*/
19
20
#ifndef _STELTEXTURENEW_HPP_
21
#define _STELTEXTURENEW_HPP_
22
23
#include "StelTextureBackend.hpp"
24
62
class
StelTextureNew
63
{
64
// Only StelRenderer can construct StelTextureNew
65
friend
class
StelRenderer
;
66
public
:
68
~StelTextureNew
();
69
76
TextureStatus
getStatus
()
const
77
{
78
return
backend->
getStatus
();
79
}
80
88
QSize
getDimensions
()
const
89
{
90
return
backend->
getDimensions
();
91
}
92
96
const
QString&
getErrorMessage
()
const
97
{
98
return
backend->
getErrorMessage
();
99
}
100
114
void
bind
(
const
int
textureUnit = 0);
115
116
private
:
118
StelTextureNew
(
class
StelRenderer
* renderer,
StelTextureBackend
* backend)
119
: renderer(renderer)
120
, backend(backend)
121
{
122
}
123
125
class
StelRenderer
* renderer;
126
131
StelTextureBackend
* backend;
132
};
133
134
#endif // _STELTEXTURENEW_HPP_
Generated on Sat Aug 10 2013 17:12:44 for Stellarium by
1.8.3.1