ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

shader_api.h
Go to the documentation of this file.
00001 /*
00002  * Mesa 3-D graphics library
00003  * Version:  6.5
00004  *
00005  * Copyright (C) 2004-2006  Brian Paul   All Rights Reserved.
00006  *
00007  * Permission is hereby granted, free of charge, to any person obtaining a
00008  * copy of this software and associated documentation files (the "Software"),
00009  * to deal in the Software without restriction, including without limitation
00010  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
00011  * and/or sell copies of the Software, and to permit persons to whom the
00012  * Software is furnished to do so, subject to the following conditions:
00013  *
00014  * The above copyright notice and this permission notice shall be included
00015  * in all copies or substantial portions of the Software.
00016  *
00017  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
00018  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00019  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
00020  * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
00021  * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
00022  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
00023  */
00024 
00025 
00026 #ifndef SHADER_API_H
00027 #define SHADER_API_H
00028 
00029 
00030 #include "main/glheader.h"
00031 #include "main/mtypes.h"
00032 
00033 
00038 extern void
00039 _mesa_init_shader_state(GLcontext * ctx);
00040 
00041 extern void
00042 _mesa_free_shader_state(GLcontext *ctx);
00043 
00044 /*
00045 extern struct gl_shader_program *
00046 _mesa_new_shader_program(GLcontext *ctx, GLuint name);
00047 */
00048 extern void
00049 _mesa_clear_shader_program_data(GLcontext *ctx,
00050                                 struct gl_shader_program *shProg);
00051 
00052 extern void
00053 _mesa_free_shader_program_data(GLcontext *ctx,
00054                                struct gl_shader_program *shProg);
00055 
00056 extern void
00057 _mesa_free_shader_program(GLcontext *ctx, struct gl_shader_program *shProg);
00058 
00059 extern void
00060 _mesa_reference_shader_program(GLcontext *ctx,
00061                                struct gl_shader_program **ptr,
00062                                struct gl_shader_program *shProg);
00063 
00064 extern struct gl_shader_program *
00065 _mesa_lookup_shader_program(GLcontext *ctx, GLuint name);
00066 
00067 
00068 extern struct gl_shader *
00069 _mesa_new_shader(GLcontext *ctx, GLuint name, GLenum type);
00070 
00071 extern void
00072 _mesa_free_shader(GLcontext *ctx, struct gl_shader *sh);
00073 
00074 extern void
00075 _mesa_reference_shader(GLcontext *ctx, struct gl_shader **ptr,
00076                        struct gl_shader *sh);
00077 
00078 extern struct gl_shader *
00079 _mesa_lookup_shader(GLcontext *ctx, GLuint name);
00080 
00081 
00082 extern void
00083 _mesa_update_shader_textures_used(struct gl_program *prog);
00084 
00085 
00086 extern void
00087 _mesa_use_program(GLcontext *ctx, GLuint program);
00088 
00089 
00090 extern void
00091 _mesa_init_glsl_driver_functions(struct dd_function_table *driver);
00092 
00093 
00094 #endif /* SHADER_API_H */

Generated on Sat May 26 2012 04:19:22 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.