/*
* Texture.h
* iphone-gl-app
*
* Created by John Ryland on 14/06/09.
* Copyright 2009 InvertedLogic. All rights reserved.
*
*/
#ifndef TEXTURE_H
#define TEXTURE_H
class Texture
{
public:
// Caller still owns data and must free themselves
Texture(unsigned int width, unsigned int height, unsigned char *data, bool smooth = true);
Texture(const char *file, bool smooth = true);
~Texture();
void setExtents(int x, int y, int w, int h);
void setSmooth(bool smooth);
void bind();
private:
void *dptr;
};
#endif // TEXTURE_H