Cube-GLES2-PVR PSP2 Vita: Difference between revisions

From GameBrew
No edit summary
No edit summary
 
Line 10: Line 10:
|description=OpenGL Cube Demo using PVR_PSP2 Driver layer GPU libraries.
|description=OpenGL Cube Demo using PVR_PSP2 Driver layer GPU libraries.
|author=MR-Research
|author=MR-Research
|lastupdated=2021/09/20
|lastupdated=2021/09/21
|type=Demos
|type=Demos
|version=release
|version=1.0
|license=MIT
|license=MIT
|download=https://dlhb.gamebrew.org/vitahomebrews/cubegles2pvrpsp2vita.7z
|download=https://dlhb.gamebrew.org/vitahomebrews/cubegles2pvrpsp2vita.7z

Latest revision as of 11:31, 18 January 2023

Cube GLES2 - PVR PSP2
Cubegles2pvrpsp2vita2.png
General
AuthorMR-Research
TypeDemos
Version1.0
LicenseMIT License
Last Updated2021/09/21
Links
Download
Website
Source

This is a openGL cube demo program. It was made as a tech demo using PVR_PSP2 Driver layer GPU libraries.

The PVR_PSP2 initialization and library handling was adapted from the work of ZeroNinx. The PS Vita demo implements the openGL cube demo from a BlackBerry GLES 2.0 Tutorial, PS Vita code was based on SonicMastr's implementation.

Features

  • Implements PVR_PSP2 libraries, instead of VitaGL, or Pigs in a Blanket.
  • No more CG to GLSL shader conversion.
  • Barebones example for those interested in using the GPU libraries.

Compiling

Requires VitaSDK and PVR_PSP2 >=v3.5. Once you have installed VitaSDK, clone PVR_PSP2 repository, and download VitaSDK Stubs from the releases section of PVR_PSP2. Copy all .a files from vitasdk_stubs.zip to your $VITASDK lib path,

$VITASDK/arm-vita-eabi/lib

Copy include folder from PVR_PSP2 repository to your VitaSDK include folder, and rename it to PVR_PSP2,

$VITASDK/arm-vita-eabi/include/

Compile using cmake and make,

mkdir cmake_build
cmake ..
make

Installing

Copy the generated VPK to your PS Vita using your preferred method. Install using VitaShell.

Changelog

v1.0

  • Update main.cpp
  • Corrected coment, GLSL shader code is used.

Credits

Thanks to all the great people that made this possible:

  • GrapheneCt, Bythos, and Jaylon Gowie for developing PVR_PSP2.
  • ZeroNix's code to properly setup the graphics library.
  • SonicMastr for cube demo on PS Vita.

External links

Advertising: