24 #ifndef RENDER_MODERNOPENGLGRAPHICS_H
25 #define RENDER_MODERNOPENGLGRAPHICS_H
28 #if !defined(ANDROID) && !defined(__native_client__) && !defined(__SWITCH__)
32 #include "render/graphics.h"
38 #include <GLES/glext.h>
39 #include <GLES2/gl2.h>
42 #define GL_GLEXT_PROTOTYPES 1
45 PRAGMA48(GCC diagnostic ignored
"-Wshadow")
48 PRAGMA45(GCC diagnostic ignored
"-Wredundant-decls")
49 #include <SDL_opengl.h>
52 #if defined(__APPLE__)
53 #include <OpenGL/glext.h>
54 #elif !defined(__native_client__)
56 PRAGMA45(GCC diagnostic ignored
"-Wredundant-decls")
62 class OpenGLGraphicsVertexes;
106 inline void drawQuad(
const int srcX,
114 const int dstX,
const int dstY,
115 const int width,
const int height,
116 const int desiredWidth,
117 const int desiredHeight)
158 #ifdef DEBUG_BIND_TEXTURE
159 std::string mOldTexture;
160 unsigned mOldTextureId;
GLint mTextureColorUniform
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 createGLContext(const bool custom)
void drawLineArrays(const int size) A_INLINE
void drawTriangleArray(const int size) A_INLINE
void bindAttributes() A_INLINE
GLuint mSimpleColorUniform
void removeArray(const uint32_t id, uint32_t *const arr)
void bindElementBuffer(const GLuint ebo) A_INLINE
void bindArrayBuffer(const GLuint vbo) A_INLINE
void setColor(const Color &color)
void bindArrayBufferAndAttributes(const GLuint vbo) A_INLINE
void drawQuad(const int srcX, const int srcY, const int dstX, const int dstY, const int width, const int height) A_INLINE
void finalize(ImageCollection *const col)
#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