Files
itgmania212121/stepmania/src/RageBitmapTexture.h
T

55 lines
1.2 KiB
C++
Raw Normal View History

/*
-----------------------------------------------------------------------------
File: RageBitmapTexture.h
Desc: Holder for a static texture with metadata. Can load just about any image format.
2002-04-16 17:31:00 +00:00
Copyright (c) 2001-2002 by the persons listed below. All rights reserved.
-----------------------------------------------------------------------------
*/
2001-11-03 10:52:42 +00:00
class RageBitmapTexture;
#ifndef _RageBitmapTexture_H_
#define _RageBitmapTexture_H_
#include "RageScreen.h"
#include <d3dx8.h>
#include <assert.h>
//#include <d3d8types.h>
const DWORD TEXTURE_HINT_NOMIPMAPS = 1 << 0;
const DWORD TEXTURE_HINT_DITHER = 1 << 1;
2001-11-03 10:52:42 +00:00
//-----------------------------------------------------------------------------
// RageBitmapTexture Class Declarations
//-----------------------------------------------------------------------------
class RageBitmapTexture : public RageTexture
{
public:
RageBitmapTexture(
RageScreen* pScreen,
const CString &sFilePath,
const DWORD dwMaxSize = 2048,
const DWORD dwTextureColorDepth = 16,
const DWORD dwHints = 0
);
2001-11-03 10:52:42 +00:00
~RageBitmapTexture();
virtual LPDIRECT3DTEXTURE8 GetD3DTexture();
protected:
virtual void Create( DWORD dwMaxSize, DWORD dwTextureColorDepth, DWORD dwHints );
2001-12-19 01:50:57 +00:00
LPDIRECT3DTEXTURE8 m_pd3dTexture;
2001-11-03 10:52:42 +00:00
};
#endif