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

vbo_split.h
Go to the documentation of this file.
00001 /*
00002  * mesa 3-D graphics library
00003  * Version:  6.5
00004  *
00005  * Copyright (C) 1999-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 
00041 #ifndef _VBO_SPLIT_H
00042 #define _VBO_SPLIT_H
00043 
00044 #include "vbo.h"
00045 
00046 
00047 /* True if a primitive can be split without copying of vertices, false
00048  * otherwise.
00049  */
00050 GLboolean split_prim_inplace(GLenum mode, GLuint *first, GLuint *incr);
00051 
00052 void vbo_split_inplace( GLcontext *ctx,
00053             const struct gl_client_array *arrays[],
00054             const struct _mesa_prim *prim,
00055             GLuint nr_prims,
00056             const struct _mesa_index_buffer *ib,
00057             GLuint min_index,
00058             GLuint max_index,
00059             vbo_draw_func draw,
00060             const struct split_limits *limits );
00061 
00062 /* Requires ib != NULL:
00063  */
00064 void vbo_split_copy( GLcontext *ctx,
00065              const struct gl_client_array *arrays[],
00066              const struct _mesa_prim *prim,
00067              GLuint nr_prims,
00068              const struct _mesa_index_buffer *ib,
00069              vbo_draw_func draw,
00070              const struct split_limits *limits );
00071 
00072 #endif

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