#include <ApiGraphics/Image1D.h>
Inheritance diagram for Image1D:
Public Member Functions | |
Image1D (int w=0, Color *data=NULL, WrapMode wrap=CLAMP_TO_EDGE, Color border=Color()) | |
Image1D (QImage image) | |
Image1D (QString fileName) | |
virtual bool | loaded () const |
virtual void | destroy () |
virtual QImage | toQImage () const |
virtual void | initialize (QImage image) |
Image1D< Color > | clone () const |
void | copy (const Image1D< Color > &image) |
virtual GLint | defaultTexFormat () const |
virtual void | loadTexture1D (GLint texFormat, GLenum target=GL_TEXTURE_1D) const |
void | setBorderColor (Color border) |
void | setWrapMode (WrapMode wrapMode) |
void | setupBorder (WrapMode wrapMode, Color border) |
Color & | texel (int i) |
const Color & | texel (int i) const |
Color & | operator() (int i) |
const Color & | operator() (int i) const |
Color | sample (int i) const |
Color | interp (float x) const |
Color | interpUnit (float x) const |
Color | operator() (float x) const |
const Color * | mem () const |
Color * | mem () |
Static Public Member Functions | |
static Image1D< Color > | readTexture (Texture *tex) |
It is parameterized by the data type representing colors (number of channels and type used per channel). Useful types for color representations are defined in ColorTypes.h
: Float1
, Float2
, Float3
, Float4
, UByte3
, UByte4
, UInt3
, UInt4
.