Visualization Library v1.0.3A lightweight C++ OpenGL middleware for 2D/3D graphics |
[Download] [Tutorials] [All Classes] [Grouped Classes] |
The LoadWriterPNG class is a ResourceLoadWriter capable of reading PNG files. More...
#include <ioPNG.hpp>
Public Member Functions | |
LoadWriterPNG () | |
ref< ResourceDatabase > | loadResource (const String &path) const |
ref< ResourceDatabase > | loadResource (VirtualFile *file) const |
bool | writeResource (const String &path, ResourceDatabase *resource) const |
bool | writeResource (VirtualFile *file, ResourceDatabase *resource) const |
int | compression () const |
void | setCompression (int compression) |
Sets the compression level used when saving a file. Should be between 0 and 9. | |
Protected Attributes | |
int | mCompression |
The LoadWriterPNG class is a ResourceLoadWriter capable of reading PNG files.
Definition at line 57 of file ioPNG.hpp.
vl::LoadWriterPNG::LoadWriterPNG | ( | ) | [inline] |
Definition at line 62 of file ioPNG.hpp.
References VL_DEBUG_SET_OBJECT_NAME.
ref<ResourceDatabase> vl::LoadWriterPNG::loadResource | ( | const String & | path ) | const [inline, virtual] |
Implements vl::ResourceLoadWriter.
Definition at line 67 of file ioPNG.hpp.
References vl::loadPNG().
ref<ResourceDatabase> vl::LoadWriterPNG::loadResource | ( | VirtualFile * | file ) | const [inline, virtual] |
Implements vl::ResourceLoadWriter.
Definition at line 76 of file ioPNG.hpp.
References vl::loadPNG().
bool vl::LoadWriterPNG::writeResource | ( | const String & | path, |
ResourceDatabase * | resource | ||
) | const [inline, virtual] |
Implements vl::ResourceLoadWriter.
Definition at line 85 of file ioPNG.hpp.
References compression(), vl::ResourceDatabase::count(), vl::ResourceDatabase::get(), and vl::savePNG().
bool vl::LoadWriterPNG::writeResource | ( | VirtualFile * | file, |
ResourceDatabase * | resource | ||
) | const [inline, virtual] |
Implements vl::ResourceLoadWriter.
Definition at line 93 of file ioPNG.hpp.
References compression(), vl::ResourceDatabase::count(), vl::ResourceDatabase::get(), and vl::savePNG().
int vl::LoadWriterPNG::compression | ( | ) | const [inline] |
Definition at line 101 of file ioPNG.hpp.
References mCompression.
Referenced by setCompression(), and writeResource().
void vl::LoadWriterPNG::setCompression | ( | int | compression ) | [inline] |
Sets the compression level used when saving a file. Should be between 0 and 9.
Definition at line 103 of file ioPNG.hpp.
References compression(), and mCompression.
int vl::LoadWriterPNG::mCompression [protected] |
Definition at line 106 of file ioPNG.hpp.
Referenced by compression(), and setCompression().