MMSFBGL Class Reference

Wrapper class for all supported Open GL versions. More...

#include <mmsfbgl.h>

List of all members.


Public Member Functions

 MMSFBGL ()
 ~MMSFBGL ()
bool init (Display *x_display, int x_screen, Window x_window, int w, int h)
bool terminate ()
bool getResolution (int *w, int *h)
bool swap ()
bool genBuffer (GLuint *bo)
bool deleteBuffer (GLuint bo)
bool bindBuffer (GLenum target, GLuint bo)
bool initVertexBuffer (GLuint vbo, unsigned int size, const GLvoid *data=NULL)
bool initVertexSubBuffer (GLuint vbo, unsigned int offset, unsigned int size, const GLvoid *data)
bool enableVertexBuffer (GLuint vbo)
void disableVertexBuffer ()
bool initIndexBuffer (GLuint ibo, unsigned int size, const GLvoid *data=NULL)
bool initIndexSubBuffer (GLuint ibo, unsigned int offset, unsigned int size, const GLvoid *data)
bool enableIndexBuffer (GLuint ibo)
void disableIndexBuffer ()
bool genTexture (GLuint *tex)
bool deleteTexture (GLuint tex)
bool bindTexture2D (GLuint tex)
bool initTexture2D (GLuint tex, GLenum texture_format, void *buffer, GLenum buffer_format, int sw, int sh)
bool initSubTexture2D (GLuint tex, void *buffer, GLenum buffer_format, int sw, int sh, int dx, int dy)
bool enableTexture2D (GLuint tex)
void disableTexture2D ()
bool genFrameBuffer (GLuint *fbo)
bool deleteFrameBuffer (GLuint fbo)
bool genRenderBuffer (GLuint *rbo)
bool deleteRenderBuffer (GLuint rbo)
bool attachTexture2FrameBuffer (GLuint fbo, GLuint tex)
bool attachRenderBuffer2FrameBuffer (GLuint fbo, GLuint rbo, int width, int height)
bool allocTexture (GLuint tex, int width, int height)
bool allocFBO (GLuint fbo, GLuint tex, int width, int height)
bool allocFBOandRBO (GLuint fbo, GLuint tex, GLuint rbo, int width, int height)
bool freeFBO (GLuint fbo, GLuint tex, GLuint rbo=0)
bool bindFrameBuffer (GLuint ogl)
bool setScissor (GLint x, GLint y, GLsizei width, GLsizei height)
bool disableScissor ()
void enableBlend (GLenum srcRGB=GL_SRC_ALPHA, GLenum dstRGB=GL_ONE_MINUS_SRC_ALPHA, GLenum srcAlpha=GL_ONE, GLenum dstAlpha=GL_ONE_MINUS_SRC_ALPHA)
void disableBlend ()
void enableDepthTest (bool readonly=false)
void disableDepthTest ()
void setDrawingMode ()
void setTexEnvReplace (GLenum format)
void setTexEnvModulate (GLenum format)
void disableArrays ()
bool setCurrentMatrix (MMSMatrix matrix)
bool getCurrentMatrix (MMSMatrix matrix)
bool scaleCurrentMatrix (GLfloat sx, GLfloat sy, GLfloat sz)
bool translateCurrentMatrix (GLfloat tx, GLfloat ty, GLfloat tz)
bool rotateCurrentMatrix (GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
bool getParallelProjectionMatrix (MMSMatrix result, float left, float right, float bottom, float top, float nearZ, float farZ)
bool getCentralProjectionMatrix (MMSMatrix result, float left, float right, float bottom, float top, float nearZ, float farZ)
bool getPerspectiveMatrix (MMSMatrix result, float fovy, float aspect, float nearZ, float farZ)
bool setParallelProjection (float left, float right, float bottom, float top, float nearZ, float farZ)
bool setCentralProjection (float left, float right, float bottom, float top, float nearZ, float farZ)
bool setPerspective (float fovy, float aspect, float nearZ, float farZ)
bool pushCurrentMatrix ()
bool popCurrentMatrix ()
bool clear (unsigned char r=0x00, unsigned char g=0x00, unsigned char b=0x00, unsigned char a=0x00)
bool setColor (unsigned char r, unsigned char g, unsigned char b, unsigned char a)
bool drawLine2D (float x1, float y1, float x2, float y2)
bool drawLine2Di (int x1, int y1, int x2, int y2)
bool drawRectangle2D (float x1, float y1, float x2, float y2)
bool drawRectangle2Di (int x1, int y1, int x2, int y2)
bool fillTriangle (float x1, float y1, float z1, float x2, float y2, float z2, float x3, float y3, float z3)
bool fillTriangle2D (float x1, float y1, float x2, float y2, float x3, float y3)
bool fillRectangle2D (float x1, float y1, float x2, float y2)
bool fillRectangle2Di (int x1, int y1, int x2, int y2)
bool stretchBlit3D (GLuint src_tex, float sx1, float sy1, float sx2, float sy2, float dx1, float dy1, float dz1, float dx2, float dy2, float dz2, float dx3, float dy3, float dz3, float dx4, float dy4, float dz4)
bool stretchBlit (GLuint src_tex, float sx1, float sy1, float sx2, float sy2, float dx1, float dy1, float dx2, float dy2)
bool stretchBliti (GLuint src_tex, int sx1, int sy1, int sx2, int sy2, int sw, int sh, int dx1, int dy1, int dx2, int dy2)
bool stretchBlitBuffer (void *buffer, float sx1, float sy1, float sx2, float sy2, int sw, int sh, float dx1, float dy1, float dx2, float dy2)
bool stretchBlitBufferi (void *buffer, int sx1, int sy1, int sx2, int sy2, int sw, int sh, int dx1, int dy1, int dx2, int dy2)
bool blitBuffer2Texture (GLuint dst_tex, bool realloc, void *buffer, int sw, int sh)
bool drawElements (MMS_VERTEX_ARRAY *vertices, MMS_VERTEX_ARRAY *normals, MMS_VERTEX_ARRAY *texcoords, MMS_INDEX_ARRAY *indices)
bool drawElements (MMS_VERTEX_BUFFER *vertices, MMS_VERTEX_BUFFER *normals, MMS_VERTEX_BUFFER *texcoords, MMS_INDEX_BUFFER *indices)

Private Types

enum  MMSFBGL_SHADER_TYPE { MMSFBGL_SHADER_TYPE_FRAGMENT_SHADER = 0, MMSFBGL_SHADER_TYPE_VERTEX_SHADER }

Private Member Functions

void printImplementationInformation ()
bool getError (const char *where, int line=__LINE__)
bool buildShader (MMSFBGL_SHADER_TYPE shader_type, const char *shader_code, GLuint *shader)
bool linkProgram (GLuint fragment_shader, GLuint vertex_shader, GLuint *program)
bool buildShaderProgram (const char *fragment_shader_code, const char *vertex_shader_code, GLuint *program)
bool buildShaderProgram4Drawing (GLuint *program)
bool buildShaderProgram4Blitting (GLuint *program)
bool buildShaderProgram4ModulateBlitting (GLuint *program)
bool buildShaderProgram4BlittingFromAlpha (GLuint *program)
bool buildShaderProgram4ModulateBlittingFromAlpha (GLuint *program)
void deleteShaders ()
bool initShaders ()
bool useShaderProgram4Drawing ()
bool useShaderProgram4Blitting ()
bool useShaderProgram4ModulateBlitting ()
bool useShaderProgram4BlittingFromAlpha ()
bool useShaderProgram4ModulateBlittingFromAlpha ()

Private Attributes

Display * x_display
Window x_window
bool initialized
int screen_width
int screen_height
GLuint bound_fbo
 frame buffer object which is currently bound
GLuint bound_vbo
 vertex buffer object which is currently bound
GLuint bound_ibo
 index buffer object which is currently bound
GLuint po_draw
 program handle to the fragment and vertex shader used for drawing primitives
GLuint po_blit
 program handle to the fragment and vertex shader used for blitting
GLuint po_modulateblit
 program handle to the fragment and vertex shader used for blitting with source modulation beforehand
GLuint po_blit_fromalpha
 program handle to the fragment and vertex shader used for blitting from alpha
GLuint po_modulateblit_fromalpha
 program handle to the fragment and vertex shader used for blitting from alpha source and modulation beforehand
GLuint po_current
 currently active program
GLint VSMatrixLoc
 matrix location in the vertex shader
bool VSMatrixLoc_initialized
 matrix location in the vertex shader initialized
GLint FSColorLoc
 color location in the fragment shader
bool FSColorLoc_initialized
 color location in the fragment shader initialized
GLint FSTextureLoc
 texture location in the fragment shader
bool FSTextureLoc_initialized
 texture location in the fragment shader initialized
GLint VSTexCoordLoc
 texture coordinates location in the vertex shader
bool VSTexCoordLoc_initialized
 texture coordinates location in the vertex shader initialized
MMSMatrix current_matrix
 current matrix
unsigned char current_color_r
 current color
unsigned char current_color_g
unsigned char current_color_b
unsigned char current_color_a
std::stack< MMSFBGLStackMatrixmatrix_stack
 matrix stack

Classes

class  MMSFBGLStackMatrix

Detailed Description

Wrapper class for all supported Open GL versions.

Author:
Jens Schneider

Definition at line 70 of file mmsfbgl.h.


Member Enumeration Documentation

Enumerator:
MMSFBGL_SHADER_TYPE_FRAGMENT_SHADER 
MMSFBGL_SHADER_TYPE_VERTEX_SHADER 

Definition at line 75 of file mmsfbgl.h.


Constructor & Destructor Documentation

MMSFBGL::MMSFBGL (  ) 

Definition at line 56 of file mmsfbgl.cpp.

MMSFBGL::~MMSFBGL (  ) 

Definition at line 72 of file mmsfbgl.cpp.


Member Function Documentation

void MMSFBGL::printImplementationInformation (  )  [private]

Definition at line 108 of file mmsfbgl.cpp.

bool MMSFBGL::getError ( const char *  where,
int  line = __LINE__ 
) [private]

Definition at line 170 of file mmsfbgl.cpp.

bool MMSFBGL::buildShader ( MMSFBGL_SHADER_TYPE  shader_type,
const char *  shader_code,
GLuint *  shader 
) [private]

Definition at line 229 of file mmsfbgl.cpp.

bool MMSFBGL::linkProgram ( GLuint  fragment_shader,
GLuint  vertex_shader,
GLuint *  program 
) [private]

Definition at line 283 of file mmsfbgl.cpp.

bool MMSFBGL::buildShaderProgram ( const char *  fragment_shader_code,
const char *  vertex_shader_code,
GLuint *  program 
) [private]

Definition at line 341 of file mmsfbgl.cpp.

bool MMSFBGL::buildShaderProgram4Drawing ( GLuint *  program  )  [private]

Definition at line 376 of file mmsfbgl.cpp.

bool MMSFBGL::buildShaderProgram4Blitting ( GLuint *  program  )  [private]

Definition at line 396 of file mmsfbgl.cpp.

bool MMSFBGL::buildShaderProgram4ModulateBlitting ( GLuint *  program  )  [private]

Definition at line 422 of file mmsfbgl.cpp.

bool MMSFBGL::buildShaderProgram4BlittingFromAlpha ( GLuint *  program  )  [private]

Definition at line 449 of file mmsfbgl.cpp.

bool MMSFBGL::buildShaderProgram4ModulateBlittingFromAlpha ( GLuint *  program  )  [private]

Definition at line 477 of file mmsfbgl.cpp.

void MMSFBGL::deleteShaders (  )  [private]

Definition at line 530 of file mmsfbgl.cpp.

bool MMSFBGL::initShaders (  )  [private]

Definition at line 505 of file mmsfbgl.cpp.

bool MMSFBGL::useShaderProgram4Drawing (  )  [private]

Definition at line 1713 of file mmsfbgl.cpp.

bool MMSFBGL::useShaderProgram4Blitting (  )  [private]

Definition at line 1735 of file mmsfbgl.cpp.

bool MMSFBGL::useShaderProgram4ModulateBlitting (  )  [private]

Definition at line 1757 of file mmsfbgl.cpp.

bool MMSFBGL::useShaderProgram4BlittingFromAlpha (  )  [private]

Definition at line 1780 of file mmsfbgl.cpp.

bool MMSFBGL::useShaderProgram4ModulateBlittingFromAlpha (  )  [private]

Definition at line 1803 of file mmsfbgl.cpp.

bool MMSFBGL::init ( Display *  x_display,
int  x_screen,
Window  x_window,
int  w,
int  h 
)

Definition at line 570 of file mmsfbgl.cpp.

bool MMSFBGL::terminate (  ) 

Definition at line 891 of file mmsfbgl.cpp.

bool MMSFBGL::getResolution ( int *  w,
int *  h 
)

Definition at line 914 of file mmsfbgl.cpp.

bool MMSFBGL::swap (  ) 

Definition at line 925 of file mmsfbgl.cpp.

bool MMSFBGL::genBuffer ( GLuint *  bo  ) 

Definition at line 965 of file mmsfbgl.cpp.

bool MMSFBGL::deleteBuffer ( GLuint  bo  ) 

Definition at line 976 of file mmsfbgl.cpp.

bool MMSFBGL::bindBuffer ( GLenum  target,
GLuint  bo 
)

Definition at line 999 of file mmsfbgl.cpp.

bool MMSFBGL::initVertexBuffer ( GLuint  vbo,
unsigned int  size,
const GLvoid *  data = NULL 
)

Definition at line 1041 of file mmsfbgl.cpp.

bool MMSFBGL::initVertexSubBuffer ( GLuint  vbo,
unsigned int  offset,
unsigned int  size,
const GLvoid *  data 
)

Definition at line 1059 of file mmsfbgl.cpp.

bool MMSFBGL::enableVertexBuffer ( GLuint  vbo  ) 

Definition at line 1077 of file mmsfbgl.cpp.

void MMSFBGL::disableVertexBuffer (  ) 

Definition at line 1088 of file mmsfbgl.cpp.

bool MMSFBGL::initIndexBuffer ( GLuint  ibo,
unsigned int  size,
const GLvoid *  data = NULL 
)

Definition at line 1093 of file mmsfbgl.cpp.

bool MMSFBGL::initIndexSubBuffer ( GLuint  ibo,
unsigned int  offset,
unsigned int  size,
const GLvoid *  data 
)

Definition at line 1111 of file mmsfbgl.cpp.

bool MMSFBGL::enableIndexBuffer ( GLuint  ibo  ) 

Definition at line 1129 of file mmsfbgl.cpp.

void MMSFBGL::disableIndexBuffer (  ) 

Definition at line 1140 of file mmsfbgl.cpp.

bool MMSFBGL::genTexture ( GLuint *  tex  ) 

Definition at line 1145 of file mmsfbgl.cpp.

bool MMSFBGL::deleteTexture ( GLuint  tex  ) 

Definition at line 1156 of file mmsfbgl.cpp.

bool MMSFBGL::bindTexture2D ( GLuint  tex  ) 

Definition at line 1193 of file mmsfbgl.cpp.

bool MMSFBGL::initTexture2D ( GLuint  tex,
GLenum  texture_format,
void *  buffer,
GLenum  buffer_format,
int  sw,
int  sh 
)

Definition at line 1225 of file mmsfbgl.cpp.

bool MMSFBGL::initSubTexture2D ( GLuint  tex,
void *  buffer,
GLenum  buffer_format,
int  sw,
int  sh,
int  dx,
int  dy 
)

Definition at line 1252 of file mmsfbgl.cpp.

bool MMSFBGL::enableTexture2D ( GLuint  tex  ) 

Definition at line 1278 of file mmsfbgl.cpp.

void MMSFBGL::disableTexture2D (  ) 

Definition at line 1319 of file mmsfbgl.cpp.

bool MMSFBGL::genFrameBuffer ( GLuint *  fbo  ) 

Definition at line 1328 of file mmsfbgl.cpp.

bool MMSFBGL::deleteFrameBuffer ( GLuint  fbo  ) 

Definition at line 1347 of file mmsfbgl.cpp.

bool MMSFBGL::genRenderBuffer ( GLuint *  rbo  ) 

Definition at line 1377 of file mmsfbgl.cpp.

bool MMSFBGL::deleteRenderBuffer ( GLuint  rbo  ) 

Definition at line 1396 of file mmsfbgl.cpp.

bool MMSFBGL::attachTexture2FrameBuffer ( GLuint  fbo,
GLuint  tex 
)

Definition at line 1426 of file mmsfbgl.cpp.

bool MMSFBGL::attachRenderBuffer2FrameBuffer ( GLuint  fbo,
GLuint  rbo,
int  width,
int  height 
)

Definition at line 1458 of file mmsfbgl.cpp.

bool MMSFBGL::allocTexture ( GLuint  tex,
int  width,
int  height 
)

Definition at line 1502 of file mmsfbgl.cpp.

bool MMSFBGL::allocFBO ( GLuint  fbo,
GLuint  tex,
int  width,
int  height 
)

Definition at line 1513 of file mmsfbgl.cpp.

bool MMSFBGL::allocFBOandRBO ( GLuint  fbo,
GLuint  tex,
GLuint  rbo,
int  width,
int  height 
)

Definition at line 1527 of file mmsfbgl.cpp.

bool MMSFBGL::freeFBO ( GLuint  fbo,
GLuint  tex,
GLuint  rbo = 0 
)

Definition at line 1545 of file mmsfbgl.cpp.

bool MMSFBGL::bindFrameBuffer ( GLuint  ogl  ) 

Definition at line 1558 of file mmsfbgl.cpp.

bool MMSFBGL::setScissor ( GLint  x,
GLint  y,
GLsizei  width,
GLsizei  height 
)

Definition at line 1586 of file mmsfbgl.cpp.

bool MMSFBGL::disableScissor (  ) 

Definition at line 1599 of file mmsfbgl.cpp.

void MMSFBGL::enableBlend ( GLenum  srcRGB = GL_SRC_ALPHA,
GLenum  dstRGB = GL_ONE_MINUS_SRC_ALPHA,
GLenum  srcAlpha = GL_ONE,
GLenum  dstAlpha = GL_ONE_MINUS_SRC_ALPHA 
)

Definition at line 1610 of file mmsfbgl.cpp.

void MMSFBGL::disableBlend (  ) 

Definition at line 1618 of file mmsfbgl.cpp.

void MMSFBGL::enableDepthTest ( bool  readonly = false  ) 

Definition at line 1624 of file mmsfbgl.cpp.

void MMSFBGL::disableDepthTest (  ) 

Definition at line 1649 of file mmsfbgl.cpp.

void MMSFBGL::setDrawingMode (  ) 

Definition at line 1657 of file mmsfbgl.cpp.

void MMSFBGL::setTexEnvReplace ( GLenum  format  ) 

Definition at line 1663 of file mmsfbgl.cpp.

void MMSFBGL::setTexEnvModulate ( GLenum  format  ) 

Definition at line 1679 of file mmsfbgl.cpp.

void MMSFBGL::disableArrays (  ) 

Definition at line 1696 of file mmsfbgl.cpp.

bool MMSFBGL::setCurrentMatrix ( MMSMatrix  matrix  ) 

Definition at line 1826 of file mmsfbgl.cpp.

bool MMSFBGL::getCurrentMatrix ( MMSMatrix  matrix  ) 

Definition at line 1864 of file mmsfbgl.cpp.

bool MMSFBGL::scaleCurrentMatrix ( GLfloat  sx,
GLfloat  sy,
GLfloat  sz 
)

Definition at line 1874 of file mmsfbgl.cpp.

bool MMSFBGL::translateCurrentMatrix ( GLfloat  tx,
GLfloat  ty,
GLfloat  tz 
)

Definition at line 1883 of file mmsfbgl.cpp.

bool MMSFBGL::rotateCurrentMatrix ( GLfloat  angle,
GLfloat  x,
GLfloat  y,
GLfloat  z 
)

Definition at line 1892 of file mmsfbgl.cpp.

bool MMSFBGL::getParallelProjectionMatrix ( MMSMatrix  result,
float  left,
float  right,
float  bottom,
float  top,
float  nearZ,
float  farZ 
)

Definition at line 1902 of file mmsfbgl.cpp.

bool MMSFBGL::getCentralProjectionMatrix ( MMSMatrix  result,
float  left,
float  right,
float  bottom,
float  top,
float  nearZ,
float  farZ 
)

Definition at line 1918 of file mmsfbgl.cpp.

bool MMSFBGL::getPerspectiveMatrix ( MMSMatrix  result,
float  fovy,
float  aspect,
float  nearZ,
float  farZ 
)

Definition at line 1934 of file mmsfbgl.cpp.

bool MMSFBGL::setParallelProjection ( float  left,
float  right,
float  bottom,
float  top,
float  nearZ,
float  farZ 
)

Definition at line 1951 of file mmsfbgl.cpp.

bool MMSFBGL::setCentralProjection ( float  left,
float  right,
float  bottom,
float  top,
float  nearZ,
float  farZ 
)

Definition at line 1964 of file mmsfbgl.cpp.

bool MMSFBGL::setPerspective ( float  fovy,
float  aspect,
float  nearZ,
float  farZ 
)

Definition at line 1977 of file mmsfbgl.cpp.

bool MMSFBGL::pushCurrentMatrix (  ) 

Definition at line 1993 of file mmsfbgl.cpp.

bool MMSFBGL::popCurrentMatrix (  ) 

Definition at line 2002 of file mmsfbgl.cpp.

bool MMSFBGL::clear ( unsigned char  r = 0x00,
unsigned char  g = 0x00,
unsigned char  b = 0x00,
unsigned char  a = 0x00 
)

Definition at line 2019 of file mmsfbgl.cpp.

bool MMSFBGL::setColor ( unsigned char  r,
unsigned char  g,
unsigned char  b,
unsigned char  a 
)

Definition at line 2050 of file mmsfbgl.cpp.

bool MMSFBGL::drawLine2D ( float  x1,
float  y1,
float  x2,
float  y2 
)

Definition at line 2093 of file mmsfbgl.cpp.

bool MMSFBGL::drawLine2Di ( int  x1,
int  y1,
int  x2,
int  y2 
)

Definition at line 2129 of file mmsfbgl.cpp.

bool MMSFBGL::drawRectangle2D ( float  x1,
float  y1,
float  x2,
float  y2 
)

Definition at line 2142 of file mmsfbgl.cpp.

bool MMSFBGL::drawRectangle2Di ( int  x1,
int  y1,
int  x2,
int  y2 
)

Definition at line 2181 of file mmsfbgl.cpp.

bool MMSFBGL::fillTriangle ( float  x1,
float  y1,
float  z1,
float  x2,
float  y2,
float  z2,
float  x3,
float  y3,
float  z3 
)

Definition at line 2192 of file mmsfbgl.cpp.

bool MMSFBGL::fillTriangle2D ( float  x1,
float  y1,
float  x2,
float  y2,
float  x3,
float  y3 
)

Definition at line 2215 of file mmsfbgl.cpp.

bool MMSFBGL::fillRectangle2D ( float  x1,
float  y1,
float  x2,
float  y2 
)

Definition at line 2253 of file mmsfbgl.cpp.

bool MMSFBGL::fillRectangle2Di ( int  x1,
int  y1,
int  x2,
int  y2 
)

Definition at line 2286 of file mmsfbgl.cpp.

bool MMSFBGL::stretchBlit3D ( GLuint  src_tex,
float  sx1,
float  sy1,
float  sx2,
float  sy2,
float  dx1,
float  dy1,
float  dz1,
float  dx2,
float  dy2,
float  dz2,
float  dx3,
float  dy3,
float  dz3,
float  dx4,
float  dy4,
float  dz4 
)

Definition at line 2294 of file mmsfbgl.cpp.

bool MMSFBGL::stretchBlit ( GLuint  src_tex,
float  sx1,
float  sy1,
float  sx2,
float  sy2,
float  dx1,
float  dy1,
float  dx2,
float  dy2 
)

Definition at line 2374 of file mmsfbgl.cpp.

bool MMSFBGL::stretchBliti ( GLuint  src_tex,
int  sx1,
int  sy1,
int  sx2,
int  sy2,
int  sw,
int  sh,
int  dx1,
int  dy1,
int  dx2,
int  dy2 
)

Definition at line 2448 of file mmsfbgl.cpp.

bool MMSFBGL::stretchBlitBuffer ( void *  buffer,
float  sx1,
float  sy1,
float  sx2,
float  sy2,
int  sw,
int  sh,
float  dx1,
float  dy1,
float  dx2,
float  dy2 
)

Definition at line 2465 of file mmsfbgl.cpp.

bool MMSFBGL::stretchBlitBufferi ( void *  buffer,
int  sx1,
int  sy1,
int  sx2,
int  sy2,
int  sw,
int  sh,
int  dx1,
int  dy1,
int  dx2,
int  dy2 
)

Definition at line 2485 of file mmsfbgl.cpp.

bool MMSFBGL::blitBuffer2Texture ( GLuint  dst_tex,
bool  realloc,
void *  buffer,
int  sw,
int  sh 
)

Definition at line 2505 of file mmsfbgl.cpp.

bool MMSFBGL::drawElements ( MMS_VERTEX_ARRAY vertices,
MMS_VERTEX_ARRAY normals,
MMS_VERTEX_ARRAY texcoords,
MMS_INDEX_ARRAY indices 
)

Definition at line 2521 of file mmsfbgl.cpp.

bool MMSFBGL::drawElements ( MMS_VERTEX_BUFFER vertices,
MMS_VERTEX_BUFFER normals,
MMS_VERTEX_BUFFER texcoords,
MMS_INDEX_BUFFER indices 
)

Definition at line 2743 of file mmsfbgl.cpp.


Member Data Documentation

Display* MMSFBGL::x_display [private]

Definition at line 81 of file mmsfbgl.h.

Window MMSFBGL::x_window [private]

Definition at line 82 of file mmsfbgl.h.

bool MMSFBGL::initialized [private]

Definition at line 97 of file mmsfbgl.h.

int MMSFBGL::screen_width [private]

Definition at line 99 of file mmsfbgl.h.

int MMSFBGL::screen_height [private]

Definition at line 100 of file mmsfbgl.h.

GLuint MMSFBGL::bound_fbo [private]

frame buffer object which is currently bound

Definition at line 103 of file mmsfbgl.h.

GLuint MMSFBGL::bound_vbo [private]

vertex buffer object which is currently bound

Definition at line 106 of file mmsfbgl.h.

GLuint MMSFBGL::bound_ibo [private]

index buffer object which is currently bound

Definition at line 109 of file mmsfbgl.h.

GLuint MMSFBGL::po_draw [private]

program handle to the fragment and vertex shader used for drawing primitives

Definition at line 112 of file mmsfbgl.h.

GLuint MMSFBGL::po_blit [private]

program handle to the fragment and vertex shader used for blitting

Definition at line 115 of file mmsfbgl.h.

GLuint MMSFBGL::po_modulateblit [private]

program handle to the fragment and vertex shader used for blitting with source modulation beforehand

Definition at line 118 of file mmsfbgl.h.

GLuint MMSFBGL::po_blit_fromalpha [private]

program handle to the fragment and vertex shader used for blitting from alpha

Definition at line 121 of file mmsfbgl.h.

program handle to the fragment and vertex shader used for blitting from alpha source and modulation beforehand

Definition at line 124 of file mmsfbgl.h.

GLuint MMSFBGL::po_current [private]

currently active program

Definition at line 127 of file mmsfbgl.h.

GLint MMSFBGL::VSMatrixLoc [private]

matrix location in the vertex shader

Definition at line 130 of file mmsfbgl.h.

matrix location in the vertex shader initialized

Definition at line 133 of file mmsfbgl.h.

GLint MMSFBGL::FSColorLoc [private]

color location in the fragment shader

Definition at line 136 of file mmsfbgl.h.

color location in the fragment shader initialized

Definition at line 139 of file mmsfbgl.h.

GLint MMSFBGL::FSTextureLoc [private]

texture location in the fragment shader

Definition at line 142 of file mmsfbgl.h.

texture location in the fragment shader initialized

Definition at line 145 of file mmsfbgl.h.

GLint MMSFBGL::VSTexCoordLoc [private]

texture coordinates location in the vertex shader

Definition at line 148 of file mmsfbgl.h.

texture coordinates location in the vertex shader initialized

Definition at line 151 of file mmsfbgl.h.

current matrix

Definition at line 154 of file mmsfbgl.h.

unsigned char MMSFBGL::current_color_r [private]

current color

Definition at line 157 of file mmsfbgl.h.

unsigned char MMSFBGL::current_color_g [private]

Definition at line 158 of file mmsfbgl.h.

unsigned char MMSFBGL::current_color_b [private]

Definition at line 159 of file mmsfbgl.h.

unsigned char MMSFBGL::current_color_a [private]

Definition at line 160 of file mmsfbgl.h.

matrix stack

Definition at line 174 of file mmsfbgl.h.


The documentation for this class was generated from the following files: