A simple, fast, light-weight 2D graphics library for PSP.
Go to file
2021-08-01 13:01:44 -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
glib2d.c Remove dependencies and allow user to pass RGBA buffer into g2dTexLoad instead 2021-08-01 13:01:44 -04:00
glib2d.h Remove dependencies and allow user to pass RGBA buffer into g2dTexLoad instead 2021-08-01 13:01:44 -04:00
glib2d.o Remove dependencies and allow user to pass RGBA buffer into g2dTexLoad instead 2021-08-01 13:01:44 -04:00
libglib2d.a Remove dependencies and allow user to pass RGBA buffer into g2dTexLoad instead 2021-08-01 13:01:44 -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 Remove dependencies and allow user to pass RGBA buffer into g2dTexLoad instead 2021-08-01 13:01:44 -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.
  • g2dTexLoad reads from an RGBA buffer instead of a path, allowing the developer to use any image decoder that outputs RGBA data.
  • 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".