Ocular Engine
Ocular::Graphics::TextureResourceSaver_PNG Class Reference
Inheritance diagram for Ocular::Graphics::TextureResourceSaver_PNG:
Ocular::Graphics::TextureResourceSaver Ocular::Core::AResourceSaver

Protected Member Functions

virtual bool saveFile (Core::File const &file, std::vector< Core::Color > const &pixels, unsigned const width, unsigned const height)
 
- Protected Member Functions inherited from Ocular::Graphics::TextureResourceSaver
virtual bool isFileValid (Core::File &file)
 
virtual bool isResourceValid (Core::Resource *resource)
 
- Protected Member Functions inherited from Ocular::Core::AResourceSaver
virtual bool writeFile (Core::File const &file, std::vector< unsigned char > buffer, Endianness fileEndianness)
 

Additional Inherited Members

- Public Member Functions inherited from Ocular::Graphics::TextureResourceSaver
 TextureResourceSaver (std::string const &extension)
 
virtual bool saveResource (Core::Resource *resource, Core::File const &file)
 
- Public Member Functions inherited from Ocular::Core::AResourceSaver
 AResourceSaver (std::string const &extension, ResourceType type)
 
virtual std::string getSupportedFileType () const
 
ResourceType getResourceType () const
 
- Protected Attributes inherited from Ocular::Core::AResourceSaver
std::string m_SupportedExtension
 
ResourceType m_Type
 

Member Function Documentation

bool Ocular::Graphics::TextureResourceSaver_PNG::saveFile ( Core::File const &  file,
std::vector< Core::Color > const &  pixels,
unsigned const  width,
unsigned const  height 
)
protectedvirtual

See TextureResourceSaver::saveFile

Parameters
[in]fileFile to write to. This file has already been verified to exist and be writeable.
[in]pixelsTexture pixel data to write to the file.
[in]widthWidth of the texture.
[in]heightHeight of the texture.
Returns
TRUE if the file was successfully saved.

Implements Ocular::Graphics::TextureResourceSaver.


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