StarTrekV3_Linux  Version3
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros Pages
utils.cpp File Reference
#include <stdio.h>
#include <iostream>
#include <fstream>
#include <allegro5/allegro.h>
#include <allegro5/allegro_image.h>

Functions

int screenshot (const char *destination_path, const char *gamename)
 take a screenshot More...
 
void InitLog ()
 Initialize the log SYSTEM. More...
 
void Log (const std::string a_strLog)
 Log a message in the standard Logfile. More...
 

Variables

ALLEGRO_PATH * g_pLogPath = NULL
 
std::ofstream logfile
 

Function Documentation

void InitLog ( )

Initialize the log SYSTEM.

void Log ( const std::string  a_strLog)

Log a message in the standard Logfile.

Parameters
constchar * a_szLog Message to log
int screenshot ( const char *  destination_path,
const char *  gamename 
)

take a screenshot

Variable Documentation

ALLEGRO_PATH* g_pLogPath = NULL
std::ofstream logfile