Ignore:
Timestamp:
Nov 25, 2007, 9:23:03 PM (12 years ago)
Author:
Sam Hocevar
Message:
  • Added MSVC project files for the C++ bindings and the C++ test.
Location:
libcaca/trunk/cxx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/cxx/caca++.h

    r2050 r2070  
    2929#include <cucul++.h>
    3030
    31 class Event
     31#if !defined(_DOXYGEN_SKIP_ME)
     32#   undef __class
     33#   if defined(_WIN32) && defined(__LIBCACA_PP__)
     34#       define __class class __declspec(dllexport)
     35#   else
     36#       define __class class
     37#   endif
     38#endif
     39
     40__class Event
    3241{
    3342    friend class Caca;
     
    5160};
    5261
    53 class Caca
     62__class Caca
    5463{
    5564 public:
  • libcaca/trunk/cxx/cucul++.h

    r1959 r2070  
    2727#include <cucul.h>
    2828
     29#if !defined(_DOXYGEN_SKIP_ME)
     30#   undef __class
     31#   if defined(_WIN32) && defined(__LIBCUCUL_PP__)
     32#       define __class class __declspec(dllexport)
     33#   else
     34#       define __class class
     35#   endif
     36#endif
     37
    2938class Cucul;
    3039
    31 class Charset
     40__class Charset
    3241{
    3342 public:
     
    3948
    4049/* Ugly, I know */
    41 class Font
     50__class Font
    4251{
    4352 public:
     
    5564};
    5665
    57 class Dither
     66__class Dither
    5867{
    5968 public:
     
    8190};
    8291
    83 class Cucul
     92__class Cucul
    8493{
    8594    friend class Caca;
  • libcaca/trunk/cxx/cxxtest.cpp

    r2050 r2070  
    7676    kk->setDisplayTime(20000);
    7777
    78     while(!kk->getEvent(Event::CACA_EVENT_KEY_PRESS, NULL, 0)) {
    79 
     78    while(!kk->getEvent(Event::CACA_EVENT_KEY_PRESS, NULL, 0))
     79    {
    8080
    8181        /* In case of resize ...*/
     
    8484        if((y + pig->getHeight())-1 >= qq->getHeight() || y < 0 )
    8585            y = 0;
    86 
    87 
    88 
    8986
    9087        qq->Clear();
Note: See TracChangeset for help on using the changeset viewer.