Updated Image Loading and Displaying Examples (markdown)

omar 2026-04-22 16:16:28 +02:00
parent fc140d4a12
commit 5b9f07600e

@ -1338,7 +1338,7 @@ You can use draw callbacks to manipulate the render state, e.g. alter sampling.
void ImDrawCallback_ImplDX11_SetSampler(const ImDrawList* parent_list, const ImDrawCmd* cmd)
{
ImGui_ImplDX11_RenderState* state = (ImGui_ImplDX11_RenderState*)ImGui::GetPlatformIO().Renderer_RenderState;
ID3D11SamplerState* sampler = cmd->UserCallbackData ? (ID3D11SamplerState*)cmd->UserCallbackData : state->SamplerDefault;
ID3D11SamplerState* sampler = cmd->UserCallbackData ? (ID3D11SamplerState*)cmd->UserCallbackData : state->SamplerLinear;
state->DeviceContext->PSSetSamplers(0, 1, &sampler);
}
```