alecgl_old/sfml20test/Texture.h
Alec Obradovich 03f7d95b13 fuckmess
what is this nonsense
2015-04-08 16:35:21 -05:00

27 lines
No EOL
547 B
C++

#include <SFML/Graphics.hpp>
#include <GL/glew.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <vector>
#include <stdarg.h>
namespace agl {
class Texture {
std::vector<sf::Image*> img;
std::vector<GLuint> texids;
sf::Clock *clk;
int index;
float fps;
public:
Texture() {};
Texture(char*);
Texture(float, int, ...);
int addImageFromFile(char*);
int loadFromFile(char*);
int loadFromFile(float, int, ...);
void bindTexture();
void unbindTexture();
GLuint getTextureId();
~Texture();
};
};