Advertisement
Guest User

testdisplay

a guest
Nov 17th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3. #include <stdlib.h>
  4.  
  5. #include <psp2/ctrl.h>
  6. #include <psp2/kernel/processmgr.h>
  7.  
  8. #include <vita2d.h>
  9.  
  10. int main(){
  11. vita2d_texture* image;
  12. vita2d_init();
  13. vita2d_set_clear_color(RGBA8(0x40, 0x40, 0x40, 0xFF));
  14.  
  15. image = vita2d_load_JPEG_file("ux0:test.jpg");
  16. while (1) {
  17. vita2d_start_drawing();
  18. vita2d_clear_screen();
  19. vita2d_draw_texture(image,0,0);
  20. vita2d_end_drawing();
  21. vita2d_swap_buffers();
  22. }
  23.  
  24.  
  25. sceKernelExitProcess(0);
  26. return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement