| 113 | NonGraphicsContext ngc; |
| 114 | |
| 115 | std::variant<Graphics *, Renderer *, NonGraphicsContext *> GetGraphics() |
| 116 | { |
| 117 | if (eventTraits & eventTraitSimGraphics) |
| 118 | { |
| 119 | // This is ok without calling gameModel->view->PauseRendererThread() because |
| 120 | // the renderer thread gets paused anyway if there are handlers |
| 121 | // installed for eventTraitSimGraphics and *SimDraw events. |
| 122 | return ren; |
| 123 | } |
| 124 | if (eventTraits & eventTraitInterfaceGraphics) |
| 125 | { |
| 126 | return g; |
| 127 | } |
| 128 | return &ngc; |
| 129 | } |
| 130 | |
| 131 | std::vector<CustomElement> customElements; // must come after luaState |
| 132 | std::vector<CustomTool> customTools; |
no outgoing calls
no test coverage detected