From abf1c4d0a751095c8d54ad8dc6cf7b65c9517d35 Mon Sep 17 00:00:00 2001 From: SDL Wiki Bot Date: Fri, 22 Nov 2024 20:01:25 +0000 Subject: [PATCH] Sync SDL3 header -> wiki --- SDL3/SDL_Event.md | 1 + SDL3/SDL_RenderEvent.md | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 SDL3/SDL_RenderEvent.md diff --git a/SDL3/SDL_Event.md b/SDL3/SDL_Event.md index 592fbd635..3535dee7e 100644 --- a/SDL3/SDL_Event.md +++ b/SDL3/SDL_Event.md @@ -47,6 +47,7 @@ typedef union SDL_Event SDL_PenMotionEvent pmotion; /**< Pen motion event data */ SDL_PenButtonEvent pbutton; /**< Pen button event data */ SDL_PenAxisEvent paxis; /**< Pen axis event data */ + SDL_RenderEvent render; /**< Render event data */ SDL_DropEvent drop; /**< Drag and drop event data */ SDL_ClipboardEvent clipboard; /**< Clipboard event data */ diff --git a/SDL3/SDL_RenderEvent.md b/SDL3/SDL_RenderEvent.md new file mode 100644 index 000000000..0b52e77bc --- /dev/null +++ b/SDL3/SDL_RenderEvent.md @@ -0,0 +1,28 @@ +###### (This is the documentation for SDL3, which is the current stable version. [SDL2](https://wiki.libsdl.org/SDL2/) was the previous version!) +# SDL_RenderEvent + +Renderer event structure (event.render.*) + +## Header File + +Defined in [](https://github.com/libsdl-org/SDL/blob/main/include/SDL3/SDL_events.h) + +## Syntax + +```c +typedef struct SDL_RenderEvent +{ + SDL_EventType type; /**< SDL_EVENT_RENDER_TARGETS_RESET, SDL_EVENT_RENDER_DEVICE_RESET, SDL_EVENT_RENDER_DEVICE_LOST */ + Uint32 reserved; + Uint64 timestamp; /**< In nanoseconds, populated using SDL_GetTicksNS() */ + SDL_WindowID windowID; /**< The window containing the renderer in question. */ +} SDL_RenderEvent; +``` + +## Version + +This struct is available since SDL 3.1.7. + +---- +[CategoryAPI](CategoryAPI), [CategoryAPIStruct](CategoryAPIStruct), [CategoryEvents](CategoryEvents) +