Wrapper class responsible for initializing and managing Direct3D 11. Handles device creation, swap chain, rendering targets, and draw calls.
More...
#include <D3D11.hpp>
|
| | D3D11 (IWindow &window) |
| | Constructs the D3D11 renderer using the provided window.
|
| | D3D11 (const D3D11 &other)=delete |
| | Disable copy constructor.
|
| D3D11 & | operator= (const D3D11 &other)=delete |
| | Disable assignment operator.
|
| | ~D3D11 ()=default |
| | Default destructor.
|
| void | Present () |
| | Presents the swap chain to the screen (displays the rendered frame).
|
| void | ClearBackBuffer (float r, float g, float b) noexcept |
| | Clears the back buffer with the specified color.
|
| void | SetViewProjection (const Maths::Mat4f &vp) |
| | Updates the view-projection matrix used by the shaders.
|
| ID3D11Device * | GetDevice () const noexcept |
| | Returns the D3D11 device.
|
| ID3D11DeviceContext * | GetContext () const noexcept |
| | Returns the D3D11 device context.
|
| IDXGISwapChain * | GetSwapChain () const noexcept |
| | Returns the swap chain.
|
| ID3D11RenderTargetView * | GetRenderTargetView () const noexcept |
| | Returns the render target view.
|
| void | DrawShape (const MeshAsset &mesh, const Material &material) |
| | Draws a mesh using the provided material.
|
Wrapper class responsible for initializing and managing Direct3D 11. Handles device creation, swap chain, rendering targets, and draw calls.
◆ D3D11() [1/2]
| Engine::D3D11::D3D11 |
( |
IWindow & | window | ) |
|
Constructs the D3D11 renderer using the provided window.
- Parameters
-
| window | Window interface used to retrieve the native handle |
◆ D3D11() [2/2]
| Engine::D3D11::D3D11 |
( |
const D3D11 & | other | ) |
|
|
delete |
Disable copy constructor.
◆ ~D3D11()
| Engine::D3D11::~D3D11 |
( |
| ) |
|
|
default |
◆ ClearBackBuffer()
| void Engine::D3D11::ClearBackBuffer |
( |
float | r, |
|
|
float | g, |
|
|
float | b ) |
|
noexcept |
Clears the back buffer with the specified color.
- Parameters
-
| r | Red component |
| g | Green component |
| b | Blue component |
◆ DrawShape()
Draws a mesh using the provided material.
- Parameters
-
| mesh | Mesh asset containing vertex/index buffers |
| material | Material containing textures and parameters |
◆ GetContext()
| ID3D11DeviceContext * Engine::D3D11::GetContext |
( |
| ) |
const |
|
inlinenoexcept |
Returns the D3D11 device context.
◆ GetDevice()
| ID3D11Device * Engine::D3D11::GetDevice |
( |
| ) |
const |
|
inlinenoexcept |
Returns the D3D11 device.
◆ GetRenderTargetView()
| ID3D11RenderTargetView * Engine::D3D11::GetRenderTargetView |
( |
| ) |
const |
|
inlinenoexcept |
Returns the render target view.
◆ GetSwapChain()
| IDXGISwapChain * Engine::D3D11::GetSwapChain |
( |
| ) |
const |
|
inlinenoexcept |
◆ operator=()
| D3D11 & Engine::D3D11::operator= |
( |
const D3D11 & | other | ) |
|
|
delete |
Disable assignment operator.
◆ Present()
| void Engine::D3D11::Present |
( |
| ) |
|
Presents the swap chain to the screen (displays the rendered frame).
◆ SetViewProjection()
| void Engine::D3D11::SetViewProjection |
( |
const Maths::Mat4f & | vp | ) |
|
Updates the view-projection matrix used by the shaders.
- Parameters
-
The documentation for this class was generated from the following file: