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

Class Platform_Headless

olcPixelGameEngine.h:5162–5184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5160#endif
5161#if defined(OLC_PLATFORM_HEADLESS)
5162 class Platform_Headless : public olc::Platform
5163 {
5164 public:
5165 virtual olc::rcode SetWindowSize(const olc::vi2d& vPos, const olc::vi2d& vSize) override
5166 {
5167 return olc::rcode::OK;
5168 }
5169
5170 virtual olc::rcode ShowWindowFrame(const bool bShowFrame = true) override
5171 {
5172 return olc::rcode::OK;
5173 }
5174
5175 virtual olc::rcode ApplicationStartUp() { return olc::rcode::OK; }
5176 virtual olc::rcode ApplicationCleanUp() { return olc::rcode::OK; }
5177 virtual olc::rcode ThreadStartUp() { return olc::rcode::OK; }
5178 virtual olc::rcode ThreadCleanUp() { return olc::rcode::OK; }
5179 virtual olc::rcode CreateGraphics(bool bFullScreen, bool bEnableVSYNC, const olc::vi2d& vViewPos, const olc::vi2d& vViewSize) { return olc::rcode::OK; }
5180 virtual olc::rcode CreateWindowPane(const olc::vi2d& vWindowPos, olc::vi2d& vWindowSize, bool bFullScreen) { return olc::rcode::OK; }
5181 virtual olc::rcode SetWindowTitle(const std::string& s) { return olc::rcode::OK; }
5182 virtual olc::rcode StartSystemEventLoop() { return olc::rcode::OK; }
5183 virtual olc::rcode HandleSystemEvent() { return olc::rcode::OK; }
5184 };
5185#endif
5186}
5187#pragma endregion

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected