mmsfbgl.cpp File Reference

#include "mmsgui/fb/mmsfbgl.h"
#include "mmsgui/fb/mmsfb.h"
#include <stdio.h>
#include <math.h>
#include <stdlib.h>

Include dependency graph for mmsfbgl.cpp:

Go to the source code of this file.


Defines

#define INITCHECK   if (!this->initialized) return false;
#define GET_ATTR(name, str)
#define OGL_CALC_COORD_MIDDLE(v1, v2)   (((v1)<=(v2)) ? (float)(v1) + 0.49f : (float)(v1) + 0.51f)
#define OGL_CALC_COORD_F(v1, v2)   (((v1)<(v2)) ? (float)(v1) : ((v1)>(v2)) ? (float)(v1) + 0.99f : (float)(v1))
#define OGL_CALC_COORD_S(v1, v2)   (((v1)<(v2)) ? (float)(v1) : ((v1)>(v2)) ? (float)(v1) + 0.99f : (float)(v1) + 0.99f)
#define OGL_CALC_TEXCOORD_F(v1, v2, size)   (((v1)>(v2)&&(v1==size)) ? 1.0f : OGL_CALC_COORD_F(v1, v2) / (size))
#define OGL_CALC_TEXCOORD_S(v1, v2, size)   (((v1)>(v2)&&(v1==size)) ? 1.0f : OGL_CALC_COORD_S(v1, v2) / (size))
#define ERROR_CHECK_PRINT
#define ERROR_CHECK_VOID(where)   getError(where, __LINE__);
#define ERROR_CHECK_BOOL(where)   getError(where, __LINE__);

Define Documentation

#define ERROR_CHECK_BOOL ( where   )     getError(where, __LINE__);

Definition at line 104 of file mmsfbgl.cpp.

#define ERROR_CHECK_PRINT

Definition at line 90 of file mmsfbgl.cpp.

#define ERROR_CHECK_VOID ( where   )     getError(where, __LINE__);

Definition at line 103 of file mmsfbgl.cpp.

#define GET_ATTR ( name,
str   ) 

Value:

eglGetConfigAttrib(eglDisplay, eglConfig[i], name, &value); \
    printf("  %s = %x\n", str, value);

Definition at line 43 of file mmsfbgl.cpp.

#define INITCHECK   if (!this->initialized) return false;

Definition at line 41 of file mmsfbgl.cpp.

#define OGL_CALC_COORD_F ( v1,
v2   )     (((v1)<(v2)) ? (float)(v1) : ((v1)>(v2)) ? (float)(v1) + 0.99f : (float)(v1))

Definition at line 50 of file mmsfbgl.cpp.

#define OGL_CALC_COORD_MIDDLE ( v1,
v2   )     (((v1)<=(v2)) ? (float)(v1) + 0.49f : (float)(v1) + 0.51f)

Definition at line 48 of file mmsfbgl.cpp.

#define OGL_CALC_COORD_S ( v1,
v2   )     (((v1)<(v2)) ? (float)(v1) : ((v1)>(v2)) ? (float)(v1) + 0.99f : (float)(v1) + 0.99f)

Definition at line 51 of file mmsfbgl.cpp.

#define OGL_CALC_TEXCOORD_F ( v1,
v2,
size   )     (((v1)>(v2)&&(v1==size)) ? 1.0f : OGL_CALC_COORD_F(v1, v2) / (size))

Definition at line 53 of file mmsfbgl.cpp.

#define OGL_CALC_TEXCOORD_S ( v1,
v2,
size   )     (((v1)>(v2)&&(v1==size)) ? 1.0f : OGL_CALC_COORD_S(v1, v2) / (size))

Definition at line 54 of file mmsfbgl.cpp.