| 23 | { |
| 24 | |
| 25 | ContextHandle getCurrentContextHandle() |
| 26 | { |
| 27 | auto id = ContextHandle{0}; |
| 28 | |
| 29 | #if defined(OS_WIN) |
| 30 | const auto context = wglGetCurrentContext(); |
| 31 | #elif defined(OS_LNX) |
| 32 | const auto context = glXGetCurrentContext(); |
| 33 | #else |
| 34 | const auto context = CGLGetCurrentContext(); |
| 35 | #endif |
| 36 | id = reinterpret_cast<ContextHandle>(context); |
| 37 | |
| 38 | return id; |
| 39 | } |
| 40 | |
| 41 | DisplayHandle getCurrentDisplayHandle() |
| 42 | { |
no outgoing calls
no test coverage detected