00001 /************************************************************************** 00002 * 00003 * Copyright 2003 Tungsten Graphics, Inc., Cedar Park, Texas. 00004 * All Rights Reserved. 00005 * 00006 * Permission is hereby granted, free of charge, to any person obtaining a 00007 * copy of this software and associated documentation files (the 00008 * "Software"), to deal in the Software without restriction, including 00009 * without limitation the rights to use, copy, modify, merge, publish, 00010 * distribute, sub license, and/or sell copies of the Software, and to 00011 * permit persons to whom the Software is furnished to do so, subject to 00012 * the following conditions: 00013 * 00014 * The above copyright notice and this permission notice (including the 00015 * next paragraph) shall be included in all copies or substantial portions 00016 * of the Software. 00017 * 00018 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 00019 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00020 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 00021 * IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR 00022 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 00023 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 00024 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 00025 * 00026 **************************************************************************/ 00027 00028 /* 00029 * Authors: 00030 * Keith Whitwell <keith@tungstengraphics.com> 00031 */ 00032 00033 00034 #ifndef ST_ATOM_H 00035 #define ST_ATOM_H 00036 00037 struct st_context; 00038 struct st_tracked_state; 00039 00040 void st_init_atoms( struct st_context *st ); 00041 void st_destroy_atoms( struct st_context *st ); 00042 00043 00044 void st_validate_state( struct st_context *st ); 00045 00046 00047 extern const struct st_tracked_state st_update_framebuffer; 00048 extern const struct st_tracked_state st_update_clip; 00049 extern const struct st_tracked_state st_update_depth_stencil_alpha; 00050 extern const struct st_tracked_state st_update_shader; 00051 extern const struct st_tracked_state st_update_rasterizer; 00052 extern const struct st_tracked_state st_update_polygon_stipple; 00053 extern const struct st_tracked_state st_update_viewport; 00054 extern const struct st_tracked_state st_update_scissor; 00055 extern const struct st_tracked_state st_update_blend; 00056 extern const struct st_tracked_state st_update_sampler; 00057 extern const struct st_tracked_state st_update_texture; 00058 extern const struct st_tracked_state st_finalize_textures; 00059 extern const struct st_tracked_state st_update_fs_constants; 00060 extern const struct st_tracked_state st_update_vs_constants; 00061 extern const struct st_tracked_state st_update_pixel_transfer; 00062 00063 00064 uint st_compare_func_to_pipe(GLenum func); 00065 00066 #endif