annotate src/texture.h @ 3:0e781cc43178
adding textures
author |
John Tsiombikas <nuclear@member.fsf.org> |
date |
Mon, 21 Nov 2011 10:16:09 +0200 |
parents |
|
children |
c3e0bccd673e |
rev |
line source |
nuclear@3
|
1 /*
|
nuclear@3
|
2 256-color 3D graphics hack for real-mode DOS.
|
nuclear@3
|
3 Copyright (C) 2011 John Tsiombikas <nuclear@member.fsf.org>
|
nuclear@3
|
4
|
nuclear@3
|
5 This program is free software: you can redistribute it and/or modify
|
nuclear@3
|
6 it under the terms of the GNU General Public License as published by
|
nuclear@3
|
7 the Free Software Foundation, either version 3 of the License, or
|
nuclear@3
|
8 (at your option) any later version.
|
nuclear@3
|
9
|
nuclear@3
|
10 This program is distributed in the hope that it will be useful,
|
nuclear@3
|
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
|
nuclear@3
|
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
nuclear@3
|
13 GNU General Public License for more details.
|
nuclear@3
|
14
|
nuclear@3
|
15 You should have received a copy of the GNU General Public License
|
nuclear@3
|
16 along with this program. If not, see <http://www.gnu.org/licenses/>.
|
nuclear@3
|
17 */
|
nuclear@3
|
18 #ifndef TEXTURE_H_
|
nuclear@3
|
19 #define TEXTURE_H_
|
nuclear@3
|
20
|
nuclear@3
|
21 struct texture {
|
nuclear@3
|
22 int width, height;
|
nuclear@3
|
23 unsigned char *pixels;
|
nuclear@3
|
24 };
|
nuclear@3
|
25
|
nuclear@3
|
26 struct texture *tex_load(const char *fname);
|
nuclear@3
|
27
|
nuclear@3
|
28 struct texture *tex_gen_checker(int xsz, int ysz, int usub, int vsub, int c1, int c2);
|
nuclear@3
|
29
|
nuclear@3
|
30 #endif /* TEXTURE_H_ */
|