|
Cogs.Core
|
Classes | |
| struct | RasterizerStateInstance |
Public Member Functions | |
| void | initialize (IGraphicsDevice *device) |
| void | setupDepthStates (IGraphicsDevice *device) |
| void | cleanup () |
| uint16_t COGSCORE_DLL_API | getRasterizerState (const Cogs::Core::RenderPassOptions &passOptions, RasterizerState::CullMode cullMode, bool wireFrame, bool counterClockWise) |
| COGSCORE_DLL_API uint16_t | getRasterizerState (const RasterizerState &rs) |
| Cogs::DepthStencilStateHandle | getDepthStencilState (const DepthStencilState &ds) |
| Cogs::SamplerStateHandle | getSamplerState (const SamplerState &ss) |
Public Attributes | |
| bool | reverseDepth = false |
| Cogs::RasterizerStateHandle | defaultRasterizerStateHandle |
| Cogs::RasterizerStateHandle | defaultCCWasterizerStateHandle |
| std::vector< Cogs::RasterizerStateHandle > | rasterizerStateHandles |
| struct { | |
| Cogs::BlendState color = Cogs::BlendState::DefaultState() | |
| Cogs::BlendState alpha = Cogs::BlendState::DefaultState() | |
| Cogs::BlendStateHandle handle = Cogs::BlendStateHandle::NoHandle | |
| } | blendStates [size_t(BlendMode::Count)] |
| Cogs::DepthStencilStateHandle | commonDepthStates [(int) DepthMode::Count *(int) DepthFunc::Count] |
| Cogs::SamplerStateHandle | defaultSampler |
| Cogs::SamplerStateHandle | commonSamplerStates [4] |
| Cogs::SamplerStateHandle | shadowSampler |
| Cogs::VertexBufferHandle | fullScreenTriangle |
Static Public Attributes | |
| static constexpr uint16_t | defaultDepthStencilState = getDepthState(DepthMode::Default, DepthFunc::Less) |
| static constexpr uint16_t | noWriteDepthStencilState = getDepthState(DepthMode::NoWrite, DepthFunc::Less) |
| static constexpr uint16_t | noDepthStencilState = getDepthState(DepthMode::Disabled, DepthFunc::Always) |
| static constexpr uint16_t | noTestDepthStencilState = getDepthState(DepthMode::Default, DepthFunc::Always) |
| static constexpr uint16_t | leqDepthStencilState = getDepthState(DepthMode::Default, DepthFunc::LessOrEqual) |
Private Attributes | |
| IGraphicsDevice * | device = nullptr |
| std::unordered_map< RasterizerState, RasterizerStateInstance > | rasterizerStates |
| std::unordered_map< DepthStencilState, Cogs::DepthStencilStateHandle > | depthStencilStates |
| std::unordered_map< SamplerState, Cogs::SamplerStateHandle > | samplerStates |
Definition at line 25 of file RenderStates.h.
| void Cogs::Core::RenderStates::cleanup | ( | ) |
Definition at line 258 of file RenderStates.cpp.
| Cogs::DepthStencilStateHandle Cogs::Core::RenderStates::getDepthStencilState | ( | const DepthStencilState & | ds | ) |
Definition at line 339 of file RenderStates.cpp.
| uint16_t Cogs::Core::RenderStates::getRasterizerState | ( | const Cogs::Core::RenderPassOptions & | passOptions, |
| RasterizerState::CullMode | cullMode, | ||
| bool | wireFrame, | ||
| bool | counterClockWise | ||
| ) |
Definition at line 288 of file RenderStates.cpp.
| uint16_t Cogs::Core::RenderStates::getRasterizerState | ( | const RasterizerState & | rs | ) |
Definition at line 313 of file RenderStates.cpp.
| Cogs::SamplerStateHandle Cogs::Core::RenderStates::getSamplerState | ( | const SamplerState & | ss | ) |
Definition at line 364 of file RenderStates.cpp.
| void Cogs::Core::RenderStates::initialize | ( | IGraphicsDevice * | device | ) |
Definition at line 21 of file RenderStates.cpp.
| void Cogs::Core::RenderStates::setupDepthStates | ( | IGraphicsDevice * | device | ) |
Definition at line 209 of file RenderStates.cpp.
| Cogs::BlendState Cogs::Core::RenderStates::alpha = Cogs::BlendState::DefaultState() |
Definition at line 40 of file RenderStates.h.
| Cogs::BlendState Cogs::Core::RenderStates::color = Cogs::BlendState::DefaultState() |
Definition at line 39 of file RenderStates.h.
| Cogs::DepthStencilStateHandle Cogs::Core::RenderStates::commonDepthStates[(int) DepthMode::Count *(int) DepthFunc::Count] |
Definition at line 50 of file RenderStates.h.
| Cogs::SamplerStateHandle Cogs::Core::RenderStates::commonSamplerStates[4] |
Definition at line 55 of file RenderStates.h.
| Cogs::RasterizerStateHandle Cogs::Core::RenderStates::defaultCCWasterizerStateHandle |
Definition at line 34 of file RenderStates.h.
|
staticconstexpr |
Definition at line 44 of file RenderStates.h.
| Cogs::RasterizerStateHandle Cogs::Core::RenderStates::defaultRasterizerStateHandle |
Definition at line 33 of file RenderStates.h.
| Cogs::SamplerStateHandle Cogs::Core::RenderStates::defaultSampler |
Definition at line 53 of file RenderStates.h.
|
private |
Definition at line 82 of file RenderStates.h.
|
private |
Definition at line 73 of file RenderStates.h.
| Cogs::VertexBufferHandle Cogs::Core::RenderStates::fullScreenTriangle |
Definition at line 61 of file RenderStates.h.
| Cogs::BlendStateHandle Cogs::Core::RenderStates::handle = Cogs::BlendStateHandle::NoHandle |
Definition at line 41 of file RenderStates.h.
|
staticconstexpr |
Definition at line 48 of file RenderStates.h.
|
staticconstexpr |
Definition at line 46 of file RenderStates.h.
|
staticconstexpr |
Definition at line 47 of file RenderStates.h.
|
staticconstexpr |
Definition at line 45 of file RenderStates.h.
| std::vector<Cogs::RasterizerStateHandle> Cogs::Core::RenderStates::rasterizerStateHandles |
Definition at line 36 of file RenderStates.h.
|
private |
Definition at line 81 of file RenderStates.h.
| bool Cogs::Core::RenderStates::reverseDepth = false |
Definition at line 31 of file RenderStates.h.
|
private |
Definition at line 83 of file RenderStates.h.
| Cogs::SamplerStateHandle Cogs::Core::RenderStates::shadowSampler |
Definition at line 58 of file RenderStates.h.