Bläddra i källkod

* Added license in C++ files.

tags/v0.99.beta14
Jean-Yves Lamoureux jylam 19 år sedan
förälder
incheckning
fcd735ffc3
5 ändrade filer med 94 tillägg och 4 borttagningar
  1. +20
    -4
      cpp/caca++.cpp
  2. +21
    -0
      cpp/caca++.h
  3. +13
    -0
      cpp/cpptest.cpp
  4. +18
    -0
      cpp/cucul++.cpp
  5. +22
    -0
      cpp/cucul++.h

+ 20
- 4
cpp/caca++.cpp Visa fil

@@ -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);


+ 21
- 0
cpp/caca++.h Visa fil

@@ -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




+ 13
- 0
cpp/cpptest.cpp Visa fil

@@ -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>


+ 18
- 0
cpp/cucul++.cpp Visa fil

@@ -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()


+ 22
- 0
cpp/cucul++.h Visa fil

@@ -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


||||||
x
 
000:0
Laddar…
Avbryt
Spara