Newer
Older
Import / research / 3d-z-maps / mview-0.3.3 / mview / texture.h
@John John on 29 Dec 2020 610 bytes bulk import from macbookpro checkouts
//
//    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