MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / init

Method init

platform/windows/platformOpenGL.cpp:512–523  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

510}
511
512void PlatformOpenGL::init() {
513 BOXEDWINE_CRITICAL_SECTION;
514
515 formatsById.clear();
516 formats.clear();
517 hardwareListLoaded = false;
518
519
520 if (KSystem::videoOption != VIDEO_NO_WINDOW) {
521 hardwareListLoaded = queryOpenGL(formatsById, formats);
522 }
523}
524
525void PlatformOpenGL::iterateFormats(std::function<void(const GLPixelFormatPtr& format)> callback) {
526 for (auto& format : formats) {

Callers

nothing calls this directly

Calls 2

queryOpenGLFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected