Переглянути джерело

* Added license in C++ files.

tags/v0.99.beta14
Jean-Yves Lamoureux jylam 18 роки тому
джерело
коміт
fcd735ffc3
5 змінених файлів з 94 додано та 4 видалено
  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 Переглянути файл

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


+ 21
- 0
cpp/caca++.h Переглянути файл

@@ -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
#define _CACA_PP_H



+ 13
- 0
cpp/cpptest.cpp Переглянути файл

@@ -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 <cucul++.h>


+ 18
- 0
cpp/cucul++.cpp Переглянути файл

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

Cucul::Cucul()


+ 22
- 0
cpp/cucul++.h Переглянути файл

@@ -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
#define _CUCUL_PP_H
#include <stdio.h> // BUFSIZ


Завантаження…
Відмінити
Зберегти