162abcb9aacc33218d0143a743c738435794b32a9Brian/************************************************************************** 262abcb9aacc33218d0143a743c738435794b32a9Brian * 362abcb9aacc33218d0143a743c738435794b32a9Brian * Copyright 2008 Tungsten Graphics, Inc., Cedar Park, Texas. 462abcb9aacc33218d0143a743c738435794b32a9Brian * All Rights Reserved. 562abcb9aacc33218d0143a743c738435794b32a9Brian * 662abcb9aacc33218d0143a743c738435794b32a9Brian * Permission is hereby granted, free of charge, to any person obtaining a 762abcb9aacc33218d0143a743c738435794b32a9Brian * copy of this software and associated documentation files (the 862abcb9aacc33218d0143a743c738435794b32a9Brian * "Software"), to deal in the Software without restriction, including 962abcb9aacc33218d0143a743c738435794b32a9Brian * without limitation the rights to use, copy, modify, merge, publish, 1062abcb9aacc33218d0143a743c738435794b32a9Brian * distribute, sub license, and/or sell copies of the Software, and to 1162abcb9aacc33218d0143a743c738435794b32a9Brian * permit persons to whom the Software is furnished to do so, subject to 1262abcb9aacc33218d0143a743c738435794b32a9Brian * the following conditions: 1362abcb9aacc33218d0143a743c738435794b32a9Brian * 1462abcb9aacc33218d0143a743c738435794b32a9Brian * The above copyright notice and this permission notice (including the 1562abcb9aacc33218d0143a743c738435794b32a9Brian * next paragraph) shall be included in all copies or substantial portions 1662abcb9aacc33218d0143a743c738435794b32a9Brian * of the Software. 1762abcb9aacc33218d0143a743c738435794b32a9Brian * 1862abcb9aacc33218d0143a743c738435794b32a9Brian * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 1962abcb9aacc33218d0143a743c738435794b32a9Brian * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 2062abcb9aacc33218d0143a743c738435794b32a9Brian * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 2162abcb9aacc33218d0143a743c738435794b32a9Brian * IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR 2262abcb9aacc33218d0143a743c738435794b32a9Brian * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 2362abcb9aacc33218d0143a743c738435794b32a9Brian * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 2462abcb9aacc33218d0143a743c738435794b32a9Brian * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 2562abcb9aacc33218d0143a743c738435794b32a9Brian * 2662abcb9aacc33218d0143a743c738435794b32a9Brian **************************************************************************/ 2762abcb9aacc33218d0143a743c738435794b32a9Brian 2862abcb9aacc33218d0143a743c738435794b32a9Brian 2962abcb9aacc33218d0143a743c738435794b32a9Brian#ifndef ST_GEN_MIPMAP_H 3062abcb9aacc33218d0143a743c738435794b32a9Brian#define ST_GEN_MIPMAP_H 3162abcb9aacc33218d0143a743c738435794b32a9Brian 3262abcb9aacc33218d0143a743c738435794b32a9Brian 33b20dac4e2d2348826d31c3c2da06e6a3d4115dcfVinson Lee#include "main/glheader.h" 34ea1744a66438b5863a8576087b07ad6ffdcd04c5Vinson Lee 35b20dac4e2d2348826d31c3c2da06e6a3d4115dcfVinson Leestruct gl_context; 36b20dac4e2d2348826d31c3c2da06e6a3d4115dcfVinson Leestruct gl_texture_object; 37ea1744a66438b5863a8576087b07ad6ffdcd04c5Vinson Leestruct st_context; 38ea1744a66438b5863a8576087b07ad6ffdcd04c5Vinson Lee 3962abcb9aacc33218d0143a743c738435794b32a9Brianextern void 4062abcb9aacc33218d0143a743c738435794b32a9Brianst_init_generate_mipmap(struct st_context *st); 4162abcb9aacc33218d0143a743c738435794b32a9Brian 4262abcb9aacc33218d0143a743c738435794b32a9Brian 4362abcb9aacc33218d0143a743c738435794b32a9Brianextern void 44320da13c87c683cbe6e8145a9258ea2b7ef674cdBrianst_destroy_generate_mipmap(struct st_context *st); 4562abcb9aacc33218d0143a743c738435794b32a9Brian 4662abcb9aacc33218d0143a743c738435794b32a9Brian 4762abcb9aacc33218d0143a743c738435794b32a9Brianextern void 48f9995b30756140724f41daf963fa06167912be7fKristian Høgsbergst_generate_mipmap(struct gl_context *ctx, GLenum target, 4962abcb9aacc33218d0143a743c738435794b32a9Brian struct gl_texture_object *texObj); 5062abcb9aacc33218d0143a743c738435794b32a9Brian 5162abcb9aacc33218d0143a743c738435794b32a9Brian 5262abcb9aacc33218d0143a743c738435794b32a9Brian#endif /* ST_GEN_MIPMAP_H */ 53