|
|
@@ -1,3 +1,23 @@ |
|
|
|
/* |
|
|
|
* libcaca++ C++ bindings for libcaca |
|
|
|
* Copyright (c) 2006 Jean-Yves Lamoureux <jylam@lnxscene.org> |
|
|
|
* All Rights Reserved |
|
|
|
* |
|
|
|
* $Id$ |
|
|
|
* |
|
|
|
* This library is free software; you can redistribute it and/or |
|
|
|
* modify it under the terms of the Do What The Fuck You Want To |
|
|
|
* Public License, Version 2, as published by Sam Hocevar. See |
|
|
|
* http://sam.zoy.org/wtfpl/COPYING for more details. |
|
|
|
*/ |
|
|
|
|
|
|
|
/* |
|
|
|
* This file contains the main functions used by \e libcaca++ applications to |
|
|
|
* initialise the library, get the screen properties, set the framerate and |
|
|
|
* so on. |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
#include "caca++.h" |
|
|
|
|
|
|
|
|
|
|
@@ -10,19 +30,15 @@ Caca::Caca(Cucul *qq) |
|
|
|
kk = caca_attach(qq->get_cucul_t()); |
|
|
|
if(!kk) throw -1; |
|
|
|
} |
|
|
|
|
|
|
|
Caca::~Caca() |
|
|
|
{ |
|
|
|
caca_detach(kk); |
|
|
|
} |
|
|
|
|
|
|
|
void Caca::attach(Cucul *qq) |
|
|
|
{ |
|
|
|
kk = caca_attach(qq->get_cucul_t()); |
|
|
|
if(!kk) throw -1; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void Caca::detach () |
|
|
|
{ |
|
|
|
caca_detach(kk); |
|
|
|