32 #if !defined(ioTGA_INCLUDE_ONCE) 33 #define ioTGA_INCLUDE_ONCE 64 VL_DEBUG_SET_OBJECT_NAME()
72 res_db->resources().push_back(img);
81 res_db->resources().push_back(img);
88 for(
unsigned i=0; i<resource->
count<
Image>(); ++i)
96 for(
unsigned i=0; i<resource->
count<
Image>(); ++i)
VLCORE_EXPORT bool isTGA(VirtualFile *file)
A TGA file is accepted only if it has a 'TGA' extension.
An abstract class representing a file.
The LoadWriterTGA class is a ResourceLoadWriter capable of reading TGA files.
The String class implements an advanced UTF16 (Unicode BMP) string manipulation engine.
VLCORE_EXPORT ref< Image > loadTGA(VirtualFile *file)
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.
bool writeResource(VirtualFile *file, ResourceDatabase *resource) const
void get(std::vector< ref< T > > &resources, bool clear_vector=true)
Returns all the objects of the specified type in the given vector.
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...
bool writeResource(const String &path, ResourceDatabase *resource) const
VLCORE_EXPORT bool saveTGA(const Image *src, const String &path)
The ResourceDatabase class contains and manipulates a set of resources.
ref< ResourceDatabase > loadResource(VirtualFile *file) const