File: README

package info (click to toggle)
libsdl-sge 020904-5
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 928 kB
  • ctags: 775
  • sloc: cpp: 8,049; makefile: 163; ansic: 44
file content (86 lines) | stat: -rw-r--r-- 2,350 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
SGE Examples
==================================================================================

Do 'make' to compile the examples (requires the libSGE.a and header files 
in ../ - if you're using libSGE.so, make sure ld can find it).

NOTE! If you specified 'C_ONLY = y' as build option you will not be able to 
compile any of these examples. However, you can do "make basics_c" to build 
a pure C version of basics.

Read ttf_readme for license details about the truetype font.

The file sfont.png is copyrighted by Karl Bartel (http://www.linux-games.com/),
please ask him before including it into any non-GPL project!

Press [ESC] or close the window to quit.


Basics
=======
Shows the basic drawing and text functions.

Blitting
=========
Shows simple buffering and blitting with alpha value. Reports fps - should be
slightly under 100 fps.

Fire
=====
Shows the block copy function and some palette functions.

Input
======
Demonstrates the use of sge_tt_input functions. Feel free to edit the
text. If you press [Return],[Enter] or [ESC] the text will be printed out on
the console.

InputDeluxe
============
sge_TextSprite is *much* more powerful than sge_tt_input... You can even make 
the text bounce around on the screen. Also shows border warping. 

Sprite
=======
Demonstrates the sprite class with timed movement and frames.

Sprite2
========
The sge_ssprite version of SDLs testsprite... Uses the sge_screen class.

Bitmapfont
===========
Some bitmapfont routines. 

Collision
==========
A simple test of the pixel collision routines.

Alpha
======
Demonstrates alpha surfaces and text. Very nice.

Rotate
=======
Rotates and scales an image. Press |SPACE] to switch between texture mapped,
normal and interpolated rendering. Press [s] to slow down or to speed up 
the rendering.

Sfont
======
Same as 'bitmapfont' but with Karl Bartel's SFonts. You must have the SDL_img 
library and compile SGE with the 'USE_IMG' build option to get this to work.

Blib
=====
Fun with triangles.

Speedtest
==========
Benchmarks some of SGEs routines. You can specify some options if you want:
Usage: ./speedtest [-bpp N] [-hw] [-fullscreen] 
-bpp N - The colordepth you want to run the program in (8/16/24/32).
-hw - Use hardware surfaces if possible, often used with '-fullscreen'.
-fullscreen - Run the program in fullscreen.

/Anders Lindstrm