mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
25 lines
459 B
C++
25 lines
459 B
C++
#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 |