Sample programs

From PSL1GHT
Jump to: navigation, search
Language: English  • Deutsch

audio[edit]

Plays some sound generated from an algorithm.

audio_sync[edit]

cairoTest[edit]

Demonstrates doing graphics with the Cairo library.

camera[edit]

The camera sample is used for displaying a video input from either a PlayStation EYE(tm) or a PlayStation EyeToy(tm) on the screen. The code is created in such a way to handle both types of cameras even though they require different set up for each. Hopefully it is laid out in a way that is understandable for both.

This sample uses the libcamera sprx.

echoserv[edit]

jpgtest[edit]

Shows the PSL1GHT logo moving around the screen with a gradient background (The one used in the video example). The logo is loaded from a jpeg file.

kbtest[edit]

lv2diag[edit]

This sample is blank and does not do anything.

Trivia: This should not exist and was added accidentally by Matt_P in one of his commits.

msgdialog[edit]

Runs through examples of all available message dialogs; errors, Yes/No, single & double progress bars, and simple OK.

network[edit]

padtest[edit]

pngtest[edit]

Shows the PSL1GHT logo moving around the screen with a gradient background (The one used in the video example). The logo is loaded from a png file.

PS3Load[edit]

Loads a file over the network and executes it. This is how "make run" is accomplished in the samples.

Warning
  • PS3Load on 3.55 requires a non-NPDRM SELF, which cannot be created at this time.
  • UPDATE: latest PSL1GHT is working properly!


rsxTest[edit]

rsxTestVP[edit]

Warning


Displays a nice rotating image. The vertex program is written in Cg and is compiled at "make" time via vpcomp from the NVidia Cg Toolkit. The fragment program is pre-compiled binary code.

spudma[edit]

sputest[edit]

threadtest[edit]

videoTest[edit]

Fills the screen with a slowly cycling gradient of colors.