File: texturelistio.h

package info (click to toggle)
searchandrescue 1.5.0-2.1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 6,768 kB
  • sloc: ansic: 89,609; cpp: 7,699; makefile: 194; sh: 123
file content (35 lines) | stat: -rw-r--r-- 681 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
24
25
26
27
28
29
30
31
32
33
34
35
/*
                   Texture Reference List Management
 */

#ifndef TEXTURELISTIO_H
#define TEXTURELISTIO_H


/*
 *	Texture reference structure, this contains a reference
 *	to a texture on file and its related values.
 */
typedef struct {

	char *name;		/* Reference name. */
	char *filename;
	double priority;	/* Value from 0.0, to 1.0, where 1.0 is highest. */

} sar_texture_name_struct;

#define SAR_TEXTURE_NAME(p)	((sar_texture_name_struct *)(p))


extern void SARTextureListDeleteAll(
	sar_texture_name_struct ***tl,
	int *total
);
extern int SARTextureListLoadFromFile(
	const char *filename,
	sar_texture_name_struct ***tl,
	int *total
);


#endif	/* TEXTURELISTIO_H */