libsdl-org / sdlwiki

This is the raw contents of SDL's wiki. You can edit this through GitHub or at https://wiki.libsdl.org/ now!
https://wiki.libsdl.org/
79 stars 32 forks source link

SDL3/SDL_SetRenderViewport: Updated. #555

Open SDLWikiBot opened 2 months ago

SDLWikiBot commented 2 months ago

This edit was made by @sechshelme.

Live page is here: https://wiki.libsdl.org/SDL3/SDL_SetRenderViewport

If this user should be blocked from further edits, an admin should go to https://wiki.libsdl.org/sechshelme/block If this user should be trusted to make direct pushes to main, without a pull request, an admin should go to https://wiki.libsdl.org/sechshelme/trust

slouken commented 2 months ago
[1/1] Building C object CMakeFiles/SDL3_SDL_SetRenderViewport_c.dir/wikidir/examples/SDL3/SDL_SetRenderViewport.c.o
FAILED: CMakeFiles/SDL3_SDL_SetRenderViewport_c.dir/wikidir/examples/SDL3/SDL_SetRenderViewport.c.o 
/usr/bin/cc -D__ANDROID__ -I/home/runner/work/sdlwiki/sdlwiki/.github/../external/SDL3/include -I/home/runner/work/sdlwiki/sdlwiki/.github/../external/SDL3/src/video/khronos -isystem /usr/lib/jvm/temurin-11-jdk-amd64/include -isystem /usr/lib/jvm/temurin-11-jdk-amd64/include/linux  -MD -MT CMakeFiles/SDL3_SDL_SetRenderViewport_c.dir/wikidir/examples/SDL3/SDL_SetRenderViewport.c.o -MF CMakeFiles/SDL3_SDL_SetRenderViewport_c.dir/wikidir/examples/SDL3/SDL_SetRenderViewport.c.o.d -o CMakeFiles/SDL3_SDL_SetRenderViewport_c.dir/wikidir/examples/SDL3/SDL_SetRenderViewport.c.o -c /home/runner/work/sdlwiki/sdlwiki/build/wikidir/examples/SDL3/SDL_SetRenderViewport.c
/home/runner/work/sdlwiki/sdlwiki/build/wikidir/examples/SDL3/SDL_SetRenderViewport.c: In function ‘main’:
/home/runner/work/sdlwiki/sdlwiki/build/wikidir/examples/SDL3/SDL_SetRenderViewport.c:17:32: error: ‘nullptr’ undeclared (first use in this function)
   17 |   SDL_RenderFillRect(renderer, nullptr);
      |                                ^~~~~~~
/home/runner/work/sdlwiki/sdlwiki/build/wikidir/examples/SDL3/SDL_SetRenderViewport.c:17:32: note: each undeclared identifier is reported only once for each function it appears in
ninja: build stopped: subcommand failed.