raSystem  1.0 bata
raRenderScreen Class Reference

#include <raRenderScreen.h>

Public Member Functions

 raRenderScreen (raSmartPointer< raDirectX > dx, int width, int height, int mipLevels=1, DXGI_FORMAT fmt=DXGI_FORMAT_R16G16B16A16_FLOAT, UINT arraySize=1)
 
ID3D11Texture2D * CreateRenderTarget ()
 
virtual void Destroy ()
 
raDirectXGetDirectX ()
 
ID3D11Texture2D * GetTexture ()
 
DXGI_FORMAT GetFormat ()
 
int GetMipLevels ()
 
UINT GetArraySize ()
 
void GetSizeFromBackBuffer (const DXGI_SURFACE_DESC *pBackBufferDesc)
 

Protected Member Functions

bool CreateDepthTexture (D3D11_TEXTURE2D_DESC &desc)
 
bool CreateTexture (D3D11_TEXTURE2D_DESC &desc)
 
bool CreateDepthStencilView ()
 
bool CreateRenderTargetView ()
 

Protected Attributes

raSmartPointer< raDirectXm_dx
 
int m_Width
 
int m_Height
 
int m_MipLevels
 
unsigned int m_arraySize
 
DXGI_FORMAT m_Format
 
ID3D11RenderTargetView * m_pRTView
 
ID3D11DepthStencilView * m_pDSView
 
ID3D11Texture2D * m_pRenderTarget
 
ID3D11Texture2D * m_pDepth
 

Friends

class raSceneManager
 

Detailed Description

Definition at line 3 of file raRenderScreen.h.

Constructor & Destructor Documentation

◆ raRenderScreen()

raRenderScreen::raRenderScreen ( raSmartPointer< raDirectX dx,
int  width,
int  height,
int  mipLevels = 1,
DXGI_FORMAT  fmt = DXGI_FORMAT_R16G16B16A16_FLOAT,
UINT  arraySize = 1 
)

Definition at line 5 of file raRenderScreen.cpp.

Member Function Documentation

◆ CreateDepthStencilView()

bool raRenderScreen::CreateDepthStencilView ( )
protected

Definition at line 49 of file raRenderScreen.cpp.

◆ CreateDepthTexture()

bool raRenderScreen::CreateDepthTexture ( D3D11_TEXTURE2D_DESC &  desc)
protected

Definition at line 21 of file raRenderScreen.cpp.

◆ CreateRenderTarget()

ID3D11Texture2D * raRenderScreen::CreateRenderTarget ( )

Definition at line 102 of file raRenderScreen.cpp.

◆ CreateRenderTargetView()

bool raRenderScreen::CreateRenderTargetView ( )
protected

Definition at line 76 of file raRenderScreen.cpp.

◆ CreateTexture()

bool raRenderScreen::CreateTexture ( D3D11_TEXTURE2D_DESC &  desc)
protected

Definition at line 35 of file raRenderScreen.cpp.

◆ Destroy()

void raRenderScreen::Destroy ( void  )
virtual

Definition at line 145 of file raRenderScreen.cpp.

◆ GetArraySize()

UINT raRenderScreen::GetArraySize ( )

Definition at line 169 of file raRenderScreen.cpp.

◆ GetDirectX()

raDirectX * raRenderScreen::GetDirectX ( )

Definition at line 152 of file raRenderScreen.cpp.

◆ GetFormat()

DXGI_FORMAT raRenderScreen::GetFormat ( void  )

Definition at line 161 of file raRenderScreen.cpp.

◆ GetMipLevels()

int raRenderScreen::GetMipLevels ( )

Definition at line 165 of file raRenderScreen.cpp.

◆ GetSizeFromBackBuffer()

void raRenderScreen::GetSizeFromBackBuffer ( const DXGI_SURFACE_DESC *  pBackBufferDesc)

◆ GetTexture()

ID3D11Texture2D * raRenderScreen::GetTexture ( )

Definition at line 156 of file raRenderScreen.cpp.

Friends And Related Function Documentation

◆ raSceneManager

friend class raSceneManager
friend

Definition at line 5 of file raRenderScreen.h.

Member Data Documentation

◆ m_arraySize

unsigned int raRenderScreen::m_arraySize
protected

Definition at line 31 of file raRenderScreen.h.

◆ m_dx

raSmartPointer<raDirectX> raRenderScreen::m_dx
protected

Definition at line 27 of file raRenderScreen.h.

◆ m_Format

DXGI_FORMAT raRenderScreen::m_Format
protected

Definition at line 32 of file raRenderScreen.h.

◆ m_Height

int raRenderScreen::m_Height
protected

Definition at line 29 of file raRenderScreen.h.

◆ m_MipLevels

int raRenderScreen::m_MipLevels
protected

Definition at line 30 of file raRenderScreen.h.

◆ m_pDepth

ID3D11Texture2D* raRenderScreen::m_pDepth
protected

Definition at line 38 of file raRenderScreen.h.

◆ m_pDSView

ID3D11DepthStencilView* raRenderScreen::m_pDSView
protected

Definition at line 35 of file raRenderScreen.h.

◆ m_pRenderTarget

ID3D11Texture2D* raRenderScreen::m_pRenderTarget
protected

Definition at line 37 of file raRenderScreen.h.

◆ m_pRTView

ID3D11RenderTargetView* raRenderScreen::m_pRTView
protected

Definition at line 34 of file raRenderScreen.h.

◆ m_Width

int raRenderScreen::m_Width
protected

Definition at line 28 of file raRenderScreen.h.


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