Rise
The Vieneo Province
DeviceObject Class Reference

#include <DeviceObject.h>

Collaboration diagram for DeviceObject:
[legend]

Public Member Functions

 DeviceObject (IDirect3DDevice9 *prmPd3dDevice, Logger *prmLogger)
 
 ~DeviceObject ()
 
LPDIRECT3DTEXTURE9 GetTextureSRV (std::string pathAndFilename)
 
void OnLostDevice () const
 
void OnResetDevice () const
 
HRESULT SetRenderState (_D3DRENDERSTATETYPE renderStateType, int value) const
 
HRESULT SetScissorRect (RECT *rect) const
 
HRESULT GetScissorRect (RECT *rect) const
 
IDirect3DDevice9 * GetD3DDevice ()
 

Public Attributes

LPD3DXSPRITE pSprite = nullptr
 

Private Attributes

IDirect3DDevice9 * pd3dDevice = nullptr
 
Loggerlogger
 
std::vector< LPDIRECT3DTEXTURE9 > textureSRV
 
std::vector< std::string > files
 
bool hasSprite = false
 

Detailed Description

Definition at line 7 of file DeviceObject.h.

Constructor & Destructor Documentation

◆ DeviceObject()

DeviceObject::DeviceObject ( IDirect3DDevice9 *  prmPd3dDevice,
Logger prmLogger 
)

Definition at line 3 of file DeviceObject.cpp.

Here is the call graph for this function:

◆ ~DeviceObject()

DeviceObject::~DeviceObject ( )

Definition at line 101 of file DeviceObject.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ GetD3DDevice()

IDirect3DDevice9* DeviceObject::GetD3DDevice ( )
inline

Definition at line 39 of file DeviceObject.h.

◆ GetScissorRect()

HRESULT DeviceObject::GetScissorRect ( RECT *  rect) const

Definition at line 47 of file DeviceObject.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetTextureSRV()

LPDIRECT3DTEXTURE9 DeviceObject::GetTextureSRV ( std::string  pathAndFilename)

need to loop through files (good) or crc (best) to find if we already have the texture resource loaded

Definition at line 68 of file DeviceObject.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnLostDevice()

void DeviceObject::OnLostDevice ( ) const

Definition at line 55 of file DeviceObject.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ OnResetDevice()

void DeviceObject::OnResetDevice ( ) const

Definition at line 22 of file DeviceObject.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetRenderState()

HRESULT DeviceObject::SetRenderState ( _D3DRENDERSTATETYPE  renderStateType,
int  value 
) const

Definition at line 35 of file DeviceObject.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetScissorRect()

HRESULT DeviceObject::SetScissorRect ( RECT *  rect) const

Definition at line 41 of file DeviceObject.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ files

std::vector<std::string> DeviceObject::files
private

Definition at line 16 of file DeviceObject.h.

◆ hasSprite

bool DeviceObject::hasSprite = false
private

Definition at line 17 of file DeviceObject.h.

◆ logger

Logger* DeviceObject::logger
private

Definition at line 11 of file DeviceObject.h.

◆ pd3dDevice

IDirect3DDevice9* DeviceObject::pd3dDevice = nullptr
private

Definition at line 10 of file DeviceObject.h.

◆ pSprite

LPD3DXSPRITE DeviceObject::pSprite = nullptr

Definition at line 21 of file DeviceObject.h.

◆ textureSRV

std::vector<LPDIRECT3DTEXTURE9> DeviceObject::textureSRV
private
Todo:
track filename (good) or CRC (best)

Definition at line 15 of file DeviceObject.h.


The documentation for this class was generated from the following files: