Console Hacking > PS Vita

[Release] libvita2d_sys - libvita2d for system mode applications

<< < (2/3) > >>

Graphene:
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);

Graphene:
libvita2d_sys has been updated!

New:

- Updated to accomodate changes in DolceSDK.
- JPEG decoder can now be initialized to use main memory. Specify 0 for useMainMemory to use phycont memory or 1 to use main user memory.
Note that using phycont memory results in faster decoding process, so use main memory only when phycont memory is not available.

Changed:

- Memory for GXM render target is now allocated explicitly.

Graphene:
libvita2d_sys has been updated!

General:

- Added vita2d_init_with_msaa_and_memsize(), wich allows initialization with set sizes for GXM buffers.
- For game mode, CDRAM is used for textures by default.
- Added simple widgets. For now only buttons are available:

vita2d_sys_create_widget_button()
vita2d_sys_delete_widget()
vita2d_sys_draw_widget()
vita2d_sys_widget_set_xy()
vita2d_sys_widget_set_text()
vita2d_sys_widget_set_visibility()
vita2d_sys_widget_set_highlight()
vita2d_sys_widget_get_x()
vita2d_sys_widget_get_y()
vita2d_sys_widget_set_highlight_max()

JPEG decoder:

- Reduced memory footprint of JPEG decoder (amount of required memory is calculated for each picture individually).
- Added ability to enable/disable downscale mode and set downscale margins.

Bugfixes:

- Fixed a bug that caused issues with multithreaded drawing

Graphene:
libvita2d_sys has been updated!

Added support for custom display resolutions. That includes 1280x720 and 1920x1080 with Sharpscale (https://forum.devchroma.nl/index.php/topic,112.0.html)

To set custom resolution, call vita2d_display_set_resolution() before initializing the library:

void vita2d_display_set_resolution(int hRes, int vRes); //Set display resolution.

Graphene:
Small correction: Sharpscale is only required for 1280x720 and 1920x1080 or for normal Vita.
1280x725 and 1920x1088 can be used without Sharpscale on PS TV only.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version