mipmap.c file.tags/mesa_6_5_2
| @@ -41,6 +41,7 @@ | |||
| #include "enums.h" | |||
| #include "image.h" | |||
| #include "mipmap.h" | |||
| #include "texcompress.h" | |||
| #include "texformat.h" | |||
| #include "teximage.h" | |||
| @@ -33,6 +33,7 @@ | |||
| #include "colortab.h" | |||
| #include "convolve.h" | |||
| #include "context.h" | |||
| #include "mipmap.h" | |||
| #include "simple_list.h" | |||
| #include "texcompress.h" | |||
| #include "texformat.h" | |||
| @@ -56,6 +56,7 @@ SOURCES =accum.c \ | |||
| light.c \ | |||
| lines.c \ | |||
| matrix.c \ | |||
| mipmap.c \ | |||
| mm.c \ | |||
| occlude.c \ | |||
| pixel.c \ | |||
| @@ -118,6 +119,7 @@ imports.obj,\ | |||
| light.obj,\ | |||
| lines.obj,\ | |||
| matrix.obj,\ | |||
| mipmap.obj,\ | |||
| mm.obj,\ | |||
| occlude.obj,\ | |||
| pixel.obj,\ | |||
| @@ -193,6 +195,7 @@ imports.obj : imports.c vsnprintf.c | |||
| light.obj : light.c | |||
| lines.obj : lines.c | |||
| matrix.obj : matrix.c | |||
| mipmap.obj : mipmap.c | |||
| mm.obj : mm.c | |||
| occlude.obj : occlude.c | |||
| pixel.obj : pixel.c | |||
| @@ -33,6 +33,7 @@ | |||
| #include "fbobject.h" | |||
| #include "framebuffer.h" | |||
| #include "hash.h" | |||
| #include "mipmap.h" | |||
| #include "renderbuffer.h" | |||
| #include "state.h" | |||
| #include "teximage.h" | |||
| @@ -0,0 +1,52 @@ | |||
| /* | |||
| * Mesa 3-D graphics library | |||
| * Version: 6.5.2 | |||
| * | |||
| * Copyright (C) 1999-2006 Brian Paul All Rights Reserved. | |||
| * | |||
| * Permission is hereby granted, free of charge, to any person obtaining a | |||
| * copy of this software and associated documentation files (the "Software"), | |||
| * to deal in the Software without restriction, including without limitation | |||
| * the rights to use, copy, modify, merge, publish, distribute, sublicense, | |||
| * and/or sell copies of the Software, and to permit persons to whom the | |||
| * Software is furnished to do so, subject to the following conditions: | |||
| * | |||
| * The above copyright notice and this permission notice shall be included | |||
| * in all copies or substantial portions of the Software. | |||
| * | |||
| * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS | |||
| * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |||
| * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL | |||
| * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN | |||
| * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | |||
| * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |||
| */ | |||
| #ifndef MIPMAP_H | |||
| #define MIPMAP_H | |||
| #include "mtypes.h" | |||
| extern void | |||
| _mesa_generate_mipmap(GLcontext *ctx, GLenum target, | |||
| const struct gl_texture_unit *texUnit, | |||
| struct gl_texture_object *texObj); | |||
| extern void | |||
| _mesa_rescale_teximage2d(GLuint bytesPerPixel, | |||
| GLuint srcStrideInPixels, | |||
| GLuint dstRowStride, | |||
| GLint srcWidth, GLint srcHeight, | |||
| GLint dstWidth, GLint dstHeight, | |||
| const GLvoid *srcImage, GLvoid *dstImage); | |||
| extern void | |||
| _mesa_upscale_teximage2d(GLsizei inWidth, GLsizei inHeight, | |||
| GLsizei outWidth, GLsizei outHeight, | |||
| GLint comps, const GLchan *src, GLint srcRowStride, | |||
| GLchan *dest); | |||
| #endif /* MIPMAP_H */ | |||
| @@ -34,6 +34,7 @@ | |||
| #include "colormac.h" | |||
| #include "context.h" | |||
| #include "image.h" | |||
| #include "mipmap.h" | |||
| #include "texcompress.h" | |||
| #include "texformat.h" | |||
| #include "texstore.h" | |||
| @@ -200,27 +200,6 @@ _mesa_store_compressed_texsubimage3d(GLcontext *ctx, GLenum target, | |||
| struct gl_texture_image *texImage); | |||
| extern void | |||
| _mesa_generate_mipmap(GLcontext *ctx, GLenum target, | |||
| const struct gl_texture_unit *texUnit, | |||
| struct gl_texture_object *texObj); | |||
| extern void | |||
| _mesa_rescale_teximage2d(GLuint bytesPerPixel, | |||
| GLuint srcStrideInPixels, | |||
| GLuint dstRowStride, | |||
| GLint srcWidth, GLint srcHeight, | |||
| GLint dstWidth, GLint dstHeight, | |||
| const GLvoid *srcImage, GLvoid *dstImage); | |||
| extern void | |||
| _mesa_upscale_teximage2d(GLsizei inWidth, GLsizei inHeight, | |||
| GLsizei outWidth, GLsizei outHeight, | |||
| GLint comps, const GLchan *src, GLint srcRowStride, | |||
| GLchan *dest); | |||
| extern void | |||
| _mesa_get_teximage(GLcontext *ctx, GLenum target, GLint level, | |||
| GLenum format, GLenum type, GLvoid *pixels, | |||
| @@ -39,6 +39,7 @@ MAIN_SOURCES = \ | |||
| main/light.c \ | |||
| main/lines.c \ | |||
| main/matrix.c \ | |||
| main/mipmap.c \ | |||
| main/mm.c \ | |||
| main/occlude.c \ | |||
| main/pixel.c \ | |||
| @@ -43,6 +43,7 @@ | |||
| #include "convolve.h" | |||
| #include "image.h" | |||
| #include "macros.h" | |||
| #include "mipmap.h" | |||
| #include "texformat.h" | |||
| #include "teximage.h" | |||
| #include "texstore.h" | |||
| @@ -393,6 +393,10 @@ SOURCE=..\..\..\..\src\mesa\main\matrix.c | |||
| # End Source File | |||
| # Begin Source File | |||
| SOURCE=..\..\..\..\src\mesa\main\mipmap.c | |||
| # End Source File | |||
| # Begin Source File | |||
| SOURCE=..\..\..\..\src\mesa\main\mm.c | |||
| # End Source File | |||
| # Begin Source File | |||
| @@ -287,6 +287,9 @@ | |||
| <File | |||
| RelativePath="..\..\..\..\src\mesa\main\matrix.c"> | |||
| </File> | |||
| <File | |||
| RelativePath="..\..\..\..\src\mesa\main\mipmap.c"> | |||
| </File> | |||
| <File | |||
| RelativePath="..\..\..\..\src\mesa\main\mm.c"> | |||
| </File> | |||