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

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -