76 closure headers (EterBase, EterLocale, EterPack, EterLib, GameLib, MilesLib, EffectLib, SphereLib, EterImageLib) copied by the new port_copy.py (CP949->UTF-8, LF, include-path case only); platform-class headers go to the mirror path too, as the interface platform/ implements. Six manual `// PORT:` edits (Random, Singleton, Pool, Stl, Utils, FlyTarget). - common/D3D8Types.h: D3D8 value types with SDK values/layout, opaque COM interfaces - common/shim/sdk (d3d8/d3dx8/mss) on every platform, common/shim/win32 off Windows - Win32Types/Win32Crt: HRESULT, GUID, LARGE_INTEGER, LOGFONT/TEXTMETRIC, _atoi64, CRITICAL_SECTION on std::recursive_mutex - header gate prepends each library's StdAfx.h (40250's precompiled header) port_gate: macOS, Android, iOS, Windows (mingw) PASS; Linux BLOCKED (no toolchain). ScriptLib/EterPythonLib/UserInterface wait for 2P (their StdAfx includes Python). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
35 lines
979 B
C++
35 lines
979 B
C++
#pragma once
|
|
|
|
#include "GrpTexture.h"
|
|
#include "../EterImageLib/DXTCImage.h"
|
|
|
|
class CGraphicImageTexture : public CGraphicTexture
|
|
{
|
|
public:
|
|
CGraphicImageTexture();
|
|
virtual ~CGraphicImageTexture();
|
|
|
|
void Destroy();
|
|
|
|
bool Create(UINT width, UINT height, D3DFORMAT d3dFmt, DWORD dwFilter = D3DX_FILTER_LINEAR);
|
|
bool CreateDeviceObjects();
|
|
|
|
void CreateFromTexturePointer(const CGraphicTexture* c_pSrcTexture);
|
|
bool CreateFromDiskFile(const char* c_szFileName, D3DFORMAT d3dFmt, DWORD dwFilter = D3DX_FILTER_LINEAR);
|
|
bool CreateFromMemoryFile(UINT bufSize, const void* c_pvBuf, D3DFORMAT d3dFmt, DWORD dwFilter = D3DX_FILTER_LINEAR);
|
|
bool CreateDDSTexture(CDXTCImage & image, const BYTE * c_pbBuf);
|
|
|
|
void SetFileName(const char * c_szFileName);
|
|
|
|
bool Lock(int* pRetPitch, void** ppRetPixels, int level=0);
|
|
void Unlock(int level=0);
|
|
|
|
protected:
|
|
void Initialize();
|
|
|
|
D3DFORMAT m_d3dFmt;
|
|
DWORD m_dwFilter;
|
|
|
|
std::string m_stFileName;
|
|
};
|