/[LeafOK_CVS]/pvpgn-1.7.4/src/bniutils/bni.h
ViewVC logotype

Annotation of /pvpgn-1.7.4/src/bniutils/bni.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Tue Jun 6 03:41:37 2006 UTC (19 years, 9 months ago) by sysadm
CVS Tags: pvpgn_1-7-4-0_MIL
Branch point for: GNU, MAIN
Content type: text/x-chdr
Initial revision

1 sysadm 1.1 /*
2     Copyright (C) 2000 Marco Ziech
3     Copyright (C) 2000 Ross Combs (rocombs@cs.nmsu.edu)
4    
5     This program is free software; you can redistribute it and/or modify
6     it under the terms of the GNU General Public License as published by
7     the Free Software Foundation; either version 2 of the License, or
8     (at your option) any later version.
9    
10     This program is distributed in the hope that it will be useful,
11     but WITHOUT ANY WARRANTY; without even the implied warranty of
12     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13     GNU General Public License for more details.
14    
15     You should have received a copy of the GNU General Public License
16     along with this program; if not, write to the Free Software
17     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18     */
19     #ifndef INCLUDED_BNI_H
20     #define INCLUDED_BNI_H
21    
22     #ifndef BNI_MAXICONS
23     #define BNI_MAXICONS 4096
24     #endif
25    
26     typedef struct {
27     unsigned int id; /* Icon ID */
28     unsigned int x,y; /* width and height */
29     unsigned int tag; /* if ID == 0 */
30     unsigned int unknown; /* 0x00000000 */
31     } t_bniicon;
32    
33     typedef struct {
34     unsigned int unknown1; /* 0x00000010 */
35     unsigned int unknown2; /* 0x00000001 */
36     unsigned int numicons; /* Number of icons */
37     unsigned int dataoffset; /* Start of TGA-File */
38     struct {
39     t_bniicon icon[BNI_MAXICONS];
40     } *icons; /* The icons */
41     } t_bnifile;
42    
43    
44     #include <stdio.h>
45    
46     extern t_bnifile * load_bni(FILE *f);
47     extern int write_bni(FILE *f, t_bnifile *b);
48    
49     #endif

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1