Hardware accelerated 2D library, used by the first year students of "Accademia Italiana Videogiochi"
Supports Windows, MacOSX, Linux, Android and iOS
It is the base for aiv-fast3d too, that adds support for 2.5d and 3d games
// open a window and get a OpenGL context Window window = new Window(1024, 576, "Title"); // open a window in full screen mode Window window = new Window(1920, 1080, "Title", true); // open a window in fullscreen mode with the current native resolution Window window = new Window("Title");
// load a Texture in the graphics card Texture texture = new Texture("path_to_image_file");
// create a mesh formed by two triangles and use it as a sprite // the mesh returned is a 100x100 pixels quad Sprite sprite = new Sprite(100, 100); // move the sprite sprite.position = new Vector2(x, y); //rotate the sprite on the z axis (in degrees) sprite.EulerRotation = 90; // scale a sprite sprite.scale = new Vector2(0.5f, 0.5f);
// draw a sprite/mesh with the specified texture sprite.DrawTexture(texture); // draw only a part of the the texture in the sprite/mesh sprite.DrawTexture(texture, xOffset, yOffset, width, height);