aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/irrlicht-1.8/source/Irrlicht/CImageLoaderWAL.h
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/irrlicht-1.8/source/Irrlicht/CImageLoaderWAL.h')
-rw-r--r--libraries/irrlicht-1.8/source/Irrlicht/CImageLoaderWAL.h200
1 files changed, 100 insertions, 100 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CImageLoaderWAL.h b/libraries/irrlicht-1.8/source/Irrlicht/CImageLoaderWAL.h
index 871814a..d885398 100644
--- a/libraries/irrlicht-1.8/source/Irrlicht/CImageLoaderWAL.h
+++ b/libraries/irrlicht-1.8/source/Irrlicht/CImageLoaderWAL.h
@@ -1,100 +1,100 @@
1// Copyright (C) 2004 Murphy McCauley 1// Copyright (C) 2004 Murphy McCauley
2// Copyright (C) 2007-2012 Christian Stehno 2// Copyright (C) 2007-2012 Christian Stehno
3// This file is part of the "Irrlicht Engine". 3// This file is part of the "Irrlicht Engine".
4// For conditions of distribution and use, see copyright notice in irrlicht.h 4// For conditions of distribution and use, see copyright notice in irrlicht.h
5/* 5/*
6 Thanks to: 6 Thanks to:
7 Max McGuire for his Flipcode article about WAL textures 7 Max McGuire for his Flipcode article about WAL textures
8 Nikolaus Gebhardt for the Irrlicht 3D engine 8 Nikolaus Gebhardt for the Irrlicht 3D engine
9*/ 9*/
10 10
11#ifndef __C_IMAGE_LOADER_WAL_H_INCLUDED__ 11#ifndef __C_IMAGE_LOADER_WAL_H_INCLUDED__
12#define __C_IMAGE_LOADER_WAL_H_INCLUDED__ 12#define __C_IMAGE_LOADER_WAL_H_INCLUDED__
13 13
14#include "IrrCompileConfig.h" 14#include "IrrCompileConfig.h"
15#include "IImageLoader.h" 15#include "IImageLoader.h"
16 16
17namespace irr 17namespace irr
18{ 18{
19namespace video 19namespace video
20{ 20{
21 21
22#ifdef _IRR_COMPILE_WITH_LMP_LOADER_ 22#ifdef _IRR_COMPILE_WITH_LMP_LOADER_
23 23
24// byte-align structures 24// byte-align structures
25#include "irrpack.h" 25#include "irrpack.h"
26 26
27 struct SLMPHeader { 27 struct SLMPHeader {
28 u32 width; // width 28 u32 width; // width
29 u32 height; // height 29 u32 height; // height
30 // variably sized 30 // variably sized
31 } PACK_STRUCT; 31 } PACK_STRUCT;
32 32
33// Default alignment 33// Default alignment
34#include "irrunpack.h" 34#include "irrunpack.h"
35 35
36//! An Irrlicht image loader for Quake1,2 engine lmp textures/palette 36//! An Irrlicht image loader for Quake1,2 engine lmp textures/palette
37class CImageLoaderLMP : public irr::video::IImageLoader 37class CImageLoaderLMP : public irr::video::IImageLoader
38{ 38{
39public: 39public:
40 virtual bool isALoadableFileExtension(const io::path& filename) const; 40 virtual bool isALoadableFileExtension(const io::path& filename) const;
41 virtual bool isALoadableFileFormat(irr::io::IReadFile* file) const; 41 virtual bool isALoadableFileFormat(irr::io::IReadFile* file) const;
42 virtual irr::video::IImage* loadImage(irr::io::IReadFile* file) const; 42 virtual irr::video::IImage* loadImage(irr::io::IReadFile* file) const;
43}; 43};
44 44
45#endif 45#endif
46 46
47#ifdef _IRR_COMPILE_WITH_WAL_LOADER_ 47#ifdef _IRR_COMPILE_WITH_WAL_LOADER_
48 48
49//! An Irrlicht image loader for quake2 wal engine textures 49//! An Irrlicht image loader for quake2 wal engine textures
50class CImageLoaderWAL : public irr::video::IImageLoader 50class CImageLoaderWAL : public irr::video::IImageLoader
51{ 51{
52public: 52public:
53 virtual bool isALoadableFileExtension(const io::path& filename) const; 53 virtual bool isALoadableFileExtension(const io::path& filename) const;
54 virtual bool isALoadableFileFormat(irr::io::IReadFile* file) const; 54 virtual bool isALoadableFileFormat(irr::io::IReadFile* file) const;
55 virtual irr::video::IImage* loadImage(irr::io::IReadFile* file) const; 55 virtual irr::video::IImage* loadImage(irr::io::IReadFile* file) const;
56}; 56};
57 57
58//! An Irrlicht image loader for Halflife 1 engine textures 58//! An Irrlicht image loader for Halflife 1 engine textures
59class CImageLoaderWAL2 : public irr::video::IImageLoader 59class CImageLoaderWAL2 : public irr::video::IImageLoader
60{ 60{
61public: 61public:
62 virtual bool isALoadableFileExtension(const io::path& filename) const; 62 virtual bool isALoadableFileExtension(const io::path& filename) const;
63 virtual bool isALoadableFileFormat(irr::io::IReadFile* file) const; 63 virtual bool isALoadableFileFormat(irr::io::IReadFile* file) const;
64 virtual irr::video::IImage* loadImage(irr::io::IReadFile* file) const; 64 virtual irr::video::IImage* loadImage(irr::io::IReadFile* file) const;
65}; 65};
66 66
67// byte-align structures 67// byte-align structures
68#include "irrpack.h" 68#include "irrpack.h"
69 69
70 // Halfelife wad3 type 67 file 70 // Halfelife wad3 type 67 file
71 struct miptex_halflife 71 struct miptex_halflife
72 { 72 {
73 c8 name[16]; 73 c8 name[16];
74 u32 width, height; 74 u32 width, height;
75 u32 mipmap[4]; // four mip maps stored 75 u32 mipmap[4]; // four mip maps stored
76 } PACK_STRUCT; 76 } PACK_STRUCT;
77 77
78 //quake2 texture 78 //quake2 texture
79 struct miptex_quake2 79 struct miptex_quake2
80 { 80 {
81 c8 name[32]; 81 c8 name[32];
82 u32 width; 82 u32 width;
83 u32 height; 83 u32 height;
84 u32 mipmap[4]; // four mip maps stored 84 u32 mipmap[4]; // four mip maps stored
85 c8 animname[32]; // next frame in animation chain 85 c8 animname[32]; // next frame in animation chain
86 s32 flags; 86 s32 flags;
87 s32 contents; 87 s32 contents;
88 s32 value; 88 s32 value;
89 } PACK_STRUCT; 89 } PACK_STRUCT;
90 90
91// Default alignment 91// Default alignment
92#include "irrunpack.h" 92#include "irrunpack.h"
93 93
94#endif 94#endif
95 95
96} 96}
97} 97}
98 98
99#endif 99#endif
100 100