File: texture_d3d9.h

package info (click to toggle)
glest 3.2.2-2
  • links: PTS, VCS
  • area: contrib
  • in suites: squeeze
  • size: 2,800 kB
  • ctags: 6,581
  • sloc: cpp: 32,575; sh: 8,341; makefile: 63
file content (41 lines) | stat: -rw-r--r-- 937 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef _SHARED_D3D9_TEXTURED3D9_H_
#define _SHARED_D3D9_TEXTURED3D9_H_

#include "texture.h"
#include <d3d9.h> 

namespace Shared{ namespace Graphics{ namespace D3d9{

// ===============================
//	class Texture2DD3d9  
// ===============================

class Texture2DD3d9: public Texture2D{
private:
	IDirect3DTexture9 *d3dTexture;

public:
	IDirect3DTexture9 *getD3dTexture() const	{return d3dTexture;}

	virtual void init(Filter textureFilter, int maxAnisotropy= 1);
	virtual void end();
};

// ===============================
//	class TextureCubeD3d9  
// ===============================

class TextureCubeD3d9: public TextureCube{
private:
	IDirect3DCubeTexture9 *d3dCubeTexture;

public:
	IDirect3DCubeTexture9 *getD3dCubeTexture() const	{return d3dCubeTexture;}

	virtual void init(Filter textureFilter, int maxAnisotropy= 1);
	virtual void end();
};

}}}//end namespace

#endif