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.

Functions

TCOD_Error TCOD_context_new (const TCOD_ContextParams *params, TCOD_Context **out)
 Create a new context with the given parameters.
 

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