//
// File: texture.h
//
// (C) 2000-2008 Helmut Cantzler
//
// Licensed under the terms of the Lesser General Public License.
//
#ifndef _TEXTURE_H
#define _TEXTURE_H
#ifdef WIN32
#include <Windows.h>
#endif
//#include <GL/gl.h>
#include <QGLWidget>
#include "image.h"
class Texture
{
public:
Texture();
~Texture();
int read(const char *f);
int height(void) const;
int width(void) const;
int colorComponents(void) const;
GLenum format(void) const;
const unsigned char* data(void) const;
int id;
private:
Image *image;
GLenum textureFormat;
int maxSize;
};
#endif