24 #ifndef RENDER_MOBILEOPENGL2GRAPHICS_H
25 #define RENDER_MOBILEOPENGL2GRAPHICS_H
27 #if defined(USE_OPENGL) && !defined(ANDROID)
31 #include "render/graphics.h"
37 #include <GLES/glext.h>
38 #include <GLES2/gl2.h>
41 #define GL_GLEXT_PROTOTYPES 1
44 PRAGMA48(GCC diagnostic ignored
"-Wshadow")
47 PRAGMA45(GCC diagnostic ignored
"-Wredundant-decls")
48 #include <SDL_opengl.h>
51 #if defined(__APPLE__)
52 #include <OpenGL/glext.h>
53 #elif !defined(__native_client__)
55 PRAGMA45(GCC diagnostic ignored
"-Wredundant-decls")
61 class OpenGLGraphicsVertexes;
105 inline void drawQuad(
const int srcX,
113 const int dstX,
const int dstY,
114 const int width,
const int height,
115 const int desiredWidth,
116 const int desiredHeight)
154 #ifndef __native_client__
163 #ifdef DEBUG_BIND_TEXTURE
164 std::string mOldTexture;
165 unsigned mOldTextureId;
void removeArray(const uint32_t id, uint32_t *const arr)
void bindArrayBufferAndAttributes(const GLuint vbo) A_INLINE
void drawRescaledQuad(const int srcX, const int srcY, const int dstX, const int dstY, const int width, const int height, const int desiredWidth, const int desiredHeight) A_INLINE
void drawQuad(const int srcX, const int srcY, const int dstX, const int dstY, const int width, const int height) A_INLINE
static GLuint mTextureSizeUniform
void drawLineArrays(const int size) A_INLINE
void drawTriangleArray(const int size) A_INLINE
void finalize(ImageCollection *const col)
void setColor(const Color &color)
void createGLContext(const bool custom)
GLint mTextureColorUniform
void bindAttributes() A_INLINE
GLuint mSimpleColorUniform
void bindArrayBuffer(const GLuint vbo) A_INLINE
static void bindTexture2(const GLenum target, const Image *const image)
GLfloat * mFloatArrayCached
static int mTextureHeight
#define RENDER_GRAPHICSDEF_HPP
#define A_DELETE_COPY(func)
PRAGMA45(GCC diagnostic push) PRAGMA45(GCC diagnostic ignored "-Wredundant-decls") PRAGMA45(GCC diagnostic pop) PRAGMA45(GCC diagnostic push) PRAGMA45(GCC diagnostic ignored "-Wredundant-decls") PRAGMA45(GCC diagnostic pop) class OpenGLGraphicsVertexes
#define RENDER_OPENGLGRAPHICSDEF_HPP
#define RENDER_OPENGLGRAPHICSDEFADVANCED_HPP