OPTPiX SpriteStudio SDK
Loading...
Searching...
No Matches
sshTextureBMP.h
Go to the documentation of this file.
1#ifndef __TKTEXTURE__
2#define __TKTEXTURE__
3
4#include "IsshTexture.h"
5
6namespace spritestudio6
7{
8
9
10//画像ファイルの縦横サイズを調べる目的等で使用する
11//画像ファイルデータは読み捨てる クラス名が適切でないかも
12//画像の加工等を行う場合は拡張をお願いします。
14{
15public:
18
19 std::string m_filename;
20
21public:
23 virtual ~SSTextureBMP(){}
24 bool Load( const char* fname );
25
26 virtual int getWidth() { return tex_width; }
27 virtual int getHeight() { return tex_height; }
28
29 virtual ISSTexture* create(){ return new SSTextureBMP(); }
30 virtual const char* getFilename(){ return m_filename.c_str(); }
31};
32
33
34
35
36
37
38} // namespace spritestudio6
39
40#endif
ISSTexture()
Definition IsshTexture.h:63
int tex_width
Definition sshTextureBMP.h:16
virtual int getHeight()
Definition sshTextureBMP.h:27
virtual ~SSTextureBMP()
Definition sshTextureBMP.h:23
virtual ISSTexture * create()
Definition sshTextureBMP.h:29
virtual const char * getFilename()
Definition sshTextureBMP.h:30
bool Load(const char *fname)
Definition sshTextureBMP.cpp:12
int tex_height
Definition sshTextureBMP.h:17
std::string m_filename
Definition sshTextureBMP.h:19
SSTextureBMP()
Definition sshTextureBMP.h:22
virtual int getWidth()
Definition sshTextureBMP.h:26
Definition ISsEffectRender.h:5