Skip to content

AlBirdie/Starling-Extension-Graphics

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Starling-Extension-Graphics

This extension adds a suite of graphics primitives such as Planes, Fills and Strokes. These are starling display objects that are automatically triangulated for fast rendering on the GPU.

These primitives can be manipulated directly, or created on your behalf by using a familiar graphics API accessed via the Shape class.

Roadmap

Optimisations across the board to aid with performance on mobile devices. If you're targeting mobile, try to avoid calls to graphics.lineTo() as much as possible. Any arbitrary polygon shape is processed by a triangulator implemented in AS3, which is very CPU intensive. drawRect(), drawRoundedRect(), drawCircle() etc are implemented by specialised primitives, so avoid the triangulator altogether.

Improve performance of triangulator by using trapezoidalisation to pre-process polygons fed to the ear-clipping algorithm.

Provide an extended library of off-the-shelf vertex/fragment shaders for commonly desired effects (reccomendations/votes welcome).

Add support for 'holes' on fills.

Starling Framework: the GPU powered 2D Flash API

What is Starling?

Starling is an ActionScript 3 library that mimics the conventional Flash display tree architecture. In contrast to conventional display objects, however, Starling "lives" entirely inside the Stage3D environment. That means that all objects are rendered directly by the GPU, which leads to a significant performance boost.

Starling's API is not a direct 1:1 port of the Flash API. The classes were streamlined and optimized for working well with the GPU; common tasks in game development were simplified. Starling hides the Stage3D internals from developers, but makes it easy to access them for those who need to create custom display objects.

Just like its iOS sibling, the Sparrow Framework, Starling aims to be as lightweight and easy to use as possible. As an Open Source project, much care was taken to make the source code easy to read, understand and extend.

Where do I find more information about Starling?

Here are a few starting points:

About

flash.display.Graphics style extension for the Starling Flash GPU rendering framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • ActionScript 100.0%