1 /* Copyright (C) 2018 Federico Simmross Wattenberg,
2 * Manuel Rodríguez Cayetano,
3 * Javier Royuela del Val,
4 * Elena Martín González,
6 * Marcos Martín Fernández and
7 * Carlos Alberola López
9 * This file is part of OpenCLIPER.
11 * OpenCLIPER is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; version 3 of the License.
15 * OpenCLIPER is distributed in the hope that it will be useful, but
16 * WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with OpenCLIPER; If not, see <http://www.gnu.org/licenses/>.
26 * Federico Simmross Wattenberg
27 * E.T.S.I. Telecomunicación
28 * Universidad de Valladolid
30 * 47011 Valladolid, Spain.
33 --- include/IL/devil_cpp_wrapper.hpp.orig 2009-03-08 08:10:08.000000000 +0100
34 +++ include/IL/devil_cpp_wrapper.hpp 2016-11-15 21:33:55.069217649 +0100
37 ILboolean Load(ILconst_string);
38 ILboolean Load(ILconst_string, ILenum);
39 + ILboolean LoadL(ILenum Type, const void* Lump, ILuint Size);
40 ILboolean Save(ILconst_string);
41 ILboolean Save(ILconst_string, ILenum);
44 ILboolean SwapColours(void);
45 ILboolean Resize(ILuint, ILuint, ILuint);
46 ILboolean TexImage(ILuint, ILuint, ILuint, ILubyte, ILenum, ILenum, void*);
48 + ILuint CopyPixels(ILuint XOff, ILuint YOff, ILuint ZOff,
49 + ILuint Width, ILuint Height, ILuint Depth,
50 + ILenum Format, ILenum Type, void *Data);
51 + ILuint SetPixels(ILuint XOff, ILuint YOff, ILuint ZOff,
52 + ILuint Width, ILuint Height, ILuint Depth,
53 + ILenum Format, ILenum Type, void *Data);
55 void Bind(void) const;
58 ILuint GetId(void) const;
59 ILenum GetOrigin(void);
60 ILubyte *GetData(void);
61 + ILboolean SetData(ILubyte *Data);
62 ILubyte *GetPalette(void);
66 return ilLoad(Type, FileName);
69 +ILboolean ilImage::LoadL(ILenum Type, const void* Lump, ILuint Size)
72 + return ilLoadL(Type, Lump, Size);
75 ILboolean ilImage::Save(ILconst_string FileName)
82 +ILuint ilImage::CopyPixels(ILuint XOff, ILuint YOff, ILuint ZOff,
83 + ILuint Width, ILuint Height, ILuint Depth,
84 + ILenum Format, ILenum Type, void *Data)
88 + return ilCopyPixels(XOff, YOff, ZOff, Width, Height, Depth,
89 + Format, Type, Data);
94 +ILuint ilImage::SetPixels(ILuint XOff, ILuint YOff, ILuint ZOff,
95 + ILuint Width, ILuint Height, ILuint Depth,
96 + ILenum Format, ILenum Type, void *Data)
100 + ilSetPixels(XOff, YOff, ZOff, Width, Height, Depth,
101 + Format, Type, Data);
113 +ILboolean ilImage::SetData(ILubyte *Data)
117 + return ilSetData(Data);
122 ILubyte* ilImage::GetPalette()