hedgewars/SDLh.pas
branchsdl2transition
changeset 9677 71626318f80e
parent 9378 2be457289e60
child 9679 dfaa39674e1e
equal deleted inserted replaced
9676:ce7396d4eaf7 9677:71626318f80e
    68 {$ENDIF}
    68 {$ENDIF}
    69 
    69 
    70 
    70 
    71 (*  SDL  *)
    71 (*  SDL  *)
    72 const
    72 const
    73 {$IFDEF WIN32}
    73 {$IFDEF SDL2}
    74     SDLLibName = 'SDL.dll';
    74     {$IFDEF WIN32}
    75     SDL_TTFLibName = 'SDL_ttf.dll';
    75         SDLLibName = 'SDL2.dll';
    76     SDL_MixerLibName = 'SDL_mixer.dll';
    76         SDL_TTFLibName = 'SDL2_ttf.dll';
    77     SDL_ImageLibName = 'SDL_image.dll';
    77         SDL_MixerLibName = 'SDL2_mixer.dll';
    78     SDL_NetLibName = 'SDL_net.dll';
    78         SDL_ImageLibName = 'SDL2_image.dll';
    79 {$ELSE}
    79         SDL_NetLibName = 'SDL2_net.dll';
    80     SDLLibName = 'libSDL';
    80     {$ELSE}
    81     SDL_TTFLibName = 'libSDL_ttf';
    81         SDLLibName = 'libSDL2';
    82     SDL_MixerLibName = 'libSDL_mixer';
    82         SDL_TTFLibName = 'libSDL2_ttf';
    83     SDL_ImageLibName = 'libSDL_image';
    83         SDL_MixerLibName = 'libSDL2_mixer';
    84     SDL_NetLibName = 'libSDL_net';
    84         SDL_ImageLibName = 'libSDL2_image';
       
    85         SDL_NetLibName = 'libSDL2_net';
       
    86     {$ENDIF}
       
    87 {$ELSE}
       
    88     {$IFDEF WIN32}
       
    89         SDLLibName = 'SDL.dll';
       
    90         SDL_TTFLibName = 'SDL_ttf.dll';
       
    91         SDL_MixerLibName = 'SDL_mixer.dll';
       
    92         SDL_ImageLibName = 'SDL_image.dll';
       
    93         SDL_NetLibName = 'SDL_net.dll';
       
    94     {$ELSE}
       
    95         SDLLibName = 'libSDL';
       
    96         SDL_TTFLibName = 'libSDL_ttf';
       
    97         SDL_MixerLibName = 'libSDL_mixer';
       
    98         SDL_ImageLibName = 'libSDL_image';
       
    99         SDL_NetLibName = 'libSDL_net';
       
   100     {$ENDIF}
    85 {$ENDIF}
   101 {$ENDIF}
    86 
   102 
    87 /////////////////////////////////////////////////////////////////
   103 /////////////////////////////////////////////////////////////////
    88 /////////////////////  CONSTANT DEFINITIONS /////////////////////
   104 /////////////////////  CONSTANT DEFINITIONS /////////////////////
    89 /////////////////////////////////////////////////////////////////
   105 /////////////////////////////////////////////////////////////////