 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
Geecko
Joined: 04 Nov 2008 Posts: 7
|
Posted: Sun Jan 09, 2011 1:30 am Post subject: gLib2D Beta 5 Library |
|
|
Hi all,
I'm proud to present you a brand new 2D graphics library, called gLib2D.
Here's the history (hopefully translated by QJ.net) :
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
The project is still in an early beta, so maybe there will be bugs.
I hope many testers will help me to find them, or guide me to add some incredible features :D
A new LuaPlayer, called XtreamLua Player integrating this library has been released (by FlavR)
Grab it on my own Github repository ! (download page)
Maybe you need the Doxygen documentation on my website ?
I hope you'll enjoy it !
Last edited by Geecko on Tue Aug 09, 2011 5:30 pm; edited 3 times in total |
|
| Back to top |
|
 |
Geecko
Joined: 04 Nov 2008 Posts: 7
|
Posted: Tue Aug 09, 2011 5:19 pm Post subject: |
|
|
After few months of intense testing... beta 5 is released!
What's new ?
- Improved support of intraFont
- 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
Now the library can be considered as stable.
Please, try it, break it! |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|