SDL Wiki
(This is the documentation for SDL3, which is under heavy development and the API is changing! SDL2 is the current stable version!)

SDL_GetRendererProperties

Get the properties associated with a renderer.

Syntax

SDL_PropertiesID SDL_GetRendererProperties(SDL_Renderer *renderer);

Function Parameters

renderer the rendering context

Return Value

Returns a valid property ID on success or 0 on failure; call SDL_GetError() for more information.

Remarks

The following read-only properties are provided by SDL:

"SDL.renderer.d3d9.device" (pointer) - the IDirect3DDevice9 associated with the renderer
"SDL.renderer.d3d11.device" (pointer) - the ID3D11Device associated with the renderer
"SDL.renderer.d3d12.device" (pointer) - the ID3D12Device associated with the renderer
"SDL.renderer.d3d12.command_queue" (pointer) - the ID3D12CommandQueue associated with the renderer

Version

This function is available since SDL 3.0.0.


CategoryAPI


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.