PSP Library
Handy stuff for PSP programmersLike most programmers, I've accumulated a small library of reusable code that other people might find useful. Unlike most programmers, I enjoy writing documentation. I've got a bunch of handy code sitting on my hard drive and I'll post more as I get around to writing docs for it.
License
Software licenses bore me to tears, but I'd appreciate it if you acknowledged my contribution to your project, and I have two "don'ts:"
- Don't blame me. This code is provided without warranty. I've tested it as well as I can but I'm not responsible if it sets your hair on fire.
- Don't sell it. Get in touch with me if you're working on a commercial project. (My email address is at the bottom of the page if you have JavaScript enabled.)
Documentation
- AT3 - ATRAC3 audio playback
- Fonts - bitmap font manager
- Graphics - GU manager
- MP3Utils - MP3 metadata manager
- RLE - Run-length encoding
- Tex - texture manager
- Utility - basic utilities
Download
The download includes a tool called png2txr for converting PNGs to TXRs for use with Tex.
Changes since 1.1
- General
- Added run-length encoding module
- Added run-length encoding to png2txr, with command-line option to disable
- MP3Utils
- Added function for creating waveform textures
- Tex
- Added functions for creating textures at runtime
- Added fractional dimensions to TexTexture
- Added support for run-length encoded pixel data
- Textures with unrecognized flags will not be loaded
- Graphics
- Added enabling/disabling of coordinate transformation
Changes since 1.0
- General
- Added AT3 module for playing ATRAC3 audio
- Made some corrections and clarifications to documentation
- Fonts
- Uses Graphics vertex pool instead of internal pool
- Uses 32-bit/8888 color instead of 16-bit/4444
- Graphics
- Added functions for enabling and disabling textures
- Added function for performing screen fades
- Changed vertex color and coordinates from 16-bit/4444 and 16-bit integer to 32-bit/8888 and 32-bit floating-point, respectively
- Functions that accept color parameters use 32-bit/8888 instead of 16-bit/4444
- Increased vertex pool from 16,384 vertices to 21,845 (just shy of 512K)
