Back to index

salome-gui  6.5.0
Defines | Typedefs | Functions | Variables
OpenGLUtils_FrameBuffer.cxx File Reference
#include "OpenGLUtils_FrameBuffer.h"
#include <utilities.h>
#include <cstring>
#include <GL/glx.h>
#include <dlfcn.h>

Go to the source code of this file.

Defines

#define GLX_GLXEXT_LEGACY
#define APIENTRY
#define APIENTRYP   APIENTRY *
#define GL_FRAMEBUFFER_EXT   0x8D40
#define GL_RENDERBUFFER_EXT   0x8D41
#define GL_COLOR_ATTACHMENT0_EXT   0x8CE0
#define GL_DEPTH_ATTACHMENT_EXT   0x8D00
#define GL_FRAMEBUFFER_COMPLETE_EXT   0x8CD5
#define GL_GetProcAddress(x)   glXGetProcAddressARB( (const GLubyte*)x )

Typedefs

typedef GLuint * framebuffers
typedef GLuint framebuffer
typedef GLenum attachment
typedef GLenum GLenum textarget
typedef GLenum GLenum GLuint texture
typedef GLenum GLenum GLuint GLint level
typedef GLuint * renderbuffers
typedef GLuint renderbuffer
typedef GLenum internalformat
typedef GLenum GLsizei width
typedef GLenum GLsizei GLsizei height
typedef GLenum GLenum renderbuffertarget

Functions

typedef void (APIENTRYP PFNGLGENFRAMEBUFFERSEXTPROC)(GLsizei n
typedef GLenum (APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC)(GLenum target)
bool InitializeEXT ()

Variables

static PFNGLGENFRAMEBUFFERSEXTPROC vglGenFramebuffersEXT = NULL
static PFNGLBINDFRAMEBUFFEREXTPROC vglBindFramebufferEXT = NULL
static
PFNGLFRAMEBUFFERTEXTURE2DEXTPROC 
vglFramebufferTexture2DEXT = NULL
static
PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC 
vglCheckFramebufferStatusEXT = NULL
static
PFNGLDELETEFRAMEBUFFERSEXTPROC 
vglDeleteFramebuffersEXT = NULL
static PFNGLGENRENDERBUFFERSEXTPROC vglGenRenderbuffersEXT = NULL
static PFNGLBINDRENDERBUFFEREXTPROC vglBindRenderbufferEXT = NULL
static
PFNGLRENDERBUFFERSTORAGEEXTPROC 
vglRenderbufferStorageEXT = NULL
static
PFNGLFRAMEBUFFERRENDERBUFFEREXTPROC 
vglFramebufferRenderbufferEXT = NULL
static
PFNGLDELETERENDERBUFFERSEXTPROC 
vglDeleteRenderbuffersEXT = NULL
static bool IsEXTInitialized = InitializeEXT()

Define Documentation

#define APIENTRY

Definition at line 40 of file OpenGLUtils_FrameBuffer.cxx.

#define APIENTRYP   APIENTRY *

Definition at line 43 of file OpenGLUtils_FrameBuffer.cxx.

#define GL_COLOR_ATTACHMENT0_EXT   0x8CE0

Definition at line 55 of file OpenGLUtils_FrameBuffer.cxx.

#define GL_DEPTH_ATTACHMENT_EXT   0x8D00

Definition at line 59 of file OpenGLUtils_FrameBuffer.cxx.

#define GL_FRAMEBUFFER_COMPLETE_EXT   0x8CD5

Definition at line 63 of file OpenGLUtils_FrameBuffer.cxx.

#define GL_FRAMEBUFFER_EXT   0x8D40

Definition at line 47 of file OpenGLUtils_FrameBuffer.cxx.

#define GL_GetProcAddress (   x)    glXGetProcAddressARB( (const GLubyte*)x )

Definition at line 89 of file OpenGLUtils_FrameBuffer.cxx.

#define GL_RENDERBUFFER_EXT   0x8D41

Definition at line 51 of file OpenGLUtils_FrameBuffer.cxx.

Definition at line 31 of file OpenGLUtils_FrameBuffer.cxx.


Typedef Documentation

typedef GLenum attachment

Definition at line 68 of file OpenGLUtils_FrameBuffer.cxx.

typedef GLuint framebuffer

Definition at line 67 of file OpenGLUtils_FrameBuffer.cxx.

typedef const GLuint * framebuffers

Definition at line 66 of file OpenGLUtils_FrameBuffer.cxx.

typedef GLenum GLsizei GLsizei height

Definition at line 73 of file OpenGLUtils_FrameBuffer.cxx.

Definition at line 73 of file OpenGLUtils_FrameBuffer.cxx.

typedef GLenum GLenum GLuint GLint level

Definition at line 68 of file OpenGLUtils_FrameBuffer.cxx.

typedef GLenum GLenum GLuint renderbuffer

Definition at line 72 of file OpenGLUtils_FrameBuffer.cxx.

typedef const GLuint * renderbuffers

Definition at line 71 of file OpenGLUtils_FrameBuffer.cxx.

Definition at line 74 of file OpenGLUtils_FrameBuffer.cxx.

Definition at line 68 of file OpenGLUtils_FrameBuffer.cxx.

typedef GLenum GLenum GLuint texture

Definition at line 68 of file OpenGLUtils_FrameBuffer.cxx.

typedef GLenum GLsizei width

Definition at line 73 of file OpenGLUtils_FrameBuffer.cxx.


Function Documentation

typedef GLenum ( APIENTRYP  PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC)
bool InitializeEXT ( )

Definition at line 94 of file OpenGLUtils_FrameBuffer.cxx.

{
  vglGenFramebuffersEXT = (PFNGLGENFRAMEBUFFERSEXTPROC)GL_GetProcAddress( "glGenFramebuffersEXT" );
  vglBindFramebufferEXT = (PFNGLBINDFRAMEBUFFEREXTPROC)GL_GetProcAddress( "glBindFramebufferEXT" );
  vglFramebufferTexture2DEXT = (PFNGLFRAMEBUFFERTEXTURE2DEXTPROC)GL_GetProcAddress( "glFramebufferTexture2DEXT" );
  vglCheckFramebufferStatusEXT = (PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC)GL_GetProcAddress( "glCheckFramebufferStatusEXT" );
  vglDeleteFramebuffersEXT = (PFNGLDELETEFRAMEBUFFERSEXTPROC)GL_GetProcAddress( "glDeleteFramebuffersEXT" );
  vglGenRenderbuffersEXT = (PFNGLGENRENDERBUFFERSEXTPROC)GL_GetProcAddress( "glGenRenderbuffersEXT" );
  vglBindRenderbufferEXT = (PFNGLBINDRENDERBUFFEREXTPROC)GL_GetProcAddress( "glBindRenderbufferEXT" );
  vglRenderbufferStorageEXT = (PFNGLRENDERBUFFERSTORAGEEXTPROC)GL_GetProcAddress( "glRenderbufferStorageEXT" );
  vglFramebufferRenderbufferEXT = (PFNGLFRAMEBUFFERRENDERBUFFEREXTPROC)GL_GetProcAddress( "glFramebufferRenderbufferEXT" );
  vglDeleteRenderbuffersEXT = (PFNGLDELETERENDERBUFFERSEXTPROC)GL_GetProcAddress( "glDeleteRenderbuffersEXT" );

  bool ok = vglGenFramebuffersEXT && vglBindFramebufferEXT && vglFramebufferTexture2DEXT &&
            vglCheckFramebufferStatusEXT && vglDeleteFramebuffersEXT && vglGenRenderbuffersEXT &&
            vglBindRenderbufferEXT && vglRenderbufferStorageEXT && vglFramebufferRenderbufferEXT &&
            vglDeleteRenderbuffersEXT;

  return ok;
}
typedef void ( APIENTRYP  PFNGLGENFRAMEBUFFERSEXTPROC)

Here is the caller graph for this function:


Variable Documentation

bool IsEXTInitialized = InitializeEXT() [static]

Definition at line 115 of file OpenGLUtils_FrameBuffer.cxx.

PFNGLBINDFRAMEBUFFEREXTPROC vglBindFramebufferEXT = NULL [static]

Definition at line 78 of file OpenGLUtils_FrameBuffer.cxx.

PFNGLBINDRENDERBUFFEREXTPROC vglBindRenderbufferEXT = NULL [static]

Definition at line 83 of file OpenGLUtils_FrameBuffer.cxx.

PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC vglCheckFramebufferStatusEXT = NULL [static]

Definition at line 80 of file OpenGLUtils_FrameBuffer.cxx.

PFNGLDELETEFRAMEBUFFERSEXTPROC vglDeleteFramebuffersEXT = NULL [static]

Definition at line 81 of file OpenGLUtils_FrameBuffer.cxx.

PFNGLDELETERENDERBUFFERSEXTPROC vglDeleteRenderbuffersEXT = NULL [static]

Definition at line 86 of file OpenGLUtils_FrameBuffer.cxx.

PFNGLFRAMEBUFFERRENDERBUFFEREXTPROC vglFramebufferRenderbufferEXT = NULL [static]

Definition at line 85 of file OpenGLUtils_FrameBuffer.cxx.

PFNGLFRAMEBUFFERTEXTURE2DEXTPROC vglFramebufferTexture2DEXT = NULL [static]

Definition at line 79 of file OpenGLUtils_FrameBuffer.cxx.

PFNGLGENFRAMEBUFFERSEXTPROC vglGenFramebuffersEXT = NULL [static]

Definition at line 77 of file OpenGLUtils_FrameBuffer.cxx.

PFNGLGENRENDERBUFFERSEXTPROC vglGenRenderbuffersEXT = NULL [static]

Definition at line 82 of file OpenGLUtils_FrameBuffer.cxx.

PFNGLRENDERBUFFERSTORAGEEXTPROC vglRenderbufferStorageEXT = NULL [static]

Definition at line 84 of file OpenGLUtils_FrameBuffer.cxx.