Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenglfbdev.h
Go to the documentation of this file.
00001 /* 00002 * Mesa 3-D graphics library 00003 * Version: 6.5 00004 * 00005 * Copyright (C) 1999-2005 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 GLFBDEV_H 00027 #define GLFBDEV_H 00028 00029 00030 /* avoid including linux/fb.h */ 00031 struct fb_fix_screeninfo; 00032 struct fb_var_screeninfo; 00033 00034 00035 /* public types */ 00036 typedef struct GLFBDevVisualRec *GLFBDevVisualPtr; 00037 typedef struct GLFBDevBufferRec *GLFBDevBufferPtr; 00038 typedef struct GLFBDevContextRec *GLFBDevContextPtr; 00039 00040 00041 /* API version */ 00042 #define GLFBDEV_VERSION_1_0 1 00043 00044 00045 /* For glFBDevCreateVisual */ 00046 #define GLFBDEV_DOUBLE_BUFFER 100 00047 #define GLFBDEV_COLOR_INDEX 101 00048 #define GLFBDEV_DEPTH_SIZE 102 00049 #define GLFBDEV_STENCIL_SIZE 103 00050 #define GLFBDEV_ACCUM_SIZE 104 00051 #define GLFBDEV_LEVEL 105 00052 #define GLFBDEV_MULTISAMPLE 106 00053 #define GLFBDEV_NONE 0 00054 00055 /* For glFBDevGetString */ 00056 #define GLFBDEV_VERSION 200 00057 #define GLFBDEV_VENDOR 201 00058 00059 00060 /* Misc functions */ 00061 00062 extern const char * 00063 glFBDevGetString( int str ); 00064 00065 00066 typedef void (*GLFBDevProc)(); 00067 00068 00069 extern GLFBDevProc 00070 glFBDevGetProcAddress( const char *procName ); 00071 00072 00073 00080 extern GLFBDevVisualPtr 00081 glFBDevCreateVisual( const struct fb_fix_screeninfo *fixInfo, 00082 const struct fb_var_screeninfo *varInfo, 00083 const int *attribs ); 00084 00085 extern void 00086 glFBDevDestroyVisual( GLFBDevVisualPtr visual ); 00087 00088 extern int 00089 glFBDevGetVisualAttrib( const GLFBDevVisualPtr visual, int attrib); 00090 00091 00092 00102 extern GLFBDevBufferPtr 00103 glFBDevCreateBuffer( const struct fb_fix_screeninfo *fixInfo, 00104 const struct fb_var_screeninfo *varInfo, 00105 const GLFBDevVisualPtr visual, 00106 void *frontBuffer, void *backBuffer, size_t size ); 00107 00108 extern void 00109 glFBDevDestroyBuffer( GLFBDevBufferPtr buffer ); 00110 00111 extern int 00112 glFBDevGetBufferAttrib( const GLFBDevBufferPtr buffer, int attrib); 00113 00114 extern GLFBDevBufferPtr 00115 glFBDevGetCurrentDrawBuffer( void ); 00116 00117 extern GLFBDevBufferPtr 00118 glFBDevGetCurrentReadBuffer( void ); 00119 00120 extern void 00121 glFBDevSwapBuffers( GLFBDevBufferPtr buffer ); 00122 00123 00124 00131 extern GLFBDevContextPtr 00132 glFBDevCreateContext( const GLFBDevVisualPtr visual, GLFBDevContextPtr share ); 00133 00134 extern void 00135 glFBDevDestroyContext( GLFBDevContextPtr context ); 00136 00137 extern int 00138 glFBDevGetContextAttrib( const GLFBDevContextPtr context, int attrib); 00139 00140 extern GLFBDevContextPtr 00141 glFBDevGetCurrentContext( void ); 00142 00143 extern int 00144 glFBDevMakeCurrent( GLFBDevContextPtr context, 00145 GLFBDevBufferPtr drawBuffer, 00146 GLFBDevBufferPtr readBuffer ); 00147 00148 00149 #endif /* GLFBDEV_H */ Generated on Sat May 26 2012 04:18:40 for ReactOS by
1.7.6.1
|