| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- File List
- File Members

E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/drivers/GL/glfbdev.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_NONE              0
    00053
    00054 /* For glFBDevGetString */
    00055 #define GLFBDEV_VERSION         200
    00056 #define GLFBDEV_VENDOR          201
    00057
    00058
    00059 /* Misc functions */
    00060
    00061 extern const char *
    00062 glFBDevGetString( int str );
    00063
    00064
    00065 typedef void (*GLFBDevProc)();
    00066
    00067
    00068 extern GLFBDevProc
    00069 glFBDevGetProcAddress( const char *procName );
    00070
    00071
    00072
    00079 extern GLFBDevVisualPtr
    00080 glFBDevCreateVisual( const struct fb_fix_screeninfo *fixInfo,
    00081                      const struct fb_var_screeninfo *varInfo,
    00082                      const int *attribs );
    00083
    00084 extern void
    00085 glFBDevDestroyVisual( GLFBDevVisualPtr visual );
    00086
    00087 extern int
    00088 glFBDevGetVisualAttrib( const GLFBDevVisualPtr visual, int attrib);
    00089
    00090
    00091
    00101 extern GLFBDevBufferPtr
    00102 glFBDevCreateBuffer( const struct fb_fix_screeninfo *fixInfo,
    00103                      const struct fb_var_screeninfo *varInfo,
    00104                      const GLFBDevVisualPtr visual,
    00105                      void *frontBuffer, void *backBuffer, size_t size );
    00106
    00107 extern void
    00108 glFBDevDestroyBuffer( GLFBDevBufferPtr buffer );
    00109
    00110 extern int
    00111 glFBDevGetBufferAttrib( const GLFBDevBufferPtr buffer, int attrib);
    00112
    00113 extern GLFBDevBufferPtr
    00114 glFBDevGetCurrentDrawBuffer( void );
    00115
    00116 extern GLFBDevBufferPtr
    00117 glFBDevGetCurrentReadBuffer( void );
    00118
    00119 extern void
    00120 glFBDevSwapBuffers( GLFBDevBufferPtr buffer );
    00121
    00122
    00123
    00130 extern GLFBDevContextPtr
    00131 glFBDevCreateContext( const GLFBDevVisualPtr visual, GLFBDevContextPtr share );
    00132
    00133 extern void
    00134 glFBDevDestroyContext( GLFBDevContextPtr context );
    00135
    00136 extern int
    00137 glFBDevGetContextAttrib( const GLFBDevContextPtr context, int attrib);
    00138
    00139 extern GLFBDevContextPtr
    00140 glFBDevGetCurrentContext( void );
    00141
    00142 extern int
    00143 glFBDevMakeCurrent( GLFBDevContextPtr context,
    00144                     GLFBDevBufferPtr drawBuffer,
    00145                     GLFBDevBufferPtr readBuffer );
    00146
    00147
    00148 #endif /* GLFBDEV_H */

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines