- Timestamp:
- Sep 27, 2008, 4:29:11 PM (14 years ago)
- Location:
- libcaca/trunk
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/csharp/AssemblyInfo.cs
r2058 r2824 17 17 using System.Runtime.CompilerServices; 18 18 19 [assembly: AssemblyTitle("C ucul")]20 [assembly: AssemblyDescription("libc ucul.NET bindings")]19 [assembly: AssemblyTitle("Caca")] 20 [assembly: AssemblyDescription("libcaca .NET bindings")] 21 21 [assembly: AssemblyCopyright("(c) 2006 Jean-Yves Lamoureux <jylam@lnxscene.org")] -
libcaca/trunk/cxx/caca++.pc.in
r2437 r2824 7 7 Description: Colour ASCII-Art library C++ bindings 8 8 Version: @VERSION@ 9 Requires: cucul++ = @VERSION@9 Requires: 10 10 Conflicts: 11 Libs: -L${libdir} -lcaca++ -lcucul++11 Libs: -L${libdir} -lcaca++ 12 12 Cflags: -I${includedir} -
libcaca/trunk/cxx/cxxtest.cpp
r2822 r2824 49 49 } 50 50 catch (int e) { 51 cerr << "Error while initializing cucul(" << e << ")" << endl;51 cerr << "Error while creating canvas (" << e << ")" << endl; 52 52 return -1; 53 53 } … … 57 57 } 58 58 catch(int e) { 59 cerr << "Error while attaching c ucul to caca(" << e << ")" << endl;59 cerr << "Error while attaching canvas to display (" << e << ")" << endl; 60 60 return -1; 61 61 } -
libcaca/trunk/doc/doxygen.cfg.in
r2243 r2824 486 486 INPUT = @top_srcdir@ \ 487 487 @top_srcdir@/doc \ 488 @top_srcdir@/cucul \489 488 @top_srcdir@/caca \ 490 489 @top_srcdir@/ruby … … 506 505 FILE_PATTERNS = *.dox \ 507 506 *.c \ 508 cucul.h \509 507 caca.h \ 510 508 AUTHORS \ -
libcaca/trunk/doc/libcaca.dox
r2243 r2824 25 25 \section devel Developer's documentation 26 26 27 \e libcaca relies on a low-level, device independent library, called 28 \e libcucul. \e libcucul can be used alone as a simple ASCII and/or 29 Unicode compositing canvas. 27 The complete \e libcaca programming interface is 28 available from the following header: 30 29 31 The complete \e libcucul and \e libcaca programming interface is32 available from the following headers:33 34 - cucul.h35 30 - caca.h 36 31 -
libcaca/trunk/doc/migrating.dox
r2062 r2824 8 8 \section foo1 Overview 9 9 10 The most important change s in the 1.0 API of \e libcaca arethe11 \e libcaca / \e libcucul split and the object-oriented design. See these12 two examples for a rough idea ofwhat changed:10 The most important change in the 1.0 API of \e libcaca is the 11 object-oriented design. See these two examples for a rough idea of 12 what changed: 13 13 14 14 <table border="0"><tr><td valign="top"> … … 40 40 </td><td> 41 41 \code 42 #include <cucul.h>43 42 #include <caca.h> 44 43 … … 47 46 { 48 47 /* Initialise libcaca */ 49 c ucul_canvas_t *cv;48 caca_canvas_t *cv; 50 49 caca_display_t *dp; 51 50 dp = caca_create_display(cv); … … 54 53 caca_set_display_title(dp, "Window"); 55 54 /* Choose drawing colours */ 56 c ucul_set_color_ansi(cv, CUCUL_BLACK,57 CUCUL_WHITE);55 caca_set_color_ansi(cv, CACA_BLACK, 56 CACA_WHITE); 58 57 /* Draw a string at (0, 0) */ 59 c ucul_put_str(cv, 0, 0, "Hello world!");58 caca_put_str(cv, 0, 0, "Hello world!"); 60 59 /* Refresh display */ 61 60 caca_refresh_display(); … … 75 74 - Functions now take an object handle as their first argument. 76 75 - All input/output functions start with \b caca_ and all 77 drawing and text handling functions start with \b c ucul_ .76 drawing and text handling functions start with \b caca_ . 78 77 79 78 \section foo2 Migration strategy … … 111 110 \subsection bar1 Basic functions 112 111 113 - \b caca_init(): use c ucul_create_canvas() to create a \e libcuculcanvas,112 - \b caca_init(): use caca_create_canvas() to create a \e libcaca canvas, 114 113 followed by caca_create_display() to attach a \e libcaca display to it. 115 114 - \b caca_set_delay(): use caca_set_display_time(). 116 115 - \b caca_get_feature(): deprecated. 117 - \b caca_set_feature(): deprecated, see c ucul_set_dither_antialias(),118 c ucul_set_dither_color() and cucul_set_dither_mode() instead.119 - \b caca_get_feature_name(): deprecated, see c ucul_get_dither_mode_list(),120 c ucul_get_dither_antialias_list() and cucul_get_dither_color_list()116 - \b caca_set_feature(): deprecated, see caca_set_dither_antialias(), 117 caca_set_dither_color() and caca_set_dither_mode() instead. 118 - \b caca_get_feature_name(): deprecated, see caca_get_dither_mode_list(), 119 caca_get_dither_antialias_list() and caca_get_dither_color_list() 121 120 instead. 122 121 - \b caca_get_rendertime(): use caca_get_display_time(). 123 - \b caca_get_width(): use c ucul_get_canvas_width().124 - \b caca_get_height(): use c ucul_get_canvas_height().122 - \b caca_get_width(): use caca_get_canvas_width(). 123 - \b caca_get_height(): use caca_get_canvas_height(). 125 124 - \b caca_set_window_title(): use caca_set_display_title(). 126 125 - \b caca_get_window_width(): use caca_get_display_width(). … … 128 127 - \b caca_refresh(): use caca_refresh_display(). 129 128 - \b caca_end(): use caca_free_display() to detach the \e libcaca display, 130 followed by c ucul_free_canvas() to free the underlying \e libcuculcanvas.129 followed by caca_free_canvas() to free the underlying \e libcaca canvas. 131 130 132 131 \subsection bar2 Event handling … … 141 140 \subsection bar3 Character printing 142 141 143 - \b caca_set_color(): use c ucul_set_color_ansi() or cucul_set_color_argb().144 - \b caca_get_fg_color(): use c ucul_get_attr().145 - \b caca_get_bg_color(): use c ucul_get_attr().142 - \b caca_set_color(): use caca_set_color_ansi() or caca_set_color_argb(). 143 - \b caca_get_fg_color(): use caca_get_attr(). 144 - \b caca_get_bg_color(): use caca_get_attr(). 146 145 - \b caca_get_color_name(): this function is now deprecated due to major 147 146 uselessness. 148 - \b caca_putchar(): use c ucul_put_char().149 - \b caca_putstr(): use c ucul_put_str().150 - \b caca_printf(): use c ucul_printf().151 - \b caca_clear(): use c ucul_clear_canvas().147 - \b caca_putchar(): use caca_put_char(). 148 - \b caca_putstr(): use caca_put_str(). 149 - \b caca_printf(): use caca_printf(). 150 - \b caca_clear(): use caca_clear_canvas(). 152 151 153 152 \subsection bar4 Primitives drawing … … 156 155 fact that they now act on a given canvas. 157 156 158 - \b caca_draw_line(): use c ucul_draw_line().159 - \b caca_draw_polyline(): use c ucul_draw_polyline().160 - \b caca_draw_thin_line(): use c ucul_draw_thin_line().161 - \b caca_draw_thin_polyline(): use c ucul_draw_thin_polyline().162 163 - \b caca_draw_circle(): use c ucul_draw_circle().164 - \b caca_draw_ellipse(): use c ucul_draw_ellipse().165 - \b caca_draw_thin_ellipse(): use c ucul_draw_thin_ellipse().166 - \b caca_fill_ellipse(): use c ucul_fill_ellipse().167 168 - \b caca_draw_box(): use c ucul_draw_box().169 - \b caca_draw_thin_box(): use c ucul_draw_thin_box() or cucul_draw_cp437_box().170 - \b caca_fill_box(): use c ucul_fill_box().171 172 - \b caca_draw_triangle(): use c ucul_draw_triangle().173 - \b caca_draw_thin_triangle(): use c ucul_draw_thin_triangle().174 - \b caca_fill_triangle(): use c ucul_fill_triangle().157 - \b caca_draw_line(): use caca_draw_line(). 158 - \b caca_draw_polyline(): use caca_draw_polyline(). 159 - \b caca_draw_thin_line(): use caca_draw_thin_line(). 160 - \b caca_draw_thin_polyline(): use caca_draw_thin_polyline(). 161 162 - \b caca_draw_circle(): use caca_draw_circle(). 163 - \b caca_draw_ellipse(): use caca_draw_ellipse(). 164 - \b caca_draw_thin_ellipse(): use caca_draw_thin_ellipse(). 165 - \b caca_fill_ellipse(): use caca_fill_ellipse(). 166 167 - \b caca_draw_box(): use caca_draw_box(). 168 - \b caca_draw_thin_box(): use caca_draw_thin_box() or caca_draw_cp437_box(). 169 - \b caca_fill_box(): use caca_fill_box(). 170 171 - \b caca_draw_triangle(): use caca_draw_triangle(). 172 - \b caca_draw_thin_triangle(): use caca_draw_thin_triangle(). 173 - \b caca_fill_triangle(): use caca_fill_triangle(). 175 174 176 175 \subsection bar5 Mathematical functions 177 176 178 - \b caca_rand(): use c ucul_rand(). The second argument is different, make177 - \b caca_rand(): use caca_rand(). The second argument is different, make 179 178 sure you take that into account. 180 179 - \b caca_sqrt(): this function is now deprecated, use your system's … … 186 185 completely deprecated. 187 186 188 - \b caca_load_sprite(): use c ucul_import_file().189 - \b caca_get_sprite_frames(): use c ucul_get_frame_count().190 - \b caca_get_sprite_width(): use c ucul_get_canvas_width().191 - \b caca_get_sprite_height(): use c ucul_get_canvas_height().192 - \b caca_get_sprite_dx(): use c ucul_get_canvas_handle_x().193 - \b caca_get_sprite_dy(): use c ucul_get_canvas_handle_y().194 - \b caca_draw_sprite(): use c ucul_set_frame() and cucul_blit().195 - \b caca_free_sprite(): use c ucul_free_canvas().187 - \b caca_load_sprite(): use caca_import_file(). 188 - \b caca_get_sprite_frames(): use caca_get_frame_count(). 189 - \b caca_get_sprite_width(): use caca_get_canvas_width(). 190 - \b caca_get_sprite_height(): use caca_get_canvas_height(). 191 - \b caca_get_sprite_dx(): use caca_get_canvas_handle_x(). 192 - \b caca_get_sprite_dy(): use caca_get_canvas_handle_y(). 193 - \b caca_draw_sprite(): use caca_set_frame() and caca_blit(). 194 - \b caca_free_sprite(): use caca_free_canvas(). 196 195 197 196 \subsection bar7 Bitmap handling … … 200 199 store any pixels, they just have information on how bitmaps will be dithered. 201 200 202 - \b caca_create_bitmap(): use c ucul_create_dither().203 - \b caca_set_bitmap_palette(): use c ucul_set_dither_palette().204 - \b caca_draw_bitmap(): use c ucul_dither_bitmap().205 - \b caca_free_bitmap(): use c ucul_free_dither().201 - \b caca_create_bitmap(): use caca_create_dither(). 202 - \b caca_set_bitmap_palette(): use caca_set_dither_palette(). 203 - \b caca_draw_bitmap(): use caca_dither_bitmap(). 204 - \b caca_free_bitmap(): use caca_free_dither(). 206 205 207 206 \section foo4 Compilation -
libcaca/trunk/doc/tutorial.dox
r2189 r2824 1 1 /* $Id$ */ 2 2 3 /** \page libcaca-tutorial A libcucul and libcaca tutorial 4 5 Before writing your first libcaca application, you need to know the difference between libcucul and libcaca : 6 - libcucul is the text rendering library. It will do all the work you actually need. From imports (text, ANSI, caca internal format, all of this supporting n-bytes unicode), to exports (sames formats, adding SVG, PostScript, TGA, HTML (both 3 and 4), IRC), it'll cover all your needs. 7 - libcaca handle everything that can be hardware related. It includes display (RAW, X11, OpenGL, Windows (native console), DOS (conio), ncurses, slang, text VGA (IMB-Compatible)), keyboard (same drivers but RAW), mouse (same drivers but RAW and VGA), time and resize events (on windowed drivers). 8 9 So, you can write a libcucul only program, but you <b>can't</b> write a libcaca only program, it'll be nonsense. Period. 10 3 /** \page libcaca-tutorial A libcaca tutorial 11 4 12 5 First, a working program, very simple, to check you can compile and run it: … … 14 7 \code 15 8 16 #include <c ucul.h>9 #include <caca.h> 17 10 #include <caca.h> 18 11 … … 20 13 { 21 14 /* Initialise libcaca */ 22 c ucul_canvas_t *cv; caca_display_t *dp; caca_event_t ev;15 caca_canvas_t *cv; caca_display_t *dp; caca_event_t ev; 23 16 dp = caca_create_display(NULL); 24 17 if(!dp) return 1; … … 27 20 caca_set_display_title(dp, "Hello!"); 28 21 /* Choose drawing colours */ 29 c ucul_set_color_ansi(cv, CUCUL_BLACK, CUCUL_WHITE);22 caca_set_color_ansi(cv, CACA_BLACK, CACA_WHITE); 30 23 /* Draw a string at coordinates (0, 0) */ 31 c ucul_put_str(cv, 0, 0, "This is a message");24 caca_put_str(cv, 0, 0, "This is a message"); 32 25 /* Refresh display */ 33 26 caca_refresh_display(dp); … … 44 37 45 38 What does it do ? (we skip variable definitions, guessing you have a brain) : 46 - Create a c ucul canvas. A canvas is where everything happens. Writing characters, sprites, strings, images, everything. It is mandatory and is the reason of libcuculs' beeing. Size is there a width of 0 pixels, and a height of 0 pixels. It'll be resized according to contents you put in it.39 - Create a caca canvas. A canvas is where everything happens. Writing characters, sprites, strings, images, everything. It is mandatory and is the reason of libcacas' beeing. Size is there a width of 0 pixels, and a height of 0 pixels. It'll be resized according to contents you put in it. 47 40 48 41 - Create a caca display. This is basically the window. Physically it can be a window (most of the displays), a console (ncurses, slang) or a real display (VGA). … … 50 43 - Set the window name of our display (only available in windowed displays, does nothing otherwise). (so this is libcaca related) 51 44 52 - Set current colors to black background, and white foreground of our canvas (so this is libc uculrelated)45 - Set current colors to black background, and white foreground of our canvas (so this is libcaca related) 53 46 54 - Put a string "This is a message" with current colors in our libc uculcanvas.47 - Put a string "This is a message" with current colors in our libcaca canvas. 55 48 56 49 - Refresh our caca display, whish was firstly attached to our canvas … … 65 58 You can then compile this code under UNIX-like systems with following command : (you'll need pkg-config and gcc) 66 59 \code 67 gcc `pkg-config --libs --cflags c ucul caca` example.c -o example60 gcc `pkg-config --libs --cflags caca` example.c -o example 68 61 \endcode 69 62 -
libcaca/trunk/examples/.gitignore
r2138 r2824 1 1 blit 2 canvas 2 3 colors 3 cucul4 4 demo 5 5 demo0 -
libcaca/trunk/msvc/cacademo.vcproj
r2192 r2824 41 41 Name="VCCLCompilerTool" 42 42 Optimization="0" 43 AdditionalIncludeDirectories="..\src;..\msvc;..\caca ;..\cucul"43 AdditionalIncludeDirectories="..\src;..\msvc;..\caca" 44 44 PreprocessorDefinitions="LIBCACA=1" 45 45 MinimalRebuild="true" … … 125 125 InlineFunctionExpansion="1" 126 126 OmitFramePointers="true" 127 AdditionalIncludeDirectories="..\src;..\msvc;..\caca ;..\cucul"127 AdditionalIncludeDirectories="..\src;..\msvc;..\caca" 128 128 PreprocessorDefinitions="LIBCACA=1" 129 129 StringPooling="true" -
libcaca/trunk/msvc/cacafire.vcproj
r2192 r2824 41 41 Name="VCCLCompilerTool" 42 42 Optimization="0" 43 AdditionalIncludeDirectories="..\src;..\msvc;..\caca ;..\cucul"43 AdditionalIncludeDirectories="..\src;..\msvc;..\caca" 44 44 PreprocessorDefinitions="LIBCACA=1" 45 45 MinimalRebuild="true" … … 125 125 InlineFunctionExpansion="1" 126 126 OmitFramePointers="true" 127 AdditionalIncludeDirectories="..\src;..\msvc;..\caca ;..\cucul"127 AdditionalIncludeDirectories="..\src;..\msvc;..\caca" 128 128 PreprocessorDefinitions="LIBCACA=1" 129 129 StringPooling="true" -
libcaca/trunk/msvc/cacaview.vcproj
r775 r2824 41 41 Name="VCCLCompilerTool" 42 42 Optimization="0" 43 AdditionalIncludeDirectories="..\src;..\msvc;..\caca; ..\cucul;"C:\Program Files\Microsoft Platform SDK\Include""43 AdditionalIncludeDirectories="..\src;..\msvc;..\caca;"C:\Program Files\Microsoft Platform SDK\Include"" 44 44 PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE" 45 45 MinimalRebuild="true" -
libcaca/trunk/msvc/libcaca.sln
r2070 r2824 3 3 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cacafire", "cacafire.vcproj", "{F25D1237-9ED8-4343-B958-308C95FE392F}" 4 4 ProjectSection(ProjectDependencies) = postProject 5 {44303C1F-BB6A-4C4B-BB19-7D475348F151} = {44303C1F-BB6A-4C4B-BB19-7D475348F151}6 5 {8951ECB0-7CFE-41AB-A426-98D7C441BEA4} = {8951ECB0-7CFE-41AB-A426-98D7C441BEA4} 7 6 EndProjectSection 8 7 EndProject 9 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcucul", "libcucul.vcproj", "{44303C1F-BB6A-4C4B-BB19-7D475348F151}"10 EndProject11 8 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcaca", "libcaca.vcproj", "{8951ECB0-7CFE-41AB-A426-98D7C441BEA4}" 12 ProjectSection(ProjectDependencies) = postProject13 {44303C1F-BB6A-4C4B-BB19-7D475348F151} = {44303C1F-BB6A-4C4B-BB19-7D475348F151}14 EndProjectSection15 9 EndProject 16 10 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cacademo", "cacademo.vcproj", "{EE082122-5ECD-4DB4-93C7-145392074F8B}" 17 11 ProjectSection(ProjectDependencies) = postProject 18 12 {8951ECB0-7CFE-41AB-A426-98D7C441BEA4} = {8951ECB0-7CFE-41AB-A426-98D7C441BEA4} 19 {44303C1F-BB6A-4C4B-BB19-7D475348F151} = {44303C1F-BB6A-4C4B-BB19-7D475348F151}20 EndProjectSection21 EndProject22 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "cucul-sharp", "cucul-sharp.csproj", "{C05C1521-F4E2-48D8-BD83-786EF345A887}"23 ProjectSection(ProjectDependencies) = postProject24 {44303C1F-BB6A-4C4B-BB19-7D475348F151} = {44303C1F-BB6A-4C4B-BB19-7D475348F151}25 13 EndProjectSection 26 14 EndProject … … 32 20 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "test-csharp", "test-csharp.csproj", "{6EB34142-45E0-4BF3-8F75-81F4F604EAAA}" 33 21 EndProject 34 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcucul++", "libcucul++.vcproj", "{9A5CF69C-8C9D-4186-B68D-ED73633A9B67}"35 ProjectSection(ProjectDependencies) = postProject36 {44303C1F-BB6A-4C4B-BB19-7D475348F151} = {44303C1F-BB6A-4C4B-BB19-7D475348F151}37 EndProjectSection38 EndProject39 22 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcaca++", "libcaca++.vcproj", "{5AAFB727-094F-4104-A765-A94B32497C7D}" 40 23 ProjectSection(ProjectDependencies) = postProject 41 24 {8951ECB0-7CFE-41AB-A426-98D7C441BEA4} = {8951ECB0-7CFE-41AB-A426-98D7C441BEA4} 42 {9A5CF69C-8C9D-4186-B68D-ED73633A9B67} = {9A5CF69C-8C9D-4186-B68D-ED73633A9B67}43 25 EndProjectSection 44 26 EndProject … … 46 28 ProjectSection(ProjectDependencies) = postProject 47 29 {5AAFB727-094F-4104-A765-A94B32497C7D} = {5AAFB727-094F-4104-A765-A94B32497C7D} 48 {9A5CF69C-8C9D-4186-B68D-ED73633A9B67} = {9A5CF69C-8C9D-4186-B68D-ED73633A9B67}49 30 EndProjectSection 50 31 EndProject … … 69 50 {F25D1237-9ED8-4343-B958-308C95FE392F}.Release|Win32.ActiveCfg = Release|Win32 70 51 {F25D1237-9ED8-4343-B958-308C95FE392F}.Release|Win32.Build.0 = Release|Win32 71 {44303C1F-BB6A-4C4B-BB19-7D475348F151}.Debug|Any CPU.ActiveCfg = Debug|Win3272 {44303C1F-BB6A-4C4B-BB19-7D475348F151}.Debug|Mixed Platforms.ActiveCfg = Debug|Win3273 {44303C1F-BB6A-4C4B-BB19-7D475348F151}.Debug|Mixed Platforms.Build.0 = Debug|Win3274 {44303C1F-BB6A-4C4B-BB19-7D475348F151}.Debug|Win32.ActiveCfg = Debug|Win3275 {44303C1F-BB6A-4C4B-BB19-7D475348F151}.Debug|Win32.Build.0 = Debug|Win3276 {44303C1F-BB6A-4C4B-BB19-7D475348F151}.Release|Any CPU.ActiveCfg = Release|Win3277 {44303C1F-BB6A-4C4B-BB19-7D475348F151}.Release|Mixed Platforms.ActiveCfg = Release|Win3278 {44303C1F-BB6A-4C4B-BB19-7D475348F151}.Release|Mixed Platforms.Build.0 = Release|Win3279 {44303C1F-BB6A-4C4B-BB19-7D475348F151}.Release|Win32.ActiveCfg = Release|Win3280 {44303C1F-BB6A-4C4B-BB19-7D475348F151}.Release|Win32.Build.0 = Release|Win3281 52 {8951ECB0-7CFE-41AB-A426-98D7C441BEA4}.Debug|Any CPU.ActiveCfg = Debug|Win32 82 53 {8951ECB0-7CFE-41AB-A426-98D7C441BEA4}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 … … 129 100 {6EB34142-45E0-4BF3-8F75-81F4F604EAAA}.Release|Mixed Platforms.Build.0 = Release|Any CPU 130 101 {6EB34142-45E0-4BF3-8F75-81F4F604EAAA}.Release|Win32.ActiveCfg = Release|Any CPU 131 {9A5CF69C-8C9D-4186-B68D-ED73633A9B67}.Debug|Any CPU.ActiveCfg = Debug|Win32132 {9A5CF69C-8C9D-4186-B68D-ED73633A9B67}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32133 {9A5CF69C-8C9D-4186-B68D-ED73633A9B67}.Debug|Mixed Platforms.Build.0 = Debug|Win32134 {9A5CF69C-8C9D-4186-B68D-ED73633A9B67}.Debug|Win32.ActiveCfg = Debug|Win32135 {9A5CF69C-8C9D-4186-B68D-ED73633A9B67}.Debug|Win32.Build.0 = Debug|Win32136 {9A5CF69C-8C9D-4186-B68D-ED73633A9B67}.Release|Any CPU.ActiveCfg = Release|Win32137 {9A5CF69C-8C9D-4186-B68D-ED73633A9B67}.Release|Mixed Platforms.ActiveCfg = Release|Win32138 {9A5CF69C-8C9D-4186-B68D-ED73633A9B67}.Release|Mixed Platforms.Build.0 = Release|Win32139 {9A5CF69C-8C9D-4186-B68D-ED73633A9B67}.Release|Win32.ActiveCfg = Release|Win32140 {9A5CF69C-8C9D-4186-B68D-ED73633A9B67}.Release|Win32.Build.0 = Release|Win32141 102 {5AAFB727-094F-4104-A765-A94B32497C7D}.Debug|Any CPU.ActiveCfg = Debug|Win32 142 103 {5AAFB727-094F-4104-A765-A94B32497C7D}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32 -
libcaca/trunk/msvc/test-csharp.csproj
r2084 r2824 45 45 <Name>caca-sharp</Name> 46 46 </ProjectReference> 47 <ProjectReference Include="cucul-sharp.csproj">48 <Project>{C05C1521-F4E2-48D8-BD83-786EF345A887}</Project>49 <Name>cucul-sharp</Name>50 </ProjectReference>51 47 </ItemGroup> 52 48 <ItemGroup> -
libcaca/trunk/msvc/test-cxx.vcproj
r2070 r2824 41 41 Name="VCCLCompilerTool" 42 42 Optimization="0" 43 AdditionalIncludeDirectories="..\msvc;..\cxx;..\c ucul;..\caca"43 AdditionalIncludeDirectories="..\msvc;..\cxx;..\caca" 44 44 PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE" 45 45 MinimalRebuild="true" … … 117 117 <Tool 118 118 Name="VCCLCompilerTool" 119 AdditionalIncludeDirectories="..\msvc;..\cxx;..\c ucul;..\caca"119 AdditionalIncludeDirectories="..\msvc;..\cxx;..\caca" 120 120 PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE" 121 121 RuntimeLibrary="2" -
libcaca/trunk/python/snake.py
r2060 r2824 79 79 def draw(self): 80 80 global cv 81 lcaca.c ucul_set_color_ansi(cv, 0x05, 0x00)81 lcaca.caca_set_color_ansi(cv, 0x05, 0x00) 82 82 83 83 for p in self.body: 84 lcaca.c ucul_put_char(cv, p[0], p[1], ord('o'))85 lcaca.c ucul_set_color_ansi(cv, 0x02, 0x00)86 lcaca.c ucul_put_char(cv, self.head[0], self.head[1], ord('@'))84 lcaca.caca_put_char(cv, p[0], p[1], ord('o')) 85 lcaca.caca_set_color_ansi(cv, 0x02, 0x00) 86 lcaca.caca_put_char(cv, self.head[0], self.head[1], ord('@')) 87 87 lcaca.caca_refresh_display(dp) 88 88 … … 102 102 def draw(self): 103 103 global cv 104 lcaca.c ucul_set_color_ansi(cv, 0x03, 0x00)105 lcaca.c ucul_put_char(cv, self.x, self.y, ord(str(self.value)))104 lcaca.caca_set_color_ansi(cv, 0x03, 0x00) 105 lcaca.caca_put_char(cv, self.x, self.y, ord(str(self.value))) 106 106 lcaca.caca_refresh_display(dp) 107 107 108 108 def draw_border(): 109 lcaca.c ucul_set_color_ansi(cv, 0x04, 0x00)110 lcaca.c ucul_draw_box(cv,109 lcaca.caca_set_color_ansi(cv, 0x04, 0x00) 110 lcaca.caca_draw_box(cv, 111 111 0, 112 112 0, … … 117 117 event = ev() 118 118 lcaca = C.cdll.LoadLibrary('libcaca.so.0') 119 cv = lcaca.c ucul_create_canvas(CANVAS_WIDTH, CANVAS_HEIGHT)119 cv = lcaca.caca_create_canvas(CANVAS_WIDTH, CANVAS_HEIGHT) 120 120 dp = lcaca.caca_create_display(cv) 121 121 lcaca.caca_set_display_title(dp, "snake.py - playing with ctypes and libcaca") … … 161 161 s.grow() 162 162 163 lcaca.c ucul_clear_canvas(cv)163 lcaca.caca_clear_canvas(cv) 164 164 draw_border() 165 165 s.draw() -
libcaca/trunk/ruby/ruby.dox
r2033 r2824 11 11 For the list of methods and some sample code, read: 12 12 13 \subpage libcucul-ruby-api14 15 13 \subpage libcaca-ruby-api 16 14 -
libcaca/trunk/tests/.gitignore
r2821 r2824 1 1 simple 2 cucul-test 3 cucul-test 2 caca-test -
libcaca/trunk/tests/caca-test.cpp
r2821 r2824 1 1 /* 2 * c ucul-test testsuite program for libcucul2 * caca-test testsuite program for libcaca 3 3 * Copyright (c) 2008 Sam Hocevar <sam@zoy.org> 4 4 * All Rights Reserved
Note: See TracChangeset
for help on using the changeset viewer.