rcpp_framework/rendering/opengl/texture.h

25 lines
459 B
C
Raw Normal View History

#ifndef TEXTURE_H
#define TEXTURE_H
#include "opengl.h"
#include "sdl.inc.h"
class Texture {
public:
enum TextureFilter {
TEXTURE_FILTER_NEAREST = 0,
TEXTURE_FILTER_LINEAR,
};
void load_image(const char* file_name, const int format = GL_RGB, const int internal_components = GL_RGB);
void apply_filer();
TextureFilter filter;
GLuint texture;
SDL_Surface *image;
Texture();
virtual ~Texture();
};
#endif