Readded texture stretch, texture dither, and 16 bit textures.

This commit is contained in:
Chris Danford
2002-11-14 01:26:19 +00:00
parent 9d68ff5d7b
commit 487b4e9527
16 changed files with 293 additions and 131 deletions
+8 -11
View File
@@ -1,4 +1,6 @@
#pragma once
#ifndef RAGEBITMAPTEXTURE_H
#define RAGEBITMAPTEXTURE_H
/*
-----------------------------------------------------------------------------
Class: RageBitmapTexture
@@ -10,29 +12,24 @@
-----------------------------------------------------------------------------
*/
#include "RageDisplay.h"
#include "RageTexture.h"
#include <d3dx8.h>
#include <assert.h>
//-----------------------------------------------------------------------------
// RageBitmapTexture Class Declarations
//-----------------------------------------------------------------------------
class RageBitmapTexture : public RageTexture
{
public:
RageBitmapTexture( const CString &sFilePath );
RageBitmapTexture( CString sFilePath, RageTexturePrefs prefs );
virtual ~RageBitmapTexture();
/* only called by RageTextureManager::InvalidateTextures */
virtual void Invalidate() { m_uGLTextureID = 0; }
virtual void Reload( RageTexturePrefs prefs );
protected:
virtual void Load( const CString &sFilePath );
virtual void Reload();
void Create(); // called by constructor and Reload
virtual unsigned int GetGLTextureID() { return m_uGLTextureID; }
unsigned int m_uGLTextureID;
CString m_sFilePath;
};
#endif