libtcod
Loading...
Searching...
No Matches
console.hpp File Reference

C++ console module. More...

#include <stdexcept>
#include <string>
#include <utility>
#include "color.hpp"
#include "console.h"
#include "console_drawing.h"
#include "console_etc.h"
#include "console_init.h"
#include "console_printing.h"
#include "console_rexpaint.h"
#include "console_types.h"
#include "image.hpp"

Go to the source code of this file.

Classes

class  TCODConsole
 Classic turn by turn game loop:TCODConsole::initRoot(80,50,"my game",false); while (!endGame && !TCODConsole::isWindowClosed()) { ... draw on TCODConsole::root TCODConsole::flush(); TCOD_key_t key; TCODConsole::waitForEvent(TCOD_EVENT_KEY_PRESS,&key,NULL,true); ... update world, using key }. More...

Namespaces

namespace  tcod
 The libtcod namespace.

Functions

void tcod::blit (TCOD_Console &dest, const TCOD_Console &source, const std::array< int, 2 > &dest_xy={0, 0}, std::array< int, 4 > source_rect={0, 0, 0, 0}, float foreground_alpha=1.0f, float background_alpha=1.0f)
 Blit a region of tiles from one console to another.

Detailed Description

C++ console module.