| 47 | dmRender::RenderContextParams m_Params; |
| 48 | |
| 49 | void SetUp() override |
| 50 | { |
| 51 | dmGraphics::InstallAdapter(dmGraphics::ADAPTER_FAMILY_NONE); |
| 52 | |
| 53 | WindowCreateParams win_params; |
| 54 | WindowCreateParamsInitialize(&win_params); |
| 55 | win_params.m_Width = 20; |
| 56 | win_params.m_Height = 10; |
| 57 | win_params.m_ContextAlphabits = 8; |
| 58 | |
| 59 | m_Window = dmPlatform::NewWindow(); |
| 60 | dmPlatform::OpenWindow(m_Window, win_params); |
| 61 | |
| 62 | dmGraphics::ContextParams graphics_context_params; |
| 63 | graphics_context_params.m_Window = m_Window; |
| 64 | |
| 65 | m_GraphicsContext = dmGraphics::NewContext(graphics_context_params); |
| 66 | |
| 67 | dmScript::ContextParams script_context_params = {}; |
| 68 | script_context_params.m_GraphicsContext = m_GraphicsContext; |
| 69 | m_Params.m_ScriptContext = dmScript::NewContext(script_context_params); |
| 70 | m_Params.m_MaxCharacters = 256; |
| 71 | m_Params.m_MaxBatches = 128; |
| 72 | m_RenderContext = dmRender::NewRenderContext(m_GraphicsContext, m_Params); |
| 73 | } |
| 74 | void TearDown() override |
| 75 | { |
| 76 | dmRender::DeleteRenderContext(m_RenderContext, 0); |
nothing calls this directly
no test coverage detected