Closed thp closed 5 years ago
This adds two new functions that give more control over rendering arbitrary polygons (and/or batching draw calls) while still leaving all the platform abstraction (setting up shader programs, etc...) to libvita2d.
void vita2d_draw_array(SceGxmPrimitiveType mode, const vita2d_color_vertex *vertices, size_t count); void vita2d_draw_array_textured(const vita2d_texture *texture, SceGxmPrimitiveType mode, const vita2d_texture_vertex *vertices, size_t count, unsigned int color);
Example code (test case) is also included.
Looks good, so I merged it, thanks!
This adds two new functions that give more control over rendering arbitrary polygons (and/or batching draw calls) while still leaving all the platform abstraction (setting up shader programs, etc...) to libvita2d.
Example code (test case) is also included.