![]() |
ezEngine Release 26.9
|
#include <MouseCursorRenderer.h>
Public Member Functions | |
| void | SetSwapChain (ezGALSwapChainHandle hSwapChain) |
Renders the custom mouse cursor that was set through ezInputManager::SetMouseCursor().
The cursor identifier (ezMouseCursorDesc::m_sCursor) may be the GUID or path of either
The cursor is drawn as a single quad that is generated from SV_VertexID, so it needs neither a vertex nor an index buffer. A custom cursor material has to follow these rules:
#include <Shaders/MouseCursor/MouseCursorCommon.h> and return ezMouseCursorVertex(VertexID), or do the equivalent math itself, using ezMouseCursorConstants.
|
inline |
Sets which swap-chain to render the cursor into. Without this, nothing is rendered.
ezGameState::SetupMainView() sets this up for the main window automatically.