| TerraLib 4.1

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

- File List
- File Members

Defines | Typedefs | Functions
E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/drivers/GL/glfbdev.h File Reference

Go to the source code of this file.

## Defines

#define | GLFBDEV_VERSION_1_0 1
#define | GLFBDEV_DOUBLE_BUFFER 100
#define | GLFBDEV_COLOR_INDEX 101
#define | GLFBDEV_DEPTH_SIZE 102
#define | GLFBDEV_STENCIL_SIZE 103
#define | GLFBDEV_ACCUM_SIZE 104
#define | GLFBDEV_LEVEL 105
#define | GLFBDEV_NONE 0
#define | GLFBDEV_VERSION 200
#define | GLFBDEV_VENDOR 201

## Typedefs

typedef struct GLFBDevVisualRec * | GLFBDevVisualPtr
typedef struct GLFBDevBufferRec * | GLFBDevBufferPtr
typedef struct GLFBDevContextRec * | GLFBDevContextPtr
typedef void(* | GLFBDevProc )()

## Functions

const char * | glFBDevGetString (int str)
GLFBDevProc | glFBDevGetProcAddress (const char *procName)
GLFBDevVisualPtr | glFBDevCreateVisual (const struct fb_fix_screeninfo *fixInfo, const struct fb_var_screeninfo *varInfo, const int *attribs)
void | glFBDevDestroyVisual (GLFBDevVisualPtr visual)
int | glFBDevGetVisualAttrib (const GLFBDevVisualPtr visual, int attrib)
GLFBDevBufferPtr | glFBDevCreateBuffer (const struct fb_fix_screeninfo *fixInfo, const struct fb_var_screeninfo *varInfo, const GLFBDevVisualPtr visual, void *frontBuffer, void *backBuffer, size_t size)
void | glFBDevDestroyBuffer (GLFBDevBufferPtr buffer)
int | glFBDevGetBufferAttrib (const GLFBDevBufferPtr buffer, int attrib)
GLFBDevBufferPtr | glFBDevGetCurrentDrawBuffer (void)
GLFBDevBufferPtr | glFBDevGetCurrentReadBuffer (void)
void | glFBDevSwapBuffers (GLFBDevBufferPtr buffer)
GLFBDevContextPtr | glFBDevCreateContext (const GLFBDevVisualPtr visual, GLFBDevContextPtr share)
void | glFBDevDestroyContext (GLFBDevContextPtr context)
int | glFBDevGetContextAttrib (const GLFBDevContextPtr context, int attrib)
GLFBDevContextPtr | glFBDevGetCurrentContext (void)
int | glFBDevMakeCurrent (GLFBDevContextPtr context, GLFBDevBufferPtr drawBuffer, GLFBDevBufferPtr readBuffer)

## Define Documentation

#define GLFBDEV_ACCUM_SIZE 104

#define GLFBDEV_COLOR_INDEX 101

#define GLFBDEV_DEPTH_SIZE 102

#define GLFBDEV_DOUBLE_BUFFER 100

#define GLFBDEV_LEVEL 105

#define GLFBDEV_NONE 0

#define GLFBDEV_STENCIL_SIZE 103

#define GLFBDEV_VENDOR 201

#define GLFBDEV_VERSION 200

#define GLFBDEV_VERSION_1_0 1

## Typedef Documentation

typedef struct GLFBDevBufferRec* GLFBDevBufferPtr

typedef struct GLFBDevContextRec* GLFBDevContextPtr

typedef void(* GLFBDevProc)()

typedef struct GLFBDevVisualRec* GLFBDevVisualPtr

## Function Documentation

GLFBDevBufferPtr glFBDevCreateBuffer | ( | const struct fb_fix_screeninfo * | fixInfo,
|  | const struct fb_var_screeninfo * | varInfo,
|  | const GLFBDevVisualPtr | visual,
|  | void * | frontBuffer,
|  | void * | backBuffer,
|  | size_t | size
| ) |  |

Create a GLFBDevBuffer.

Parameters:

  fixInfo,varInfo | - needed in order to get the screen size (resolution), etc.
  visual | - as returned by glFBDevCreateVisual()
  frontBuffer | - address of front color buffer
  backBuffer | - address of back color buffer (may be NULL)
  size | - size of the color buffer(s) in bytes.

GLFBDevContextPtr glFBDevCreateContext | ( | const GLFBDevVisualPtr | visual,
|  | GLFBDevContextPtr | share
| ) |  |

Create a GLFBDevContext.

Parameters:

  visual | - as created by glFBDevCreateVisual.
  share | - specifies another context with which to share textures, display lists, etc. (may be NULL).

GLFBDevVisualPtr glFBDevCreateVisual | ( | const struct fb_fix_screeninfo * | fixInfo,
|  | const struct fb_var_screeninfo * | varInfo,
|  | const int * | attribs
| ) |  |

Create a GLFBDevVisual.

Parameters:

  fixInfo | - needed to get the visual types, etc.
  varInfo | - needed to get the bits_per_pixel, etc.
  attribs | - for requesting depth, stencil, accum buffers, etc.

void glFBDevDestroyBuffer | ( | GLFBDevBufferPtr | buffer | ) |

void glFBDevDestroyContext | ( | GLFBDevContextPtr | context | ) |

void glFBDevDestroyVisual | ( | GLFBDevVisualPtr | visual | ) |

int glFBDevGetBufferAttrib | ( | const GLFBDevBufferPtr | buffer,
|  | int | attrib
| ) |  |

int glFBDevGetContextAttrib | ( | const GLFBDevContextPtr | context,
|  | int | attrib
| ) |  |

GLFBDevContextPtr glFBDevGetCurrentContext | ( | void |  | ) |

GLFBDevBufferPtr glFBDevGetCurrentDrawBuffer | ( | void |  | ) |

GLFBDevBufferPtr glFBDevGetCurrentReadBuffer | ( | void |  | ) |

GLFBDevProc glFBDevGetProcAddress | ( | const char * | procName | ) |

const char* glFBDevGetString | ( | int | str | ) |

int glFBDevGetVisualAttrib | ( | const GLFBDevVisualPtr | visual,
|  | int | attrib
| ) |  |

int glFBDevMakeCurrent | ( | GLFBDevContextPtr | context,
|  | GLFBDevBufferPtr | drawBuffer,
|  | GLFBDevBufferPtr | readBuffer
| ) |  |

void glFBDevSwapBuffers | ( | GLFBDevBufferPtr | buffer | ) |

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines