24 #ifndef RESOURCES_OPENGLIMAGEHELPER_H
25 #define RESOURCES_OPENGLIMAGEHELPER_H
31 #ifndef GL_TEXTURE_RECTANGLE_ARB
32 #define GL_TEXTURE_RECTANGLE_ARB 0x84F5
33 #define GL_MAX_RECTANGLE_TEXTURE_SIZE_ARB 0x84F8
40 #define GL_RGBA8 GL_RGBA8_OES
43 #define GL_GLEXT_PROTOTYPES 1
49 PRAGMA48(GCC diagnostic ignored
"-Wshadow")
52 PRAGMA45(GCC diagnostic ignored
"-Wredundant-decls")
53 #include <SDL_opengl.h>
58 PRAGMA45(GCC diagnostic ignored
"-Wredundant-decls")
106 const
int width, const
int height,
136 static void invalidate(
const GLuint textureId);
141 int height)
const override final;
146 const
int x, const
int y,
156 int width,
int height);
159 int width,
int height);
Image * loadSurface(SDL_Surface *const tmpImage)
static int getTextureType()
static void setInternalTextureType(const int n)
static void setBlur(const bool n)
static void initTextureSampler(const GLint id)
static void setUseTextureSampler(const bool b)
static SDL_Surface * convertSurfaceNormalize(SDL_Surface *tmpImage, int width, int height)
static int getInternalTextureType()
static void invalidate(const GLuint textureId)
static SDL_Surface * convertSurface(SDL_Surface *tmpImage, int width, int height)
GLuint mTextures[texturesSize]
SDL_Surface * create32BitSurface(int width, int height) const
Image * glLoad(SDL_Surface *tmpImage, int width=0, int height=0)
Image * createTextSurface(SDL_Surface *const tmpImage, const int width, const int height, const float alpha)
static int getTextureSize()
static void bindTexture(const GLuint texture)
static int mInternalTextureType
static bool mUseTextureSampler
static int powerOfTwo(const int input)
Image * load(SDL_RWops *const rw, Dye const &dye)
void copySurfaceToImage(const Image *const image, const int x, const int y, SDL_Surface *surface) const
static const size_t texturesSize
#define A_DELETE_COPY(func)
PRAGMA45(GCC diagnostic push) PRAGMA45(GCC diagnostic ignored "-Wredundant-decls") PRAGMA45(GCC diagnostic pop) class Dye