@@ -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" | #include "caca++.h" | ||||
@@ -10,19 +30,15 @@ Caca::Caca(Cucul *qq) | |||||
kk = caca_attach(qq->get_cucul_t()); | kk = caca_attach(qq->get_cucul_t()); | ||||
if(!kk) throw -1; | if(!kk) throw -1; | ||||
} | } | ||||
Caca::~Caca() | Caca::~Caca() | ||||
{ | { | ||||
caca_detach(kk); | caca_detach(kk); | ||||
} | } | ||||
void Caca::attach(Cucul *qq) | void Caca::attach(Cucul *qq) | ||||
{ | { | ||||
kk = caca_attach(qq->get_cucul_t()); | kk = caca_attach(qq->get_cucul_t()); | ||||
if(!kk) throw -1; | if(!kk) throw -1; | ||||
} | } | ||||
void Caca::detach () | void Caca::detach () | ||||
{ | { | ||||
caca_detach(kk); | caca_detach(kk); | ||||
@@ -1,3 +1,24 @@ | |||||
/* | |||||
* 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. | |||||
*/ | |||||
/** \file caca++.h | |||||
* \version \$Id$ | |||||
* \author Jean-Yves Lamoureux <jylam@lnxscene.org> | |||||
* \brief The \e libcaca++ public header. | |||||
* | |||||
* This header contains the public types and functions that applications | |||||
* using \e libcaca++ may use. | |||||
*/ | |||||
#ifndef _CACA_PP_H | #ifndef _CACA_PP_H | ||||
#define _CACA_PP_H | #define _CACA_PP_H | ||||
@@ -1,3 +1,16 @@ | |||||
/* | |||||
* cpptest libcaca++ rendering test | |||||
* Copyright (c) 2006 Jean-Yves Lamoureux <jylam@lnxscene.org> | |||||
* All Rights Reserved | |||||
* | |||||
* $Id$ | |||||
* | |||||
* This program 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. | |||||
*/ | |||||
#include <iostream> | #include <iostream> | ||||
#include <cucul++.h> | #include <cucul++.h> | ||||
@@ -1,3 +1,21 @@ | |||||
/* | |||||
* libcucul++ C++ bindings for libcucul | |||||
* 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 libcucul++ applications | |||||
* to initialise a drawing context. | |||||
*/ | |||||
#include "cucul++.h" | #include "cucul++.h" | ||||
Cucul::Cucul() | Cucul::Cucul() | ||||
@@ -1,3 +1,25 @@ | |||||
/* | |||||
* libcucul++ C++ bindings for libcucul | |||||
* 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. | |||||
*/ | |||||
/** \file cucul++.h | |||||
* \version \$Id$ | |||||
* \author Jean-Yves Lamoureux <jylam@lnxscene.org> | |||||
* \brief The \e libcucul++ public header. | |||||
* | |||||
* This header contains the public types and functions that applications | |||||
* using \e libcucul++ may use. | |||||
*/ | |||||
#ifndef _CUCUL_PP_H | #ifndef _CUCUL_PP_H | ||||
#define _CUCUL_PP_H | #define _CUCUL_PP_H | ||||
#include <stdio.h> // BUFSIZ | #include <stdio.h> // BUFSIZ | ||||