Main Page | Class Hierarchy | Class List | Directories | File List

AbstractImage2D Class Reference

This class is an abstract representation for two-dimensional images. More...

#include <ApiGraphics/Image2D.h>

Inheritance diagram for AbstractImage2D:

TextureData Image2D List of all members.

Public Types

enum  WrapMode {
  CLAMP_TO_EDGE,
  CLAMP_TO_BORDER,
  REPEAT,
  MIRRORED_REPEAT
}

Public Member Functions

 AbstractImage2D (int w=0, int h=0)
virtual bool loaded () const =0
virtual void destroy ()=0
virtual QImage toQImage () const =0
virtual void initialize (QImage image)=0
void save (QString fileName) const
int width () const
int height () const
bool contains (int i, int j) const
bool contains (float x, float y) const
virtual GLenum textureMode () const
virtual GLint defaultTexFormat () const =0
virtual void loadToGPU (GLint texFormat) const
virtual void loadTexture2D (GLenum texFormat, GLenum target=GL_TEXTURE_2D) const =0

Protected Attributes

int w
int h

Detailed Description

This class is an abstract representation for two-dimensional images.

It uses the same system of coordinates as OpenGL :

So the origin (0,0) is at the leftmost bottommost corner of the image.

Attention:
this system of coordinates if different from the one used in QImage (origin at the leftmost topmost corner)


The documentation for this class was generated from the following files:
Generated on Fri Nov 14 20:49:47 2008 for Api Graphics by  doxygen 1.4.4