layout: restructure into src/ tests/ android/ scripts/ tools/
- extension/src/{port,platform,codepage} -> src/; native_render -> src/host
(+ dxt, shaders/); libgr2 -> src/gr2; extension/third_party -> third_party
- extension/tests -> tests/port, libgr2/tests -> tests/gr2
- android-native -> android (build.sh, push-client.sh moved in)
- script -> scripts; tools/40250 -> tools/server; oracle -> tools/granny-oracle;
perf tools -> tools/perf
- all build trees under build/ (native, release, android, port-gate)
- xrender:: CMake aliases -> mt::; port-map ledger impl paths rewritten
No code changes. ctest 15/15, port_gate macos+android PASS, port_map check 0 errors.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
70710477cf
commit
a46093104c
@@ -0,0 +1,74 @@
|
||||
#pragma once
|
||||
|
||||
#include "GrpBase.h"
|
||||
#include "GrpDetector.h"
|
||||
#include "StateManager.h"
|
||||
|
||||
class CGraphicDevice : public CGraphicBase
|
||||
{
|
||||
public:
|
||||
enum EDeviceState
|
||||
{
|
||||
DEVICESTATE_OK,
|
||||
DEVICESTATE_BROKEN,
|
||||
DEVICESTATE_NEEDS_RESET,
|
||||
DEVICESTATE_NULL
|
||||
};
|
||||
|
||||
enum ECreateReturnValues
|
||||
{
|
||||
CREATE_OK = (1 << 0),
|
||||
CREATE_NO_DIRECTX = (1 << 1),
|
||||
CREATE_GET_DEVICE_CAPS = (1 << 2),
|
||||
CREATE_GET_DEVICE_CAPS2 = (1 << 3),
|
||||
CREATE_DEVICE = (1 << 4),
|
||||
CREATE_REFRESHRATE = (1 << 5),
|
||||
CREATE_ENUM = (1 << 6), // 2003. 01. 09. myevan 모드 리스트 얻기 실패
|
||||
CREATE_DETECT = (1 << 7), // 2003. 01. 09. myevan 모드 선택 실패
|
||||
CREATE_NO_TNL = (1 << 8),
|
||||
CREATE_BAD_DRIVER = (1 << 9),
|
||||
CREATE_FORMAT = (1 << 10),
|
||||
};
|
||||
|
||||
CGraphicDevice();
|
||||
virtual ~CGraphicDevice();
|
||||
|
||||
void InitBackBufferCount(UINT uBackBufferCount);
|
||||
|
||||
void Destroy();
|
||||
int Create(HWND hWnd, int hres, int vres, bool Windowed = true, int bit = 32, int ReflashRate = 0);
|
||||
|
||||
EDeviceState GetDeviceState();
|
||||
bool Reset();
|
||||
|
||||
void EnableWebBrowserMode(const RECT& c_rcWebPage);
|
||||
void DisableWebBrowserMode();
|
||||
void MoveWebBrowserRect(const RECT& c_rcWebPage);
|
||||
|
||||
bool ResizeBackBuffer(UINT uWidth, UINT uHeight);
|
||||
void RegisterWarningString(UINT uiMsg, const char * c_szString);
|
||||
|
||||
protected:
|
||||
void __Initialize();
|
||||
bool __IsInDriverBlackList(D3D_CAdapterInfo& rkD3DAdapterInfo);
|
||||
void __WarningMessage(HWND hWnd, UINT uiMsg);
|
||||
|
||||
void __InitializeDefaultIndexBufferList();
|
||||
void __DestroyDefaultIndexBufferList();
|
||||
bool __CreateDefaultIndexBufferList();
|
||||
bool __CreateDefaultIndexBuffer(UINT eDefIB, UINT uIdxCount, const WORD* c_awIndices);
|
||||
|
||||
void __InitializePDTVertexBufferList();
|
||||
void __DestroyPDTVertexBufferList();
|
||||
bool __CreatePDTVertexBufferList();
|
||||
|
||||
DWORD CreatePTStreamVertexShader();
|
||||
DWORD CreatePNTStreamVertexShader();
|
||||
DWORD CreatePNT2StreamVertexShader();
|
||||
DWORD CreateDoublePNTStreamVertexShader();
|
||||
|
||||
protected:
|
||||
DWORD m_uBackBufferCount;
|
||||
std::map<UINT, std::string> m_kMap_strWarningMessage;
|
||||
CStateManager* m_pStateManager;
|
||||
};
|
||||
Reference in New Issue
Block a user