Home

Awesome

UGS: Universal Graphic Surface

PlatformSurface

The layer between platform depended window/view/surface handle and GFX context. For example OpenGL context can be created via nativeHandleForGL() depending on type() and nativeResource() when necessary.

RenderLoop

It's an abstract class implements threaded rendering loop with any number of PlatformSurface.

A derived class only need to implement how to manage GFX context for a given surface, for example, create/destroy/active/swap OpenGL context.

Do your rendering jobs in RenderLoop callbacks.

TODO

License: MPL version 2.0. You can freely use it in your commercial or opensource software.

Wang Bin, wbsecg1 at gmail.com, 2017~2020