Move git root from Client/ to src/ to track all source code: - Client: Game client source (moved to Client/Client/) - Server: Game server source - GameTools: Development tools - CryptoSource: Encryption utilities - database: Database scripts - Script: Game scripts - rylCoder_16.02.2008_src: Legacy coder tools - GMFont, Game: Additional resources 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
51 lines
1.2 KiB
C++
51 lines
1.2 KiB
C++
//-----------------------------------------------------------------------------
|
|
// File: TextureUtils.h
|
|
//
|
|
// Desc:
|
|
//-----------------------------------------------------------------------------
|
|
#ifndef TEXTUREUTILS_H
|
|
#define TEXTUREUTILS_H
|
|
#include <tchar.h>
|
|
#include <d3d8.h>
|
|
#include <d3dx8.h>
|
|
|
|
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// Name: class TextureUtils
|
|
// Desc:
|
|
//-----------------------------------------------------------------------------
|
|
class TextureUtils
|
|
{
|
|
public:
|
|
static LPDIRECT3DCUBETEXTURE8 GetNormalisationCubemap(LPDIRECT3DDEVICE8 pd3dDevice);
|
|
static LPDIRECT3DCUBETEXTURE8 GetSpecularCubemap(LPDIRECT3DDEVICE8 pd3dDevice);
|
|
|
|
static LPDIRECT3DTEXTURE8 CreateTextureAlpha(
|
|
TCHAR* name,
|
|
TCHAR* alphaName,
|
|
LPDIRECT3DDEVICE8 pd3dDevice);
|
|
|
|
static LPDIRECT3DTEXTURE8 CreateNormalMapAlpha(
|
|
FLOAT bumpScale,
|
|
TCHAR* name,
|
|
TCHAR* alphaName,
|
|
LPDIRECT3DDEVICE8 pd3dDevice);
|
|
|
|
static void Cleanup();
|
|
|
|
private:
|
|
TextureUtils();
|
|
~TextureUtils();
|
|
|
|
static LPDIRECT3DCUBETEXTURE8 m_pNormalisationCubemap;
|
|
static LPDIRECT3DCUBETEXTURE8 m_pSpecularCubemap;
|
|
};
|
|
|
|
#endif
|
|
|
|
|
|
|