A simple, fast, light-weight 2D graphics library for PSP.
Go to file
2020-07-25 22:13:58 -04:00
sample Remove libpng and libjpeg from makefiles 2019-03-04 21:20:00 -06:00
CHANGELOG Updated changelog 2011-08-08 22:54:06 +02:00
Doxyfile Updated README 2011-08-08 23:47:39 +02:00
dr_pcx.h Update stb_image and add pcx loader 2019-11-03 17:50:16 -05:00
glib2d.c Use const char* instead of a char array 2020-07-25 22:13:58 -04:00
glib2d.h Use const char* instead of a char array 2020-07-25 22:13:58 -04:00
LICENSE switch to LGPLv3 2012-07-01 00:05:19 +02:00
Makefile -g CFLAG 2012-04-15 12:55:35 +02:00
README.md Update README.md 2019-11-03 17:52:21 -05:00
stb_image.h Update stb_image.h 2020-07-25 22:13:31 -04:00

Introduction

gLib2D by Geecko - A simple, fast, light-weight 2D graphics library. This library has been designed to replace the old graphics.c library and to simplify the use of pspgu. The goals : keep it simple, keep it small, keep it fast.

Changes in this fork:

This fork of glib2D does the following:

  • No longer relies on ancient versiosn of libpng or libjpeg.
  • Uses stb_image and dr_pcx (easy to keep up to date)
  • Adds support for loading BMP, GIF, PCX, PNM, PGM, and TGA files. (JPEG and PNG are initally supported)
  • Some general cleanup.

Known limitations

  • Draw & display buffers can't actually be used as real textures. Just a way to get the vram pointer.
  • No support for multiples contexts (e.g. sharing coordinates between textures using some g2dBegin calls at a time).
  • Manipulating textures (clear, get pixel info...) is not possible.
  • When some 512*512 rotated, colorized and scaled textures are rendered at a time, the framerate could go under 60 fps.

Installation

  • Simply put glib2d.c, glib2d.h and stb_image.h in your source directory.
  • Then add glib2d.o and link "-lz -lpspgu -lm -lpspvram" in your Makefile.
  • You're done !

License

This work is licensed under the LGPLv3 License. See the LICENSE file for more details. You can support the library by marking your homebrew with "Using gLib2D by Geecko".