Rise
The Vieneo Province
Loading...
Searching...
No Matches
DeviceObject.h
Go to the documentation of this file.
1#pragma once
2
4#include <vector>
5#include "../Logger.h"
6
8{
9 //ID3D10Device* pd3dDevice = nullptr;
12
14 //std::vector<ID3D10ShaderResourceView*> textureSRV;
15 std::vector<Rendering::RenderTexture*> textureSRV;
16 std::vector<std::string> files;
17 bool hasSprite = false;
18
19public:
20 //ID3DX10Sprite* pSprite = nullptr;
22
24 {
25 // Pages queue their instruments before their background elements. Keep
26 // depth sorting whenever an instrument restarts this shared batch, or
27 // later screens paint their backgrounds over gear, engine and CAS layers.
30 }
31
32 //DeviceObject(ID3D10Device* prmPd3dDevice, GameClass* prmGameClass);
33 DeviceObject(Rendering::RenderDevice* prmPd3dDevice, Logger* prmLogger);
34
36
37 //ID3D10ShaderResourceView* GetTextureSRV(Logger* prmLogger, std::string pathAndFilename)
38 Rendering::RenderTexture* GetTextureSRV(std::string pathAndFilename);
39
40 void Evict(std::string pathAndFilename);
41
42 void OnLostDevice() const;
43 void OnResetDevice() const;
44
45 HRESULT SetRenderState(DWORD renderStateType, int value) const;
46 HRESULT SetSamplerState(int level, DWORD samplerrStateType, DWORD value) const;
47
48 HRESULT SetScissorRect(RECT* rect) const;
49 HRESULT GetScissorRect(RECT* rect) const;
50
55};
HRESULT(WINAPI *CUniBuffer::_ScriptApplyDigitSubstitution)(const SCRIPT_DIGITSUBSTITUTE *
SCRIPT_CONTROL SCRIPT_STATE const void DWORD
Rendering::RenderSprite * pSprite
std::vector< std::string > files
HRESULT SetRenderState(DWORD renderStateType, int value) const
std::vector< Rendering::RenderTexture * > textureSRV
Rendering::RenderTexture * GetTextureSRV(std::string pathAndFilename)
DeviceObject(Rendering::RenderDevice *prmPd3dDevice, Logger *prmLogger)
void Evict(std::string pathAndFilename)
HRESULT GetScissorRect(RECT *rect) const
HRESULT BeginSprites() const
void OnLostDevice() const
HRESULT SetSamplerState(int level, DWORD samplerrStateType, DWORD value) const
void OnResetDevice() const
Rendering::RenderDevice * pd3dDevice
HRESULT SetScissorRect(RECT *rect) const
Logger * logger
Rendering::RenderDevice * GetD3DDevice()
HRESULT Begin(DWORD flags)
constexpr DWORD AlphaBlend
constexpr DWORD SortTexture
constexpr DWORD SortBackToFront