| 32 | bool m_MultiBufferingRequired; |
| 33 | |
| 34 | void SetUp() override |
| 35 | { |
| 36 | dmGraphics::InstallAdapter(dmGraphics::ADAPTER_FAMILY_NONE); |
| 37 | |
| 38 | WindowCreateParams win_params; |
| 39 | WindowCreateParamsInitialize(&win_params); |
| 40 | win_params.m_Width = 20; |
| 41 | win_params.m_Height = 10; |
| 42 | win_params.m_ContextAlphabits = 8; |
| 43 | |
| 44 | m_Window = dmPlatform::NewWindow(); |
| 45 | dmPlatform::OpenWindow(m_Window, win_params); |
| 46 | |
| 47 | dmGraphics::ContextParams graphics_context_params; |
| 48 | graphics_context_params.m_Window = m_Window; |
| 49 | |
| 50 | m_GraphicsContext = dmGraphics::NewContext(graphics_context_params); |
| 51 | |
| 52 | dmScript::ContextParams script_context_params = {}; |
| 53 | script_context_params.m_GraphicsContext = m_GraphicsContext; |
| 54 | m_Params.m_ScriptContext = dmScript::NewContext(script_context_params); |
| 55 | m_Params.m_MaxCharacters = 256; |
| 56 | m_Params.m_MaxBatches = 128; |
| 57 | m_RenderContext = dmRender::NewRenderContext(m_GraphicsContext, m_Params); |
| 58 | |
| 59 | m_MultiBufferingRequired = m_RenderContext->m_MultiBufferingRequired; |
| 60 | } |
| 61 | void TearDown() override |
| 62 | { |
| 63 | dmRender::DeleteRenderContext(m_RenderContext, 0); |
nothing calls this directly
no test coverage detected