LI2 Roguelite
Functions
window.c File Reference
#include <stdlib.h>
#include <ncurses.h>
#include <time.h>
#include "window.h"
Include dependency graph for window.c:

Functions

void initColor ()
 Initializes the color pairs. More...
 
WINDOW * initWindow (int *ncols, int *nrows)
 Initializes the ncurses window. More...
 

Function Documentation

◆ initColor()

void initColor ( )

Initializes the color pairs.

Enables color and initializes the color pairs for the game.

Returns
void

◆ initWindow()

WINDOW* initWindow ( int *  ncols,
int *  nrows 
)

Initializes the ncurses window.

Initializes the ncurses window with game settings, and sets up the color pairs, also saves the window size for later use.

Parameters
ncolspointer to the number of columns
nrowspointer to the number of rows
Returns
WINDOW* pointer to the ncurses window