浏览代码

Move mipmap generation functions, texture scaling functions into new

mipmap.c file.
tags/mesa_6_5_2
Brian Paul 19 年前
父节点
当前提交
24edd90159

+ 1
- 0
src/mesa/drivers/dri/tdfx/tdfx_tex.c 查看文件

@@ -41,6 +41,7 @@

#include "enums.h"
#include "image.h"
#include "mipmap.h"
#include "texcompress.h"
#include "texformat.h"
#include "teximage.h"

+ 1
- 0
src/mesa/drivers/dri/unichrome/via_tex.c 查看文件

@@ -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"

+ 3
- 0
src/mesa/main/descrip.mms 查看文件

@@ -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

+ 1
- 0
src/mesa/main/fbobject.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"

+ 1147
- 0
src/mesa/main/mipmap.c
文件差异内容过多而无法显示
查看文件


+ 52
- 0
src/mesa/main/mipmap.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 */

+ 1
- 0
src/mesa/main/texcompress.c 查看文件

@@ -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"

+ 7
- 1114
src/mesa/main/texstore.c
文件差异内容过多而无法显示
查看文件


+ 0
- 21
src/mesa/main/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,

+ 1
- 0
src/mesa/sources 查看文件

@@ -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 \

+ 1
- 0
src/mesa/swrast/s_texstore.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"

+ 4
- 0
windows/VC6/mesa/mesa/mesa.dsp 查看文件

@@ -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

+ 3
- 0
windows/VC7/mesa/mesa/mesa.vcproj 查看文件

@@ -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>

正在加载...
取消
保存