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

bufferobj.h
Go to the documentation of this file.
00001 /*
00002  * Mesa 3-D graphics library
00003  * Version:  7.2
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 
00025 
00026 
00027 #ifndef BUFFEROBJ_H
00028 #define BUFFEROBJ_H
00029 
00030 
00031 #include "context.h"
00032 
00033 
00034 /*
00035  * Internal functions
00036  */
00037 
00038 extern void
00039 _mesa_init_buffer_objects( GLcontext *ctx );
00040 
00041 extern void
00042 _mesa_update_default_objects_buffer_objects(GLcontext *ctx);
00043 
00044 extern struct gl_buffer_object *
00045 _mesa_new_buffer_object( GLcontext *ctx, GLuint name, GLenum target );
00046 
00047 extern void
00048 _mesa_delete_buffer_object( GLcontext *ctx, struct gl_buffer_object *bufObj );
00049 
00050 extern struct gl_buffer_object *
00051 _mesa_lookup_bufferobj(GLcontext *ctx, GLuint buffer);
00052 
00053 extern void
00054 _mesa_initialize_buffer_object( struct gl_buffer_object *obj,
00055                 GLuint name, GLenum target );
00056 
00057 extern void
00058 _mesa_reference_buffer_object(GLcontext *ctx,
00059                               struct gl_buffer_object **ptr,
00060                               struct gl_buffer_object *bufObj);
00061 
00062 extern void
00063 _mesa_buffer_data( GLcontext *ctx, GLenum target, GLsizeiptrARB size,
00064            const GLvoid * data, GLenum usage,
00065            struct gl_buffer_object * bufObj );
00066 
00067 extern void
00068 _mesa_buffer_subdata( GLcontext *ctx, GLenum target, GLintptrARB offset,
00069               GLsizeiptrARB size, const GLvoid * data,
00070               struct gl_buffer_object * bufObj );
00071 
00072 extern void
00073 _mesa_buffer_get_subdata( GLcontext *ctx, GLenum target, GLintptrARB offset,
00074               GLsizeiptrARB size, GLvoid * data,
00075               struct gl_buffer_object * bufObj );
00076 
00077 extern void *
00078 _mesa_buffer_map( GLcontext *ctx, GLenum target, GLenum access,
00079           struct gl_buffer_object * bufObj );
00080 
00081 extern GLboolean
00082 _mesa_buffer_unmap( GLcontext *ctx, GLenum target,
00083                     struct gl_buffer_object * bufObj );
00084 
00085 extern GLboolean
00086 _mesa_validate_pbo_access(GLuint dimensions,
00087                           const struct gl_pixelstore_attrib *pack,
00088                           GLsizei width, GLsizei height, GLsizei depth,
00089                           GLenum format, GLenum type, const GLvoid *ptr);
00090 
00091 extern const GLubyte *
00092 _mesa_map_bitmap_pbo(GLcontext *ctx,
00093                      const struct gl_pixelstore_attrib *unpack,
00094                      const GLubyte *bitmap);
00095 
00096 extern void
00097 _mesa_unmap_bitmap_pbo(GLcontext *ctx,
00098                        const struct gl_pixelstore_attrib *unpack);
00099 
00100 extern const GLvoid *
00101 _mesa_map_drawpix_pbo(GLcontext *ctx,
00102                       const struct gl_pixelstore_attrib *unpack,
00103                       const GLvoid *pixels);
00104 
00105 extern void
00106 _mesa_unmap_drapix_pbo(GLcontext *ctx,
00107                        const struct gl_pixelstore_attrib *unpack);
00108 
00109 
00110 extern void *
00111 _mesa_map_readpix_pbo(GLcontext *ctx,
00112                       const struct gl_pixelstore_attrib *pack,
00113                       GLvoid *dest);
00114 
00115 extern void
00116 _mesa_unmap_readpix_pbo(GLcontext *ctx,
00117                         const struct gl_pixelstore_attrib *pack);
00118 
00119 
00120 
00121 /*
00122  * API functions
00123  */
00124 
00125 extern void GLAPIENTRY
00126 _mesa_BindBufferARB(GLenum target, GLuint buffer);
00127 
00128 extern void GLAPIENTRY
00129 _mesa_DeleteBuffersARB(GLsizei n, const GLuint * buffer);
00130 
00131 extern void GLAPIENTRY
00132 _mesa_GenBuffersARB(GLsizei n, GLuint * buffer);
00133 
00134 extern GLboolean GLAPIENTRY
00135 _mesa_IsBufferARB(GLuint buffer);
00136 
00137 extern void GLAPIENTRY
00138 _mesa_BufferDataARB(GLenum target, GLsizeiptrARB size, const GLvoid * data, GLenum usage);
00139 
00140 extern void GLAPIENTRY
00141 _mesa_BufferSubDataARB(GLenum target, GLintptrARB offset, GLsizeiptrARB size, const GLvoid * data);
00142 
00143 extern void GLAPIENTRY
00144 _mesa_GetBufferSubDataARB(GLenum target, GLintptrARB offset, GLsizeiptrARB size, void * data);
00145 
00146 extern void * GLAPIENTRY
00147 _mesa_MapBufferARB(GLenum target, GLenum access);
00148 
00149 extern GLboolean GLAPIENTRY
00150 _mesa_UnmapBufferARB(GLenum target);
00151 
00152 extern void GLAPIENTRY
00153 _mesa_GetBufferParameterivARB(GLenum target, GLenum pname, GLint *params);
00154 
00155 extern void GLAPIENTRY
00156 _mesa_GetBufferPointervARB(GLenum target, GLenum pname, GLvoid **params);
00157 
00158 #endif

Generated on Sat May 26 2012 04:18:57 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.