Changeset View
Changeset View
Standalone View
Standalone View
source/lib/tex/tex.h
Show First 20 Lines • Show All 275 Lines • ▼ Show 20 Lines | public: | ||||
/** | /** | ||||
* encode a texture into a memory buffer in the desired file format. | * encode a texture into a memory buffer in the desired file format. | ||||
* | * | ||||
* @param extension (including '.'). | * @param extension (including '.'). | ||||
* @param da Output memory array. Allocated here; caller must free it | * @param da Output memory array. Allocated here; caller must free it | ||||
* when no longer needed. Invalid unless function succeeds. | * when no longer needed. Invalid unless function succeeds. | ||||
* @return Status | * @return Status | ||||
**/ | **/ | ||||
Status encode(const OsPath& extension, DynArray* da); | Status encode(const OsPath& extension, DynArray* da, int quality); | ||||
/** | /** | ||||
* store the given image data into a Tex object; this will be as if | * store the given image data into a Tex object; this will be as if | ||||
* it had been loaded via tex_load. | * it had been loaded via tex_load. | ||||
* | * | ||||
* rationale: support for in-memory images is necessary for | * rationale: support for in-memory images is necessary for | ||||
* emulation of glCompressedTexImage2D and useful overall. | * emulation of glCompressedTexImage2D and useful overall. | ||||
* however, we don't want to provide an alternate interface for each API; | * however, we don't want to provide an alternate interface for each API; | ||||
▲ Show 20 Lines • Show All 158 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator