Sleeping Wombat GUI
0.100
swGUI
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
swGraphicAPI
MockAPI
MockResources
MockRenderTarget.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
swGraphicAPI/Resources/MeshResources.h
"
4
5
6
namespace
sw
7
{
8
9
10
13
class
MockRenderTarget
:
public
RenderTargetObject
14
{
15
RTTR_ENABLE
(
RenderTargetObject
);
16
private
:
17
18
uint16
m_height
;
19
uint16
m_width
;
20
21
protected
:
22
~MockRenderTarget
();
23
public
:
24
MockRenderTarget
(
TextureObject
* colorBuffer,
25
TextureObject
* depthBuffer,
26
TextureObject
* stencilBuffer );
27
28
29
inline
uint16
GetWidth
() {
return
m_width
; }
30
inline
uint16
GetHeight
() {
return
m_height
; }
31
inline
void
SetHeight
(
uint16
value ) { m_height = value; }
32
inline
void
SetWidth
(
uint16
value ) { m_width = value; }
33
34
static
MockRenderTarget
*
CreateScreenRenderTarget
();
35
static
MockRenderTarget
*
CreateRenderTarget
(
const
std::wstring& name,
const
RenderTargetDescriptor
& renderTargetDescriptor );
36
37
private
:
38
static
bool
ValidateDescriptor
(
const
RenderTargetDescriptor
& renderTargetDescriptor );
39
};
40
41
}
// sw
uint16
uint16_t uint16
Definition:
TypesDefinitions.h:29
sw::MockRenderTarget::GetHeight
uint16 GetHeight()
Definition:
MockRenderTarget.h:30
sw
Definition:
DirectInputModule.cpp:11
sw::MockRenderTarget::SetWidth
void SetWidth(uint16 value)
Definition:
MockRenderTarget.h:32
sw::MockRenderTarget::SetHeight
void SetHeight(uint16 value)
Definition:
MockRenderTarget.h:31
sw::MockRenderTarget
Definition:
MockRenderTarget.h:13
RenderTargetDescriptor
Struktura używana do tworzenia render targetu.
Definition:
MeshResources.h:238
sw::MockRenderTarget::m_width
uint16 m_width
Definition:
MockRenderTarget.h:19
MeshResources.h
Plik zawiera deklaracje formatów wierzchołków oraz klas zawierających assety shadery itp...
sw::MockRenderTarget::CreateScreenRenderTarget
static MockRenderTarget * CreateScreenRenderTarget()
Definition:
MockRenderTarget.cpp:39
TextureObject
Klasa przechowująca tekstury.Klasa bazowa, która będzie używana przez obiekty silnika. Powinny po niej odziedziczyć obiekty konkretnego API graficznego, żeby zaimplementować najważniejsze funkcjonalności.
Definition:
MeshResources.h:206
sw::MockRenderTarget::GetWidth
uint16 GetWidth()
Definition:
MockRenderTarget.h:29
sw::MockRenderTarget::~MockRenderTarget
~MockRenderTarget()
Definition:
MockRenderTarget.cpp:22
sw::MockRenderTarget::RTTR_ENABLE
RTTR_ENABLE(RenderTargetObject)
sw::MockRenderTarget::CreateRenderTarget
static MockRenderTarget * CreateRenderTarget(const std::wstring &name, const RenderTargetDescriptor &renderTargetDescriptor)
Definition:
MockRenderTarget.cpp:52
RenderTargetObject
Klasa dla render targetów.Klasa umożliwia pobranie jednej z tekstur składowych i udostępnienie dla sh...
Definition:
MeshResources.h:301
sw::MockRenderTarget::ValidateDescriptor
static bool ValidateDescriptor(const RenderTargetDescriptor &renderTargetDescriptor)
Definition:
MockRenderTarget.cpp:85
sw::MockRenderTarget::m_height
uint16 m_height
Definition:
MockRenderTarget.h:18
sw::MockRenderTarget::MockRenderTarget
MockRenderTarget(TextureObject *colorBuffer, TextureObject *depthBuffer, TextureObject *stencilBuffer)
Definition:
MockRenderTarget.cpp:29
Generated on Tue May 9 2017 15:46:02 for Sleeping Wombat GUI by
1.8.9.1