35#ifndef LIBTCOD_CONSOLE_INIT_H_
36#define LIBTCOD_CONSOLE_INIT_H_
91 "This way of initializing libtcod is deprecated. See the documentation for how to use TCOD_context_new.")
95 "This way of initializing libtcod is deprecated. See the documentation for how to use TCOD_context_new.")
97TCOD_console_init_root_(
int w,
int h, const
char* title,
bool fullscreen,
TCOD_renderer_t renderer,
bool vsync);
103TCOD_DEPRECATED(
"This function is not compatible with contexts. Use SDL_SetWindowTitle to change the window title.")
111 "This function is not compatible with contexts. Use SDL_SetWindowFullscreen to set the fullscreen state.")
116TCOD_DEPRECATED(
"This function is not compatible with contexts. Use SDL_GetWindowFlags to check this.")
121TCOD_DEPRECATED(
"This function is not compatible with contexts. Use SDL_GetWindowFlags to check this.")
132TCOD_DEPRECATED(
"This function is not compatible with contexts. Use SDL_GetWindowFlags to check this.")
137TCOD_DEPRECATED(
"This function is not compatible with contexts. Use SDL for events and check for SDL_QUIT.")
145TCOD_DEPRECATED(
"This function is not compatible with contexts.")
153TCOD_DEPRECATED(
"This function is not compatible with contexts.")
176TCOD_DEPRECATED(
"This function is not compatible with contexts.")
178TCOD_DEPRECATED(
"This function is not compatible with contexts.")
179TCOD_PUBLIC
int TCOD_sys_accumulate_console_(const
TCOD_Console* console, const struct SDL_Rect* viewport);
216 "This way of initializing libtcod is deprecated. See the documentation for how to use "
217 "tcod::new_context.")]] TCOD_PUBLIC
void
218init_root(
int w,
int h,
const std::string& title,
bool fullscreen,
TCOD_renderer_t renderer);
220 "This way of initializing libtcod is deprecated. See the documentation for how to use "
221 "tcod::new_context.")]] TCOD_PUBLIC
void
222init_root(
int w,
int h,
const std::string& title,
bool fullscreen,
TCOD_renderer_t renderer,
bool vsync);
Various console functions.
void TCOD_console_set_window_title(const char *title)
Change the title string of the active window.
TCOD_Context * TCOD_sys_get_internal_context(void)
Return the context being used internally by the old API.
struct SDL_Renderer * TCOD_sys_get_sdl_renderer(void)
Return an SDL_Renderer pointer if one is in use, returns NULL otherwise.
TCOD_Console * TCOD_sys_get_internal_console(void)
Return a pointer to the "root console" used internally by the old API.
bool TCOD_console_is_active(void)
Return true if the window has keyboard focus.
void TCOD_console_set_fullscreen(bool fullscreen)
Set the display to be full-screen or windowed.
void TCOD_quit(void)
Shutdown libtcod.
bool TCOD_console_is_fullscreen(void)
Return true if the display is full-screen.
struct SDL_Window * TCOD_sys_get_sdl_window(void)
Return an SDL_Window pointer if one is in use, returns NULL otherwise.
bool TCOD_console_is_window_closed(void)
Return true if the window is closing.
bool TCOD_console_has_mouse_focus(void)
Return true if the window has mouse focus.
TCOD_Error TCOD_console_init_root(int w, int h, const char *title, bool fullscreen, TCOD_renderer_t renderer)
Initialize the libtcod graphical engine.
int TCOD_sys_accumulate_console(const TCOD_Console *console)
Render a console over the display.
C types for console functions.
TCOD_renderer_t
Libtcod rendering modes.
Definition console_types.h:491
Libtcod display management context.
TCOD_Error
An enum of libtcod error codes.
Definition error.h:48
The libtcod namespace.
Definition bresenham.hpp:157
A libtcod console containing a grid of tiles with {ch, fg, bg} information.
Definition console.h:125
A rendering context for libtcod.
Definition context.h:340