Introduction
Blackspirit Graphics is a 2D Java graphics library designed for games, providing a simple but powerful interface.
This is an open source project under the Apache License, Version 2.0 and hosted on sourceforge.net.
The main goals Blackspirit Graphics tries to achieve are:
- Operating System Independency
- Hardware Acceleration
- Suited for real-time applications
- Integrateable into GUI applications (Swing/AWT)
- Simple Interface
The Blackspirit Graphics interface gives access to all important primitive drawing operations and some advanced features:
- Draw Points
- Draw Lines (Optionally with color gradient)
- Draw Triangles (Optionally with color gradient and texturing)
- Draw Images, Draw on Images, Buffered Images for procedural Image creation (like video rendering)
- Draw Text (using AWT fonts)
- Drawing Modes (Alpha Blend, Addition, Subtraction, Multiplication, Overriding)
- Transformations (Translation, Rotation, Scaling)
- Support for Shapes (Optionally with color gradient and texturing)
- Factory for common Shapes (Circle, Ellipse, Rectangle, Rounded Rectangle, etc.)
- Utility for manual creation of Shapes based on outlines and cut-outs
- Animation
JOGL Implementation
The default implementation uses the Java OpenGL bindings (JOGL) for rendering which is hardware accelerated and operating system independent. JOGL native libraries exist for Windows, Mac OSX, Linux and Solaris.
As far as possible full garbage collections are avoided to provide smooth real-time rendering.