libtcod
Loading...
Searching...
No Matches
context_init.h File Reference

Context initialization module. More...

#include <stdbool.h>
#include "config.h"
#include "context.h"
#include "error.h"

Go to the source code of this file.

Namespaces

namespace  tcod
 The libtcod namespace.

Functions

TCOD_Error TCOD_context_new (const TCOD_ContextParams *params, TCOD_Context **out)
 Create a new context with the given parameters.
auto tcod::new_context (const TCOD_ContextParams &params, TCOD_Error &out_code) -> ContextPtr
 Initialize and return a new libtcod context.
auto tcod::new_context (const TCOD_ContextParams &params) -> ContextPtr
 Initialize and return a new libtcod context.

Detailed Description

Context initialization module.

Function Documentation

◆ TCOD_context_new()

TCOD_Error TCOD_context_new ( const TCOD_ContextParams * params,
TCOD_Context ** out )

Create a new context with the given parameters.

params is a non-NULL pointer to a TCOD_ContextParams struct. See its documentation for info on the parameters.

out is the output for the TCOD_Context, must not be NULL.

embed:rst:leading-asterisk 
.. versionadded:: 1.16