diff --git a/cpp/caca++.cpp b/cpp/caca++.cpp index e0e8ace..655aa07 100644 --- a/cpp/caca++.cpp +++ b/cpp/caca++.cpp @@ -1,3 +1,23 @@ +/* + * libcaca++ C++ bindings for libcaca + * Copyright (c) 2006 Jean-Yves Lamoureux + * 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); diff --git a/cpp/caca++.h b/cpp/caca++.h index 9f58fbc..dd438d5 100644 --- a/cpp/caca++.h +++ b/cpp/caca++.h @@ -1,3 +1,24 @@ +/* + * libcaca++ C++ bindings for libcaca + * Copyright (c) 2006 Jean-Yves Lamoureux + * 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 + * \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 #define _CACA_PP_H diff --git a/cpp/cpptest.cpp b/cpp/cpptest.cpp index 8c8ef16..1d7a2f6 100644 --- a/cpp/cpptest.cpp +++ b/cpp/cpptest.cpp @@ -1,3 +1,16 @@ +/* + * cpptest libcaca++ rendering test + * Copyright (c) 2006 Jean-Yves Lamoureux + * 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 #include diff --git a/cpp/cucul++.cpp b/cpp/cucul++.cpp index e919e9c..325289b 100644 --- a/cpp/cucul++.cpp +++ b/cpp/cucul++.cpp @@ -1,3 +1,21 @@ +/* + * libcucul++ C++ bindings for libcucul + * Copyright (c) 2006 Jean-Yves Lamoureux + * 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" Cucul::Cucul() diff --git a/cpp/cucul++.h b/cpp/cucul++.h index b4f4af2..ff8d1fd 100644 --- a/cpp/cucul++.h +++ b/cpp/cucul++.h @@ -1,3 +1,25 @@ +/* + * libcucul++ C++ bindings for libcucul + * Copyright (c) 2006 Jean-Yves Lamoureux + * 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 + * \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 #define _CUCUL_PP_H #include // BUFSIZ