Changes Log:
- Renamed g* functions to g2d*
- Removed g2dSetCoord*Relative’s third argument
- Using constants instead of bools for some g2d* functions (better readability)
- Dynamic allocation of the display list, no more artifacts with a small heap
- Replaced G2D_FALSE and G2D_TRUE by false and true
- Added a global scale factor : g2d(Set/Get/Reset)GlobalScale
- Better scaling quality
- Lots of code rework
- No more swizzling artifacts
- Smaller display list size, saves 3/4 megabyte
- Forced coordmode with an inverted object is no longer applied
- Corrected documentation
Developers Note:
There was once a library "graphics" pretty basic, but whose source code was readily understandable. The user's changed little by little to meet their needs, but he soon realized that the library had some big flaws. He corrected the extent possible, and added new features. Then, through patience and tinkering, he learned to use the pspgu. It was very powerful, but complex to master, and he spent much time rewriting the code and adapt it to have satisfactory performance, so he lost a lot of time stumbling over small technicalities. Realizing that the library "graphics" deserved to be taken to zero, the user decided to create a new library, deliberately limited, to be fast and lightweight, it combined the advantages of the two libraries, namely: simplicity , performance, opportunities.
Thus was born gLib2D.
This library is written from scratch, and features :
- Display of basic objects, such as rectangles, lines, quads and points.
- Possibility of texturing, JPEG and PNG support
- Scaling, rotation, coloring, alpha blending, displaying a part of the texture (crop)
- Ability to combine these effects at the same time
- Support for a third coordinate, in Z, to use the depth buffer
- Concept of relativity, and 2D transforms like OpenGL (Pop / Push)
- Intelligent use of the pspgu: library use only what is necessary for the display.
- Compatibility with intraFont (not included)
- Definition of many constants, and macros useful.
- Complete PDF documentation
- Some samples included
Categories:
PSP Homebrew


