mirror of
https://github.com/glest/glest-source.git
synced 2025-09-27 16:09:00 +02:00
49 lines
1.2 KiB
C++
49 lines
1.2 KiB
C++
// ==============================================================
|
|
// This file is part of MegaGlest Shared Library (www.megaglest.org)
|
|
//
|
|
// Copyright (C) 2012 Mark Vejvoda, Titus Tscharntke
|
|
// The Megaglest Team, under GNU GPL v3.0
|
|
// ==============================================================
|
|
|
|
#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
|