X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=blobdiff_plain;f=include%2Fiimage.h;h=c159e657152af1ba8ede594a4c3d53ffb99e234e;hp=f6020bd88a61c4e71a4b0df734d67982611b7a36;hb=e4287c28bb2dafedc81c66e63951d947cfbeb225;hpb=203343b01a7ad87cb3d136689c9936ff5bc23c01 diff --git a/include/iimage.h b/include/iimage.h index f6020bd8..c159e657 100644 --- a/include/iimage.h +++ b/include/iimage.h @@ -1,25 +1,25 @@ /* -Copyright (C) 2001-2006, William Joseph. -All Rights Reserved. + Copyright (C) 2001-2006, William Joseph. + All Rights Reserved. -This file is part of GtkRadiant. + This file is part of GtkRadiant. -GtkRadiant is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or -(at your option) any later version. + GtkRadiant is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. -GtkRadiant is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. + GtkRadiant is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. -You should have received a copy of the GNU General Public License -along with GtkRadiant; if not, write to the Free Software -Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -*/ + You should have received a copy of the GNU General Public License + along with GtkRadiant; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ -#if !defined(INCLUDED_IIMAGE_H) +#if !defined( INCLUDED_IIMAGE_H ) #define INCLUDED_IIMAGE_H #include "generic/constant.h" @@ -29,35 +29,32 @@ typedef unsigned char byte; class Image { public: - virtual void release() = 0; - virtual byte* getRGBAPixels() const = 0; - virtual unsigned int getWidth() const = 0; - virtual unsigned int getHeight() const = 0; - - virtual int getSurfaceFlags() const - { - return 0; - } - virtual int getContentFlags() const - { - return 0; - } - virtual int getValue() const - { - return 0; - } +virtual void release() = 0; +virtual byte* getRGBAPixels() const = 0; +virtual unsigned int getWidth() const = 0; +virtual unsigned int getHeight() const = 0; + +virtual int getSurfaceFlags() const { + return 0; +} +virtual int getContentFlags() const { + return 0; +} +virtual int getValue() const { + return 0; +} }; class ArchiveFile; struct _QERPlugImageTable { - INTEGER_CONSTANT(Version, 1); - STRING_CONSTANT(Name, "image"); + INTEGER_CONSTANT( Version, 1 ); + STRING_CONSTANT( Name, "image" ); - /// Read an image from the file. - /// Returns 0 if the image could not be read. - Image* (*loadImage)(ArchiveFile& file); + /// Read an image from the file. + /// Returns 0 if the image could not be read. + Image* ( *loadImage )( ArchiveFile & file ); }; template