diff options
author | P. J. McDermott <pj@pehjota.net> | 2021-03-18 14:27:00 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2021-03-18 14:27:00 (EDT) |
commit | 31e57879b75af60667f6c07e448e1571eae164cb (patch) | |
tree | 30ec7f8778ccc22afeb3543ed47d64bb4e38a1fb /src/main.h | |
parent | 5ba4795b7eb6cde37b7704ab7a0a1e0a61fdd991 (diff) | |
download | dodge-balls-31e57879b75af60667f6c07e448e1571eae164cb.zip dodge-balls-31e57879b75af60667f6c07e448e1571eae164cb.tar.gz dodge-balls-31e57879b75af60667f6c07e448e1571eae164cb.tar.bz2 |
main: Add dir and SDL struct accessor functions
Diffstat (limited to 'src/main.h')
-rw-r--r-- | src/main.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h new file mode 100644 index 0000000..5e6bae2 --- /dev/null +++ b/src/main.h @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2021 P. J. McDermott + * + * This file is part of Dodge Balls + * + * Dodge Balls is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Dodge Balls is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Dodge Balls. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef DB_MAIN_H_ +#define DB_MAIN_H_ + +#include <SDL.h> + +const char *db_get_games_dir(void) __attribute__((__pure__)); +const char *db_get_fonts_dir(void) __attribute__((__pure__)); +SDL_Window *db_get_window(void) __attribute__((__pure__)); +SDL_Renderer *db_get_renderer(void) __attribute__((__pure__)); +SDL_Texture *db_get_texture(void) __attribute__((__pure__)); + +#endif /* DB_MAIN_H_ */ |