mirror of
https://github.com/RGBCube/serenity
synced 2025-10-29 01:12:33 +00:00
The CardPainter in LibCards caches already painted bitmaps. This adds a helper that gets the bitmap from a cache or creates a new one, if the it doesn't exist yet. It does this by calling a creator function with the new bitmap, which can then paint into the bitmap. This makes the code a bit simpler and shorter. |
||
|---|---|---|
| .. | ||
| Card.cpp | ||
| Card.h | ||
| CardGame.cpp | ||
| CardGame.h | ||
| CardPainter.cpp | ||
| CardPainter.h | ||
| CardStack.cpp | ||
| CardStack.h | ||
| CMakeLists.txt | ||