File: sphermap.h

package info (click to toggle)
kball 0.0.20041216-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 10,768 kB
  • ctags: 524
  • sloc: cpp: 4,274; makefile: 104; sh: 64; ansic: 43
file content (23 lines) | stat: -rw-r--r-- 877 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// -----------------------------------------------------------------------
// sphermap.h
// -----------------------------------------------------------------------
// Code to render a sphere 
// From Pixelate #11, article written by Martijn 'amarillion' van Iersel 
// -----------------------------------------------------------------------
// Modified by Kronoman to suit the needs of the game.
// -----------------------------------------------------------------------

#ifndef SPHERMAP_H

#include <allegro.h>

// awful hack to use fixed, seems that my compiler don't like fixed type data :P
#ifndef fixed
	#warning Awful hack in sphermap.h - please remember to check it =)
	#define fixed long int
#endif

void get_planet_rotation_matrix (MATRIX *, fixed , fixed , fixed );
void mapped_sphere_ex (BITMAP *target, int cx, int cy, int r, BITMAP *map, MATRIX *rotmat);

#endif