Line | |
---|
1 | |
---|
2 | #include "IMGTexture.h" |
---|
3 | |
---|
4 | namespace IMG { |
---|
5 | |
---|
6 | Texture::Texture() |
---|
7 | { |
---|
8 | } |
---|
9 | |
---|
10 | virtual Texture::~Texture() |
---|
11 | { |
---|
12 | } |
---|
13 | |
---|
14 | void Texture::setTextureHandle(unsigned int textureHandle) |
---|
15 | { |
---|
16 | mTextureHandle = textureHandle; |
---|
17 | } |
---|
18 | |
---|
19 | unsigned int Texture::getTextureHandle() |
---|
20 | { |
---|
21 | return mTextureHandle; |
---|
22 | } |
---|
23 | |
---|
24 | Ogre::String Texture::getMaterialName() |
---|
25 | { |
---|
26 | return mMaterialName; |
---|
27 | } |
---|
28 | |
---|
29 | void Texture::setMaterialName(Ogre::String materialName) |
---|
30 | { |
---|
31 | mMaterialName = materialName; |
---|
32 | } |
---|
33 | |
---|
34 | void Texture::setWidth(unsigned int width) |
---|
35 | { |
---|
36 | mWidth = width; |
---|
37 | } |
---|
38 | |
---|
39 | unsigned int Texture::getWidth() |
---|
40 | { |
---|
41 | return mWidth; |
---|
42 | } |
---|
43 | |
---|
44 | void Texture::setHeight(unsigned int height) |
---|
45 | { |
---|
46 | mHeight = height; |
---|
47 | } |
---|
48 | |
---|
49 | unsigned int Texture::getHeight() |
---|
50 | { |
---|
51 | return mHeight; |
---|
52 | } |
---|
53 | |
---|
54 | void Texture::setRenderTargetName(Ogre::String renderTargetName) |
---|
55 | { |
---|
56 | mRenderTargetName = renderTargetName; |
---|
57 | } |
---|
58 | |
---|
59 | Ogre::String Texture::getRenderTarget() |
---|
60 | { |
---|
61 | return mRenderTargetName; |
---|
62 | } |
---|
63 | |
---|
64 | void Texture::setTextureName(Ogre::String textureName) |
---|
65 | { |
---|
66 | mTextureName = textureName; |
---|
67 | } |
---|
68 | |
---|
69 | Ogre::String Texture::getTextureName() |
---|
70 | { |
---|
71 | return mTextureName; |
---|
72 | } |
---|
73 | |
---|
74 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.