Rise
The Vieneo Province
Loading...
Searching...
No Matches
DeviceObject Class Reference

#include <DeviceObject.h>

Collaboration diagram for DeviceObject:
[legend]

Public Member Functions

HRESULT BeginSprites () const
 DeviceObject (Rendering::RenderDevice *prmPd3dDevice, Logger *prmLogger)
 ~DeviceObject ()
Rendering::RenderTexture * GetTextureSRV (std::string pathAndFilename)
void Evict (std::string pathAndFilename)
void OnLostDevice () const
void OnResetDevice () const
HRESULT SetRenderState (DWORD renderStateType, int value) const
HRESULT SetSamplerState (int level, DWORD samplerrStateType, DWORD value) const
HRESULT SetScissorRect (RECT *rect) const
HRESULT GetScissorRect (RECT *rect) const
Rendering::RenderDevice * GetD3DDevice ()

Public Attributes

Rendering::RenderSprite * pSprite = nullptr

Private Attributes

Rendering::RenderDevice * pd3dDevice = nullptr
Logger * logger
std::vector< Rendering::RenderTexture * > 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 ( Rendering::RenderDevice * prmPd3dDevice,
Logger * prmLogger )

Definition at line 3 of file DeviceObject.cpp.

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

◆ ~DeviceObject()

DeviceObject::~DeviceObject ( )

Definition at line 121 of file DeviceObject.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ BeginSprites()

HRESULT DeviceObject::BeginSprites ( ) const
inline

Definition at line 23 of file DeviceObject.h.

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

◆ Evict()

void DeviceObject::Evict ( std::string pathAndFilename)

Definition at line 74 of file DeviceObject.cpp.

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

◆ GetD3DDevice()

Rendering::RenderDevice * DeviceObject::GetD3DDevice ( )
inline

Definition at line 51 of file DeviceObject.h.

Here is the caller graph for this function:

◆ GetScissorRect()

HRESULT DeviceObject::GetScissorRect ( RECT * rect) const

Definition at line 53 of file DeviceObject.cpp.

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

◆ GetTextureSRV()

Rendering::RenderTexture * 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 89 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 61 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 ( DWORD 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:

◆ SetSamplerState()

HRESULT DeviceObject::SetSamplerState ( int level,
DWORD samplerrStateType,
DWORD value ) const

Definition at line 41 of file DeviceObject.cpp.

Here is the call graph for this function:

◆ SetScissorRect()

HRESULT DeviceObject::SetScissorRect ( 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:

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

Rendering::RenderDevice* DeviceObject::pd3dDevice = nullptr
private

Definition at line 10 of file DeviceObject.h.

◆ pSprite

Rendering::RenderSprite* DeviceObject::pSprite = nullptr

Definition at line 21 of file DeviceObject.h.

◆ textureSRV

std::vector<Rendering::RenderTexture*> 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: