Visualization Library

A lightweight C++ OpenGL middleware for 2D/3D graphics
[Home] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | Protected Attributes

vl::LoadWriterPNG Class Reference

The LoadWriterPNG class is a ResourceLoadWriter capable of reading PNG files. More...

#include <vlPNG.hpp>

Inheritance diagram for vl::LoadWriterPNG:
vl::ResourceLoadWriter vl::Object

List of all members.

Public Member Functions

virtual const char * className ()
 Returns the name of the class.
 LoadWriterPNG ()
ref< ResourceDatabaseloadResource (const String &path) const
ref< ResourceDatabaseloadResource (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

Detailed Description

The LoadWriterPNG class is a ResourceLoadWriter capable of reading PNG files.

Definition at line 57 of file vlPNG.hpp.


Constructor & Destructor Documentation

vl::LoadWriterPNG::LoadWriterPNG (  ) [inline]

Definition at line 62 of file vlPNG.hpp.

References VL_DEBUG_SET_OBJECT_NAME.


Member Function Documentation

virtual const char* vl::LoadWriterPNG::className (  ) [inline, virtual]

Returns the name of the class.

Reimplemented from vl::ResourceLoadWriter.

Definition at line 60 of file vlPNG.hpp.

ref<ResourceDatabase> vl::LoadWriterPNG::loadResource ( const String path ) const [inline, virtual]

Implements vl::ResourceLoadWriter.

Definition at line 67 of file vlPNG.hpp.

References vl::loadPNG().

ref<ResourceDatabase> vl::LoadWriterPNG::loadResource ( VirtualFile file ) const [inline, virtual]

Implements vl::ResourceLoadWriter.

Definition at line 76 of file vlPNG.hpp.

References vl::loadPNG().

bool vl::LoadWriterPNG::writeResource ( const String path,
ResourceDatabase resource 
) const [inline, virtual]
bool vl::LoadWriterPNG::writeResource ( VirtualFile file,
ResourceDatabase resource 
) const [inline, virtual]
int vl::LoadWriterPNG::compression (  ) const [inline]

Definition at line 101 of file vlPNG.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 vlPNG.hpp.

References compression(), and mCompression.


Member Data Documentation

Definition at line 106 of file vlPNG.hpp.

Referenced by compression(), and setCompression().


The documentation for this class was generated from the following file:

Visualization Library v2011.05.1144 Reference Documentation
Copyright 2005-2011 Michele Bosi. All rights reserved.
Updated on Tue Sep 13 2011 21:59:09.
Permission is granted to use this page to write and publish articles regarding Visualization Library.