2001-11-04 19:34:28 +00:00
|
|
|
/*
|
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
File: RageBitmapTexture.h
|
|
|
|
|
|
|
|
|
|
Desc: Holder for a static texture with metadata. Can load just about any image format.
|
|
|
|
|
|
|
|
|
|
Copyright (c) 2001 Chris Danford. 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>
|
|
|
|
|
|
|
|
|
|
|
2002-03-30 20:00:13 +00:00
|
|
|
const DWORD TEXTURE_HINT_NOMIPMAPS = 1 << 0;
|
|
|
|
|
const DWORD TEXTURE_HINT_DITHER = 1 << 1;
|
2002-02-03 20:45:08 +00:00
|
|
|
|
|
|
|
|
|
2001-11-03 10:52:42 +00:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
// RageBitmapTexture Class Declarations
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
class RageBitmapTexture : public RageTexture
|
|
|
|
|
{
|
|
|
|
|
public:
|
2002-03-30 20:00:13 +00:00
|
|
|
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:
|
2002-03-30 20:00:13 +00:00
|
|
|
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
|