32 #if !defined(ioJPG_INCLUDE_ONCE) 33 #define ioJPG_INCLUDE_ONCE 65 VL_DEBUG_SET_OBJECT_NAME()
73 res_db->resources().push_back(img);
82 res_db->resources().push_back(img);
89 for(
unsigned i=0; i<resource->
count<
Image>(); ++i)
97 for(
unsigned i=0; i<resource->
count<
Image>(); ++i)
An abstract class representing a file.
ref< ResourceDatabase > loadResource(VirtualFile *file) const
The String class implements an advanced UTF16 (Unicode BMP) string manipulation engine.
void setQuality(int quality)
Sets the quality level used when saving a file. Must be between 0 and 100.
VLCORE_EXPORT ref< Image > loadJPG(VirtualFile *file)
The LoadWriterJPG class is a ResourceLoadWriter capable of reading JPG files.
bool writeResource(VirtualFile *file, ResourceDatabase *resource) const
bool writeResource(const String &path, ResourceDatabase *resource) const
size_t count() const
Don't use inside loops! Counts the number object of the specified type.
#define VL_INSTRUMENT_CLASS(ClassName, BaseClass)
Visualization Library main namespace.
void get(std::vector< ref< T > > &resources, bool clear_vector=true)
Returns all the objects of the specified type in the given vector.
VLCORE_EXPORT bool isJPG(VirtualFile *file)
VLCORE_EXPORT bool saveJPG(const Image *src, const String &path, int quality=95)
ref< ResourceDatabase > loadResource(const String &path) const
Implements a generic 1d, 2d, 3d and cubemap image that can have mipmaps.
The ref<> class is used to reference-count an Object.
The ResourceLoadWriter class is an abstract class used to implement read/write support for one or mor...
The ResourceDatabase class contains and manipulates a set of resources.