c - Flag SDL_HWPALETTE not recognized by gcc -
the flag sdl_hwpalette
being marked undeclared in gcc, though sdl included (many sdl functions , such being used fine). need include other sdl.h
use sdl_hwpalette
?
i checked out docs sdl_setvideomode
, function uses flag, , nothing declaring or additional includes mentioned sdl_hwpalette
mentioned, , i'm didn't typo.
code snipet:
#include "sdl2/sdl.h" screen = sdl_setvideomode(640, 480, 0, sdl_hwpalette);
error output:
in function 'init': error: 'sdl_hwpalette' undeclared
if using sdl2, sdl_setvideomode removed , enum.
more info here: https://forums.libsdl.org/viewtopic.php?t=9163&sid=23359eedacf25591f8fe7c3423342de4
in sdl 2 need create window , renderer. check out headers and/or docs.
regards,
leszek
Comments
Post a Comment