![]() |
Rise
The Vieneo Province
|
#include <Sprite11.h>
Classes | |
| struct | Entry |
Public Types | |
| using | Vector = DirectX::XMFLOAT3 |
| using | Matrix = DirectX::XMFLOAT4X4 |
Public Member Functions | |
| HRESULT | Initialize (ID3D11Device *device, const std::filesystem::path &shaderDirectory={}) |
| HRESULT | Begin (ID3D11DeviceContext *context, const SpriteOptions11 &options={}) |
| HRESULT | Draw (ID3D11ShaderResourceView *texture, const RECT *source=nullptr, const Vector *center=nullptr, const Vector *position=nullptr, uint32_t color=0xffffffff) |
| HRESULT | Flush () |
| HRESULT | End () |
| HRESULT | SetScissor (bool enabled, const RECT &rectangle) |
| D3D11_SAMPLER_DESC & | Sampler () |
| void | SetTransform (const Matrix &value) |
| const Matrix & | Transform () const |
| void | Reset () |
| ~Sprite11 () | |
| const std::string & | Status () const |
Private Member Functions | |
| void | Restore () |
Private Attributes | |
| Microsoft::WRL::ComPtr< ID3D11Device > | device |
| Microsoft::WRL::ComPtr< ID3D11DeviceContext1 > | context |
| Microsoft::WRL::ComPtr< ID3DDeviceContextState > | isolated |
| Microsoft::WRL::ComPtr< ID3DDeviceContextState > | previous |
| Microsoft::WRL::ComPtr< ID3D11Buffer > | vertices |
| Microsoft::WRL::ComPtr< ID3D11Buffer > | indices |
| Microsoft::WRL::ComPtr< ID3D11RasterizerState > | batchRaster |
| Microsoft::WRL::ComPtr< ID3D11DepthStencilState > | batchDepth |
| Microsoft::WRL::ComPtr< ID3D11BlendState > | batchBlend |
| FLOAT | batchBlendFactor [4] {} |
| UINT | batchSampleMask =UINT_MAX |
| UINT | batchStencilReference =0 |
| FixedFunction11 | fixed |
| FixedState11 | state |
| SpriteOptions11 | options |
| Matrix | transform {} |
| std::vector< Entry > | queue |
| std::vector< size_t > | order |
| Microsoft::WRL::ComPtr< ID3D11ShaderResourceView > | sizeTexture |
| UINT | textureWidth =0 |
| UINT | textureHeight =0 |
| std::string | status |
Static Private Attributes | |
| static constexpr UINT | Capacity =1024 |
Definition at line 8 of file Sprite11.h.
| using Rendering::Sprite11::Matrix = DirectX::XMFLOAT4X4 |
Definition at line 12 of file Sprite11.h.
| using Rendering::Sprite11::Vector = DirectX::XMFLOAT3 |
Definition at line 11 of file Sprite11.h.
|
inline |
| HRESULT Rendering::Sprite11::Begin | ( | ID3D11DeviceContext * | context, |
| const SpriteOptions11 & | options = {} ) |
Definition at line 47 of file Sprite11.cpp.
| HRESULT Rendering::Sprite11::Draw | ( | ID3D11ShaderResourceView * | texture, |
| const RECT * | source = nullptr, | ||
| const Vector * | center = nullptr, | ||
| const Vector * | position = nullptr, | ||
| uint32_t | color = 0xffffffff ) |
Definition at line 100 of file Sprite11.cpp.
| HRESULT Rendering::Sprite11::End | ( | ) |
Definition at line 206 of file Sprite11.cpp.
| HRESULT Rendering::Sprite11::Flush | ( | ) |
Definition at line 146 of file Sprite11.cpp.
| HRESULT Rendering::Sprite11::Initialize | ( | ID3D11Device * | device, |
| const std::filesystem::path & | shaderDirectory = {} ) |
Definition at line 26 of file Sprite11.cpp.
| void Rendering::Sprite11::Reset | ( | ) |
Definition at line 21 of file Sprite11.cpp.
|
private |
Definition at line 10 of file Sprite11.cpp.
|
inline |
| HRESULT Rendering::Sprite11::SetScissor | ( | bool | enabled, |
| const RECT & | rectangle ) |
Definition at line 135 of file Sprite11.cpp.
|
inline |
Definition at line 25 of file Sprite11.h.
|
inline |
|
private |
Definition at line 41 of file Sprite11.h.
|
private |
Definition at line 42 of file Sprite11.h.
|
private |
Definition at line 40 of file Sprite11.h.
|
private |
Definition at line 39 of file Sprite11.h.
|
private |
Definition at line 43 of file Sprite11.h.
|
private |
Definition at line 43 of file Sprite11.h.
|
staticconstexprprivate |
Definition at line 27 of file Sprite11.h.
|
private |
Definition at line 36 of file Sprite11.h.
|
private |
Definition at line 35 of file Sprite11.h.
|
private |
Definition at line 44 of file Sprite11.h.
|
private |
Definition at line 38 of file Sprite11.h.
|
private |
Definition at line 37 of file Sprite11.h.
|
private |
Definition at line 46 of file Sprite11.h.
|
private |
Definition at line 50 of file Sprite11.h.
|
private |
Definition at line 37 of file Sprite11.h.
|
private |
Definition at line 48 of file Sprite11.h.
|
private |
Definition at line 53 of file Sprite11.h.
|
private |
Definition at line 45 of file Sprite11.h.
|
private |
Definition at line 55 of file Sprite11.h.
|
private |
Definition at line 54 of file Sprite11.h.
|
private |
Definition at line 54 of file Sprite11.h.
|
private |
Definition at line 47 of file Sprite11.h.
|
private |
Definition at line 38 of file Sprite11.h.