chronosgl 4.0.2 copy "chronosgl: ^4.0.2" to clipboard
chronosgl: ^4.0.2 copied to clipboard

Platformweb

A simple WebGL2 engine written in Dart

ChronosGL #

A simple WebGL2 engine written in Dart #

Features: #

  • MIT licensed
  • straight-forward API
  • lightweight (close to "baremetal")
  • fully based on WebGL2 and GLSL 3.00es
  • keyboard and mouse event capture
  • support for canvas based textures including skybox
  • focus on procedural content generation
  • optional basic scenegraph
  • importer for several file formats
  • bone animations
  • few dependencies

Code #

Examples #

Usage #

Create a new Dart webapp project, add this as a pubspec.yaml dependency:

    dependencies:
        chronosgl: any

You also need the vector_math library which is the only library that ChronosGL is dependent on.

As a test copy simple.html and simple.dart from above into your project.

It should look like this:

If you need to import dart:html, do so as follows:

import 'dart:html' as HTML;

This will avoid a naming conflict for Node.

7
likes
70
pub points
1%
popularity

Publisher

unverified uploader

A simple WebGL2 engine written in Dart

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

js, js_bindings, vector_math

More

Packages that depend on chronosgl