libvita2d_sys has been updated!
New:
- GXT textures are now supported. All GXT texture formats are supported, including compressed textures. Since single gxt file can contain multiple textures, loading and freeing procedures differ from the standard ones, more info in example below.
- Added vita2d_JPEG_decoder_initialize_with_params() - can be used to reduce memory footprint of JPEG decoder (by default decoder is initialized with max size for all buffers).
Changed:
- Changed fw version in shared fb init procedure to 3.57.
GXT textures usage example:
In this example, gxt file contains 3 textures:
vita2d_texture *tex1, *tex2, *tex3;
/* Load master texture. For this texture, index value must be 0. Set io_type to 1 if you are loading from FIOS2 overlay */
tex1 = vita2d_load_GXT_file("app0:texture.gxt", 0, 0);
/* Load slave textures. Index value depends on the file order set when creating gxt file */
tex2 = vita2d_load_additional_GXT(tex1, 1);
tex3 = vita2d_load_additional_GXT(tex1, 2);
.
.
.
/* Slave textures must be unloaded first. Master texture must be unloaded last. */
vita2d_free_texture(tex3);
vita2d_free_texture(tex2);
vita2d_free_texture(tex1);