File: pck.h

package info (click to toggle)
rafkill 1.2.2-3.2
  • links: PTS
  • area: main
  • in suites: lenny, squeeze
  • size: 13,264 kB
  • ctags: 5,074
  • sloc: cpp: 13,508; makefile: 64; sh: 14
file content (23 lines) | stat: -rw-r--r-- 398 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef _pck_loader_h
#define _pck_loader_h

#include "defs.h"
#include <stdio.h>

class Bitmap;

class pckLoader{
public:
	pckLoader();
	Bitmap * load( const char * sf );

private:
	void set( Bitmap * fat, int & x, int & y, int col);
	Bitmap * load_pck( char * sf, int * shade, int max );
	int getnum( char *& buf );
	int filesize( FILE * fv );
	void get_colors( int & c1, int & c2 );

};

#endif