| 1 | /* |
| 2 | Copyright (c) 2002 Forest "LordHavoc" Hale |
| 3 | |
| 4 | All rights reserved. |
| 5 | |
| 6 | Redistribution and use in source and binary forms, with or without modification, |
| 7 | are permitted provided that the following conditions are met: |
| 8 | |
| 9 | Redistributions of source code must retain the above copyright notice, this list |
| 10 | of conditions and the following disclaimer. |
| 11 | |
| 12 | Redistributions in binary form must reproduce the above copyright notice, this |
| 13 | list of conditions and the following disclaimer in the documentation and/or |
| 14 | other materials provided with the distribution. |
| 15 | |
| 16 | Neither the name of Forest Hale nor the names of other contributors may be used |
| 17 | to endorse or promote products derived from this software without specific prior |
| 18 | written permission. |
| 19 | |
| 20 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS'' |
| 21 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 22 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| 23 | DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY |
| 24 | DIRECT,INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| 25 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 26 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON |
| 27 | ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 28 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
| 29 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 30 | */ |
| 31 | |
| 32 | #if !defined( INCLUDED_TEXMANIP_H ) |
| 33 | #define INCLUDED_TEXMANIP_H |
| 34 | |
| 35 | typedef unsigned char byte; |
| 36 | |
| 37 | void R_ResampleTexture( const void *indata, int inwidth, int inheight, void *outdata, int outwidth, int outheight, int bytesperpixel ); |
| 38 | void GL_MipReduce( byte *in, byte *out, int width, int height, int destwidth, int destheight ); |
| 39 | |
| 40 | #endif |