File: GFX_bitmap.h

package info (click to toggle)
tecnoballz 0.91-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 8,016 kB
  • ctags: 3,067
  • sloc: cpp: 23,872; makefile: 311; sh: 197; ansic: 131
file content (64 lines) | stat: -rw-r--r-- 2,685 bytes parent folder | download | duplicates (2)
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
//*****************************************************************************
// copyright (c) 1991-2004 TLK Games all rights reserved
//-----------------------------------------------------------------------------
// file		: "GFX_bitmap.cc"
// created		: ?
// updates		: 2004-10-10
// function	: handle bitmap image
//-----------------------------------------------------------------------------
// This program is free software; you can redistribute it and/or modify it under
// the terms of the GNU General Public License as published by the Free Software
// Foundation; either version 2 of the License, or (at your option) any later
// version.
// 
// This program is distributed in the hope that it will be useful, but WITHOUT
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
// details.
//
// You should have received a copy of the GNU General Public License along with
// this program; if not, write to the Free Software Foundation, Inc., 59 Temple
// Place - Suite 330, Boston, MA 02111-1307, USA.
//*****************************************************************************
#ifndef __GFX_BITMAP__
#define __GFX_BITMAP__
//......................................................................
class GFX_bitmap ;
//......................................................................
#include "../include/mentatCode.h"
//......................................................................
class GFX_bitmap : public virtual mentatCode
{
	protected :
		SDL_Surface*		gfxSurface;
		char*				gfxAdresse;	//page memory address
		Sint32				gfxHauteur;	//height in lines
		Sint32				gfxLargeur;	//wight in pixels
		Sint32				gfx_nextLn;	//wight in bytes
		Sint32				gfxProfond;	//bytes peer pixel (always 1)
		Sint32				gfx_taille;	//page size in bytes

	public :
							GFX_bitmap() ;
							~GFX_bitmap() ;
		void				GFXInitial();
		void				GFXLiberat();
		Sint32				GFXlargeur();
		Sint32				GFX_nextLn();
		Sint32				GFXhauteur();
		char*				GFXadresse(Sint32 posX, Sint32 posY);
		char*				GFXadresse();
		Sint32				GFXrelatif(Sint32 posX, Sint32 posY);
		Sint32				GFX_modulo(Sint32 large);
		Sint32				GFXnouveau(Sint32 large, Sint32 haute, Sint32 depth);
		char*				duplicates();
		void				copyTampon();
		void				copyTampon(Sint32 srceX, Sint32 srceY, Sint32 destX,
										Sint32 destY, Sint32 large, Sint32 haute);
		void				copyBuffer(Sint32 srceX, Sint32 srceY, Sint32 destX,
										Sint32 destY, Sint32 large, Sint32 haute);
		void				buffer_clr(Sint32 pixel = 0);

} ;
#endif
//......................................................................