Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- #include <stdlib.h>
- #include <psp2/ctrl.h>
- #include <psp2/kernel/processmgr.h>
- #include <vita2d.h>
- int main(){
- vita2d_texture* image;
- vita2d_init();
- vita2d_set_clear_color(RGBA8(0x40, 0x40, 0x40, 0xFF));
- image = vita2d_load_JPEG_file("ux0:test.jpg");
- while (1) {
- vita2d_start_drawing();
- vita2d_clear_screen();
- vita2d_draw_texture(image,0,0);
- vita2d_end_drawing();
- vita2d_swap_buffers();
- }
- sceKernelExitProcess(0);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement