#include <ugl_image.hpp>
Inheritance diagram for ufo::UGL_Image:
Public Member Functions | |
UGL_Image (const std::string &fileName, bool lazy=true, bool autoRefresh=true, GLenum imageFormat=0, GLenum internalFormat=0) | |
UGL_Image (UImageIO *imageIO, bool lazy=true, bool autoRefresh=true, GLenum imageFormat=0, GLenum internalFormat=0) | |
virtual UDimension | getImageSize () const |
virtual int | getImageComponents () const |
virtual unsigned long | handle () const |
UDimension | getSize () const |
void | paint (UGraphics *g) |
void | paint (UGraphics *g, const UPoint &location) |
void | paint (UGraphics *g, const URectangle &rect) |
void | paintSubImage (UGraphics *g, const URectangle &rect, const UPoint &dest) |
void | paintSubImage (UGraphics *g, const URectangle &rect, const URectangle &dest) |
void | dispose () |
void | disposeGL () |
void | refresh () |
void | setQuality (int quality) |
int | getQuality () const |
Protected Member Functions | |
virtual bool | createGLTexture (GLubyte *dataA, int componentsA, GLenum imageFormatA, GLenum internalFormatA) |
void | ensureImage () |
int | round2 (int n) |
Loads and paints OpenGL textures to screen.
|
Creates an OpenGL texture from the given file.
|
|
Creates an OpenGL texture from the given image IO data.
|
|
makes a openGL texture |
|
Disposes the saved image data which is normally used to do an auto refresh. |
|
Disposes the OpenGL texture. The texture can be recreated using refresh as long as it was created with autoRefresh enabled. |
|
Implements ufo::UImage.
|
|
Implements ufo::UImage.
|
|
|
|
Returns the system dependent image handle, if any. This may be the OpenGL index for OpenGL backends.
Reimplemented from ufo::UImage.
|
|
paints the texture and scale it if it is necessary |
|
Paints the texture with an offset of x, y. |
|
paints the texture |
|
Paints sub rectangle
|
|
Paints sub rectangle
|
|
Refreshes the OpenGL texture using the saved image data. Reimplemented from ufo::UImage.
|
|
rounds to the next power of two |
|
0 == default, 1 = nearest, 2 = linear, 3 = mipmap. |