MCPcopy Create free account
hub / github.com/OneLoneCoder/olcPixelGameEngine / GDIPlusStartup

Class GDIPlusStartup

olcPixelGameEngine.h:6450–6466  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected