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

prog_uniform.h
Go to the documentation of this file.
00001 /*
00002  * Mesa 3-D graphics library
00003  * Version:  7.1
00004  *
00005  * Copyright (C) 1999-2008  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 
00031 #ifndef PROG_UNIFORM_H
00032 #define PROG_UNIFORM_H
00033 
00034 #include "main/mtypes.h"
00035 #include "prog_statevars.h"
00036 
00037 
00048 struct gl_uniform
00049 {
00050    const char *Name;        
00051    GLint VertPos;
00052    GLint FragPos;
00053    GLboolean Initialized;   
00054 #if 0
00055    GLenum DataType;         
00056    GLuint Size;             
00057 #endif
00058 };
00059 
00060 
00064 struct gl_uniform_list
00065 {
00066    GLuint Size;                 
00067    GLuint NumUniforms;          
00068    struct gl_uniform *Uniforms; 
00069 };
00070 
00071 
00072 extern struct gl_uniform_list *
00073 _mesa_new_uniform_list(void);
00074 
00075 extern void
00076 _mesa_free_uniform_list(struct gl_uniform_list *list);
00077 
00078 extern struct gl_uniform *
00079 _mesa_append_uniform(struct gl_uniform_list *list,
00080                      const char *name, GLenum target, GLuint progPos);
00081 
00082 extern GLint
00083 _mesa_lookup_uniform(const struct gl_uniform_list *list, const char *name);
00084 
00085 extern GLint
00086 _mesa_longest_uniform_name(const struct gl_uniform_list *list);
00087 
00088 extern void
00089 _mesa_print_uniforms(const struct gl_uniform_list *list);
00090 
00091 
00092 #endif /* PROG_UNIFORM_H */

Generated on Sun May 27 2012 04:20:35 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.