#include <mmsfbgl.h>
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 | |
bool | useKMS |
use kms graphics system | |
unsigned char | current_color_r |
current color | |
unsigned char | current_color_g |
unsigned char | current_color_b |
unsigned char | current_color_a |
std::stack< MMSFBGLStackMatrix > | matrix_stack |
matrix stack | |
Classes | |
class | MMSFBGLStackMatrix |
Definition at line 71 of file mmsfbgl.h.
enum MMSFBGL::MMSFBGL_SHADER_TYPE [private] |
MMSFBGL::MMSFBGL | ( | ) |
Definition at line 57 of file mmsfbgl.cpp.
MMSFBGL::~MMSFBGL | ( | ) |
Definition at line 81 of file mmsfbgl.cpp.
void MMSFBGL::printImplementationInformation | ( | ) | [private] |
Definition at line 117 of file mmsfbgl.cpp.
bool MMSFBGL::getError | ( | const char * | where, | |
int | line = __LINE__ | |||
) | [private] |
Definition at line 179 of file mmsfbgl.cpp.
bool MMSFBGL::buildShader | ( | MMSFBGL_SHADER_TYPE | shader_type, | |
const char * | shader_code, | |||
GLuint * | shader | |||
) | [private] |
Definition at line 238 of file mmsfbgl.cpp.
bool MMSFBGL::linkProgram | ( | GLuint | fragment_shader, | |
GLuint | vertex_shader, | |||
GLuint * | program | |||
) | [private] |
Definition at line 292 of file mmsfbgl.cpp.
bool MMSFBGL::buildShaderProgram | ( | const char * | fragment_shader_code, | |
const char * | vertex_shader_code, | |||
GLuint * | program | |||
) | [private] |
Definition at line 350 of file mmsfbgl.cpp.
bool MMSFBGL::buildShaderProgram4Drawing | ( | GLuint * | program | ) | [private] |
Definition at line 385 of file mmsfbgl.cpp.
bool MMSFBGL::buildShaderProgram4Blitting | ( | GLuint * | program | ) | [private] |
Definition at line 405 of file mmsfbgl.cpp.
bool MMSFBGL::buildShaderProgram4ModulateBlitting | ( | GLuint * | program | ) | [private] |
Definition at line 431 of file mmsfbgl.cpp.
bool MMSFBGL::buildShaderProgram4BlittingFromAlpha | ( | GLuint * | program | ) | [private] |
Definition at line 458 of file mmsfbgl.cpp.
bool MMSFBGL::buildShaderProgram4ModulateBlittingFromAlpha | ( | GLuint * | program | ) | [private] |
Definition at line 486 of file mmsfbgl.cpp.
void MMSFBGL::deleteShaders | ( | ) | [private] |
Definition at line 539 of file mmsfbgl.cpp.
bool MMSFBGL::initShaders | ( | ) | [private] |
Definition at line 514 of file mmsfbgl.cpp.
bool MMSFBGL::useShaderProgram4Drawing | ( | ) | [private] |
Definition at line 2043 of file mmsfbgl.cpp.
bool MMSFBGL::useShaderProgram4Blitting | ( | ) | [private] |
Definition at line 2065 of file mmsfbgl.cpp.
bool MMSFBGL::useShaderProgram4ModulateBlitting | ( | ) | [private] |
Definition at line 2087 of file mmsfbgl.cpp.
bool MMSFBGL::useShaderProgram4BlittingFromAlpha | ( | ) | [private] |
Definition at line 2110 of file mmsfbgl.cpp.
bool MMSFBGL::useShaderProgram4ModulateBlittingFromAlpha | ( | ) | [private] |
Definition at line 2133 of file mmsfbgl.cpp.
bool MMSFBGL::init | ( | Display * | x_display, | |
int | x_screen, | |||
Window | x_window, | |||
int | w, | |||
int | h | |||
) |
Definition at line 579 of file mmsfbgl.cpp.
bool MMSFBGL::terminate | ( | ) |
Definition at line 1170 of file mmsfbgl.cpp.
bool MMSFBGL::getResolution | ( | int * | w, | |
int * | h | |||
) |
Definition at line 1192 of file mmsfbgl.cpp.
bool MMSFBGL::swap | ( | ) |
Definition at line 1202 of file mmsfbgl.cpp.
bool MMSFBGL::genBuffer | ( | GLuint * | bo | ) |
Definition at line 1295 of file mmsfbgl.cpp.
bool MMSFBGL::deleteBuffer | ( | GLuint | bo | ) |
Definition at line 1306 of file mmsfbgl.cpp.
bool MMSFBGL::bindBuffer | ( | GLenum | target, | |
GLuint | bo | |||
) |
Definition at line 1329 of file mmsfbgl.cpp.
bool MMSFBGL::initVertexBuffer | ( | GLuint | vbo, | |
unsigned int | size, | |||
const GLvoid * | data = NULL | |||
) |
Definition at line 1371 of file mmsfbgl.cpp.
bool MMSFBGL::initVertexSubBuffer | ( | GLuint | vbo, | |
unsigned int | offset, | |||
unsigned int | size, | |||
const GLvoid * | data | |||
) |
Definition at line 1389 of file mmsfbgl.cpp.
bool MMSFBGL::enableVertexBuffer | ( | GLuint | vbo | ) |
Definition at line 1407 of file mmsfbgl.cpp.
void MMSFBGL::disableVertexBuffer | ( | ) |
Definition at line 1418 of file mmsfbgl.cpp.
bool MMSFBGL::initIndexBuffer | ( | GLuint | ibo, | |
unsigned int | size, | |||
const GLvoid * | data = NULL | |||
) |
Definition at line 1423 of file mmsfbgl.cpp.
bool MMSFBGL::initIndexSubBuffer | ( | GLuint | ibo, | |
unsigned int | offset, | |||
unsigned int | size, | |||
const GLvoid * | data | |||
) |
Definition at line 1441 of file mmsfbgl.cpp.
bool MMSFBGL::enableIndexBuffer | ( | GLuint | ibo | ) |
Definition at line 1459 of file mmsfbgl.cpp.
void MMSFBGL::disableIndexBuffer | ( | ) |
Definition at line 1470 of file mmsfbgl.cpp.
bool MMSFBGL::genTexture | ( | GLuint * | tex | ) |
Definition at line 1475 of file mmsfbgl.cpp.
bool MMSFBGL::deleteTexture | ( | GLuint | tex | ) |
Definition at line 1486 of file mmsfbgl.cpp.
bool MMSFBGL::bindTexture2D | ( | GLuint | tex | ) |
Definition at line 1523 of file mmsfbgl.cpp.
bool MMSFBGL::initTexture2D | ( | GLuint | tex, | |
GLenum | texture_format, | |||
void * | buffer, | |||
GLenum | buffer_format, | |||
int | sw, | |||
int | sh | |||
) |
Definition at line 1555 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 1582 of file mmsfbgl.cpp.
bool MMSFBGL::enableTexture2D | ( | GLuint | tex | ) |
Definition at line 1608 of file mmsfbgl.cpp.
void MMSFBGL::disableTexture2D | ( | ) |
Definition at line 1649 of file mmsfbgl.cpp.
bool MMSFBGL::genFrameBuffer | ( | GLuint * | fbo | ) |
Definition at line 1658 of file mmsfbgl.cpp.
bool MMSFBGL::deleteFrameBuffer | ( | GLuint | fbo | ) |
Definition at line 1677 of file mmsfbgl.cpp.
bool MMSFBGL::genRenderBuffer | ( | GLuint * | rbo | ) |
Definition at line 1707 of file mmsfbgl.cpp.
bool MMSFBGL::deleteRenderBuffer | ( | GLuint | rbo | ) |
Definition at line 1726 of file mmsfbgl.cpp.
bool MMSFBGL::attachTexture2FrameBuffer | ( | GLuint | fbo, | |
GLuint | tex | |||
) |
Definition at line 1756 of file mmsfbgl.cpp.
bool MMSFBGL::attachRenderBuffer2FrameBuffer | ( | GLuint | fbo, | |
GLuint | rbo, | |||
int | width, | |||
int | height | |||
) |
Definition at line 1788 of file mmsfbgl.cpp.
bool MMSFBGL::allocTexture | ( | GLuint | tex, | |
int | width, | |||
int | height | |||
) |
Definition at line 1832 of file mmsfbgl.cpp.
bool MMSFBGL::allocFBO | ( | GLuint | fbo, | |
GLuint | tex, | |||
int | width, | |||
int | height | |||
) |
Definition at line 1843 of file mmsfbgl.cpp.
bool MMSFBGL::allocFBOandRBO | ( | GLuint | fbo, | |
GLuint | tex, | |||
GLuint | rbo, | |||
int | width, | |||
int | height | |||
) |
Definition at line 1857 of file mmsfbgl.cpp.
bool MMSFBGL::freeFBO | ( | GLuint | fbo, | |
GLuint | tex, | |||
GLuint | rbo = 0 | |||
) |
Definition at line 1875 of file mmsfbgl.cpp.
bool MMSFBGL::bindFrameBuffer | ( | GLuint | ogl | ) |
Definition at line 1888 of file mmsfbgl.cpp.
bool MMSFBGL::setScissor | ( | GLint | x, | |
GLint | y, | |||
GLsizei | width, | |||
GLsizei | height | |||
) |
Definition at line 1916 of file mmsfbgl.cpp.
bool MMSFBGL::disableScissor | ( | ) |
Definition at line 1929 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 1940 of file mmsfbgl.cpp.
void MMSFBGL::disableBlend | ( | ) |
Definition at line 1948 of file mmsfbgl.cpp.
void MMSFBGL::enableDepthTest | ( | bool | readonly = false |
) |
Definition at line 1954 of file mmsfbgl.cpp.
void MMSFBGL::disableDepthTest | ( | ) |
Definition at line 1979 of file mmsfbgl.cpp.
void MMSFBGL::setDrawingMode | ( | ) |
Definition at line 1987 of file mmsfbgl.cpp.
void MMSFBGL::setTexEnvReplace | ( | GLenum | format | ) |
Definition at line 1993 of file mmsfbgl.cpp.
void MMSFBGL::setTexEnvModulate | ( | GLenum | format | ) |
Definition at line 2009 of file mmsfbgl.cpp.
void MMSFBGL::disableArrays | ( | ) |
Definition at line 2026 of file mmsfbgl.cpp.
bool MMSFBGL::setCurrentMatrix | ( | MMSMatrix | matrix | ) |
Definition at line 2156 of file mmsfbgl.cpp.
bool MMSFBGL::getCurrentMatrix | ( | MMSMatrix | matrix | ) |
Definition at line 2194 of file mmsfbgl.cpp.
bool MMSFBGL::scaleCurrentMatrix | ( | GLfloat | sx, | |
GLfloat | sy, | |||
GLfloat | sz | |||
) |
Definition at line 2204 of file mmsfbgl.cpp.
bool MMSFBGL::translateCurrentMatrix | ( | GLfloat | tx, | |
GLfloat | ty, | |||
GLfloat | tz | |||
) |
Definition at line 2213 of file mmsfbgl.cpp.
bool MMSFBGL::rotateCurrentMatrix | ( | GLfloat | angle, | |
GLfloat | x, | |||
GLfloat | y, | |||
GLfloat | z | |||
) |
Definition at line 2222 of file mmsfbgl.cpp.
bool MMSFBGL::getParallelProjectionMatrix | ( | MMSMatrix | result, | |
float | left, | |||
float | right, | |||
float | bottom, | |||
float | top, | |||
float | nearZ, | |||
float | farZ | |||
) |
Definition at line 2232 of file mmsfbgl.cpp.
bool MMSFBGL::getCentralProjectionMatrix | ( | MMSMatrix | result, | |
float | left, | |||
float | right, | |||
float | bottom, | |||
float | top, | |||
float | nearZ, | |||
float | farZ | |||
) |
Definition at line 2248 of file mmsfbgl.cpp.
bool MMSFBGL::getPerspectiveMatrix | ( | MMSMatrix | result, | |
float | fovy, | |||
float | aspect, | |||
float | nearZ, | |||
float | farZ | |||
) |
Definition at line 2264 of file mmsfbgl.cpp.
bool MMSFBGL::setParallelProjection | ( | float | left, | |
float | right, | |||
float | bottom, | |||
float | top, | |||
float | nearZ, | |||
float | farZ | |||
) |
Definition at line 2281 of file mmsfbgl.cpp.
bool MMSFBGL::setCentralProjection | ( | float | left, | |
float | right, | |||
float | bottom, | |||
float | top, | |||
float | nearZ, | |||
float | farZ | |||
) |
Definition at line 2294 of file mmsfbgl.cpp.
bool MMSFBGL::setPerspective | ( | float | fovy, | |
float | aspect, | |||
float | nearZ, | |||
float | farZ | |||
) |
Definition at line 2307 of file mmsfbgl.cpp.
bool MMSFBGL::pushCurrentMatrix | ( | ) |
Definition at line 2323 of file mmsfbgl.cpp.
bool MMSFBGL::popCurrentMatrix | ( | ) |
Definition at line 2332 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 2349 of file mmsfbgl.cpp.
bool MMSFBGL::setColor | ( | unsigned char | r, | |
unsigned char | g, | |||
unsigned char | b, | |||
unsigned char | a | |||
) |
Definition at line 2380 of file mmsfbgl.cpp.
bool MMSFBGL::drawLine2D | ( | float | x1, | |
float | y1, | |||
float | x2, | |||
float | y2 | |||
) |
Definition at line 2423 of file mmsfbgl.cpp.
bool MMSFBGL::drawLine2Di | ( | int | x1, | |
int | y1, | |||
int | x2, | |||
int | y2 | |||
) |
Definition at line 2459 of file mmsfbgl.cpp.
bool MMSFBGL::drawRectangle2D | ( | float | x1, | |
float | y1, | |||
float | x2, | |||
float | y2 | |||
) |
Definition at line 2472 of file mmsfbgl.cpp.
bool MMSFBGL::drawRectangle2Di | ( | int | x1, | |
int | y1, | |||
int | x2, | |||
int | y2 | |||
) |
Definition at line 2511 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 2522 of file mmsfbgl.cpp.
bool MMSFBGL::fillTriangle2D | ( | float | x1, | |
float | y1, | |||
float | x2, | |||
float | y2, | |||
float | x3, | |||
float | y3 | |||
) |
Definition at line 2545 of file mmsfbgl.cpp.
bool MMSFBGL::fillRectangle2D | ( | float | x1, | |
float | y1, | |||
float | x2, | |||
float | y2 | |||
) |
Definition at line 2583 of file mmsfbgl.cpp.
bool MMSFBGL::fillRectangle2Di | ( | int | x1, | |
int | y1, | |||
int | x2, | |||
int | y2 | |||
) |
Definition at line 2616 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 2624 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 2704 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 2778 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 2795 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 2815 of file mmsfbgl.cpp.
bool MMSFBGL::blitBuffer2Texture | ( | GLuint | dst_tex, | |
bool | realloc, | |||
void * | buffer, | |||
int | sw, | |||
int | sh | |||
) |
Definition at line 2835 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 2851 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 3073 of file mmsfbgl.cpp.
Display* MMSFBGL::x_display [private] |
Window MMSFBGL::x_window [private] |
bool MMSFBGL::initialized [private] |
int MMSFBGL::screen_width [private] |
int MMSFBGL::screen_height [private] |
GLuint MMSFBGL::bound_fbo [private] |
GLuint MMSFBGL::bound_vbo [private] |
GLuint MMSFBGL::bound_ibo [private] |
GLuint MMSFBGL::po_draw [private] |
GLuint MMSFBGL::po_blit [private] |
GLuint MMSFBGL::po_modulateblit [private] |
GLuint MMSFBGL::po_blit_fromalpha [private] |
GLuint MMSFBGL::po_modulateblit_fromalpha [private] |
GLuint MMSFBGL::po_current [private] |
GLint MMSFBGL::VSMatrixLoc [private] |
bool MMSFBGL::VSMatrixLoc_initialized [private] |
GLint MMSFBGL::FSColorLoc [private] |
bool MMSFBGL::FSColorLoc_initialized [private] |
GLint MMSFBGL::FSTextureLoc [private] |
bool MMSFBGL::FSTextureLoc_initialized [private] |
GLint MMSFBGL::VSTexCoordLoc [private] |
bool MMSFBGL::VSTexCoordLoc_initialized [private] |
MMSMatrix MMSFBGL::current_matrix [private] |
bool MMSFBGL::useKMS [private] |
unsigned char MMSFBGL::current_color_r [private] |
unsigned char MMSFBGL::current_color_g [private] |
unsigned char MMSFBGL::current_color_b [private] |
unsigned char MMSFBGL::current_color_a [private] |
std::stack<MMSFBGLStackMatrix> MMSFBGL::matrix_stack [private] |