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.
- Host: GitHub
- URL: https://github.com/islamaliev/flash_display
- Owner: islamaliev
- Created: 2016-04-21T19:54:18.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-07-15T14:29:00.000Z (almost 8 years ago)
- Last Synced: 2025-07-11T02:57:37.279Z (11 months ago)
- Topics: 2d-game-framework, data-oriented-design, data-oriented-programming, opengl, rendering, rendering-2d-graphics, rendering-engine
- Language: C++
- Homepage:
- Size: 134 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
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();
```