SDL_HINT_EMSCRIPTEN_CANVAS_SELECTOR(3)

SDL_HINT_EMSCRIPTEN_CANVAS_SELECTOR3

Specify the css selector used for the "default" window/canvas.

Usage

#include "SDL3/SDL.h"

#define SDL_HINT_EMSCRIPTEN_CANVAS_SELECTOR SDL_EMSCRIPTEN_CANVAS_SELECTOR"

Header file

Defined in SDL3/SDL_hints.h

Overview

This hint only applies to the emscripten platform.

The default value is "#canvas"

This hint should be set before creating a window.

Availability

This hint is available since SDL 3.2.0.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.