mirror of https://github.com/adamdruppe/arsd.git
Add minimal PixmapPresenter example
This commit is contained in:
parent
61e7df3e44
commit
a4ed17e0a1
|
@ -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
|
### Advanced example
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
Loading…
Reference in New Issue