| 6448 | // Thanks @MaGetzUb for this, which allows sprites to be defined |
| 6449 | // at construction, by initialising the GDI subsystem |
| 6450 | static class GDIPlusStartup |
| 6451 | { |
| 6452 | public: |
| 6453 | GDIPlusStartup() |
| 6454 | { |
| 6455 | Gdiplus::GdiplusStartupInput startupInput; |
| 6456 | GdiplusStartup(&token, &startupInput, NULL); |
| 6457 | } |
| 6458 | |
| 6459 | ULONG_PTR token; |
| 6460 | |
| 6461 | ~GDIPlusStartup() |
| 6462 | { |
| 6463 | // Well, MarcusTU thought this was important :D |
| 6464 | Gdiplus::GdiplusShutdown(token); |
| 6465 | } |
| 6466 | } gdistartup; |
| 6467 | |
| 6468 | class ImageLoader_GDIPlus : public olc::ImageLoader |
| 6469 | { |
nothing calls this directly
no outgoing calls
no test coverage detected