mirror of
https://github.com/adamdruppe/arsd.git
synced 2025-04-26 13:20:05 +03:00
Add minimal PixmapPresenter example
This commit is contained in:
parent
61e7df3e44
commit
a4ed17e0a1
1 changed files with 10 additions and 0 deletions
|
@ -72,6 +72,16 @@
|
|||
}
|
||||
---
|
||||
|
||||
### Minimal example
|
||||
|
||||
---
|
||||
void main() {
|
||||
auto pmp = new PixmapPresenter("My Pixmap App", Size(640, 480));
|
||||
pmp.framebuffer.clear(rgb(0xFF, 0x00, 0x99));
|
||||
pmp.eventLoop();
|
||||
}
|
||||
---
|
||||
|
||||
### Advanced example
|
||||
|
||||
---
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue