bagl 0.6.1

Basic Graphics Library for Dart.

BaGL.dart: Basic Graphics Library for Dart.

WIP: expect changes to public interfaces, missing features and bugs. Please feel free to open issues on missing functionality and changes to public interfaces.

BaGL is a low-level abstraction on top of WebGL. It aims to provide a simpler, safer and more declarative drawing alternative to plain WebGL. BaGL was inspired by Glium and Elm WebGL.

Usage

Examples

Some basic examples are available in the example folder:

  • Triangle (dart, html): the "hello world" of the graphics world, drawing a single triangle.
  • Animated triangle (dart, html): demonstrates an animation loop with a triangle whose size oscillates.
  • Textured triangle (dart, html): demonstrates texturing with a 2D texture from a separate png file.
  • Cube (dart, html): demonstrates drawing a 3D mesh.
  • Animated Cube (dart, html): demonstrates an animation loop with a 3D mesh.
  • Textured Cube (dart, html): demonstrates texturing a 3D mesh with a 2D texture from a separate png file.

Documentation

API documentation is available here.