Lightmetrica
0.0.1.50dbee3 (yosakoi)
Main Page
Classes
Files
File List
All
Classes
Functions
Variables
Typedefs
Enumerations
Enumerator
include
lightmetrica
bitmaptexture.h
1
/*
2
Lightmetrica : A research-oriented renderer
3
4
Copyright (c) 2014 Hisanari Otsu
5
6
This program is free software: you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation, either version 3 of the License, or
9
(at your option) any later version.
10
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
15
16
You should have received a copy of the GNU General Public License
17
along with this program. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
20
#pragma once
21
#ifndef LIB_LIGHTMETRICA_BITMAP_TEXTURE_H
22
#define LIB_LIGHTMETRICA_BITMAP_TEXTURE_H
23
24
#include "texture.h"
25
26
LM_NAMESPACE_BEGIN
27
28
class
BitmapImage
;
29
34
class
BitmapTexture
:
public
Texture
35
{
36
public
:
37
38
BitmapTexture
() {}
39
virtual
~
BitmapTexture
() {}
40
41
public
:
42
43
// For overloading #Load function
44
using
Asset::Load
;
45
46
/*
47
Load a bitmap texture.
48
\param path Path to a texture.
49
\param verticalFlip If true, loaded image is flipped vertically.
50
\retval true Succeeded to load.
51
\retval false Failed to load.
52
*/
53
virtual
bool
Load(
const
std::string& path,
bool
verticalFlip =
false
) = 0;
54
59
virtual
const
BitmapImage
&
Bitmap
()
const
= 0;
60
61
};
62
63
LM_NAMESPACE_END
64
65
#endif // LIB_LIGHTMETRICA_BITMAP_TEXTURE_H
BitmapTexture::Bitmap
virtual const BitmapImage & Bitmap() const =0
Texture
Definition:
texture.h:33
Asset::Load
virtual bool Load(const ConfigNode &node, const Assets &assets)=0
BitmapTexture
Definition:
bitmaptexture.h:34
BitmapImage
Definition:
bitmap.h:34
Generated on Wed Oct 8 2014 01:07:59 for Lightmetrica by
1.8.8