]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/texmanip.h
it's better to close file and return on non-void function
[xonotic/netradiant.git] / radiant / texmanip.h
index 45b6a7eb89b980f8a0b1c0e6d54006002aabdb44..cd01ab0aa3868154836d2fe51ce2acddf8eda8e0 100644 (file)
    SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifndef _TEXMANIP_H_
-#define _TEXMANIP_H_
+#if !defined( INCLUDED_TEXMANIP_H )
+#define INCLUDED_TEXMANIP_H
 
-void R_ResampleTextureLerpLine( byte *in, byte *out, int inwidth, int outwidth, int bytesperpixel );
-void R_ResampleTexture( void *indata, int inwidth, int inheight, void *outdata,  int outwidth, int outheight, int bytesperpixel );
-void GL_MipReduce( byte *in, byte *out, int width, int height, int destwidth, int destheight );
+typedef unsigned char byte;
 
-#endif // _TEXMANIP_H_
+void R_ResampleTexture(const void *indata, int inwidth, int inheight, void *outdata, int outwidth, int outheight,
+                       int bytesperpixel);
+
+void GL_MipReduce(byte *in, byte *out, int width, int height, int destwidth, int destheight);
+
+#endif