An open API service indexing awesome lists of open source software.

https://github.com/islamaliev/flash_display

Fast 2D rendering engine that takes advantage of data-oriented design.
https://github.com/islamaliev/flash_display

2d-game-framework data-oriented-design data-oriented-programming opengl rendering rendering-2d-graphics rendering-engine

Last synced: 26 days ago
JSON representation

Fast 2D rendering engine that takes advantage of data-oriented design.

Awesome Lists containing this project

README

          

# flash_display
Fast 2D rendering engine that takes advantage of data-oriented design.

### Examples
Simple object

```C++
Stage stage(800, 600);

DisplayObject obj;
obj.setWidth(300);
obj.setHeight(100);
obj.setX(20);
obj.setY(20);

stage.addChild(&obj);

stage.start();
```

Textures

```C++
Stage stage(800, 600);

FileLoader loader;
loader.load("texture.jpg");

if (loader.size()) {
Texture* texture = (Texture*) loader.data();

Image* image = new Image();
image->setTexture(texture);
image->setX(10);
image->setY(300);
image->setWidth(100);
image->setHeight(100);
stage.addChild(image);
}

stage.start();
```