OSDN Git Service

fix cmake/Macros.cmake
[moflib/moflib.git] / moflib-1.0 / moflib / moflib / mof / private / TextureImpl.hpp
1 #ifndef MOF_TEXTURE_IMPL_HPP
2 #define MOF_TEXTURE_IMPL_HPP
3 #include "Texture.hpp"
4
5
6 #include "mof/GraphicsDevice.hpp"
7 #include <d3dx9.h>
8
9
10 struct mof::Texture::Impl{
11         LPDIRECT3DTEXTURE9 pTexture;
12         int width , height;
13
14         Impl() : pTexture(NULL) , width(0) , height(0){}
15         ~Impl(){
16                 if(pTexture != NULL)pTexture->Release();
17         }
18 };
19
20 #endif