summaryrefslogtreecommitdiffstats
path: root/include/wsdl2.hpp
blob: 16564aca649d7c4646f85182a9ed11c3dbb66cf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

extern "C" {
#include <SDL2/SDL.h>
}

namespace wsdl2 {
    bool initialize(void);
    void quit(void);

    namespace util {
        constexpr inline bool sdl_bool(SDL_bool b) {
            return b == SDL_TRUE;
        }

        constexpr inline SDL_bool sdl_bool(bool b) {
            return (b) ? SDL_TRUE : SDL_FALSE;
        }
    }
    
    // tool functions
    void delay(unsigned ms);
}