MCPcopy Create free account
hub / github.com/defold/defold / SetUp

Method SetUp

engine/platform/src/test/test_platform.cpp:49–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47 }
48
49 void SetUp() override
50 {
51 m_Window = WindowNew();
52
53 m_ResizeData.m_Width = 0;
54 m_ResizeData.m_Height = 0;
55
56 WindowCreateParams params;
57 WindowCreateParamsInitialize(&params);
58 params.m_ResizeCallback = OnWindowResize;
59 params.m_ResizeCallbackUserData = &m_ResizeData;
60 params.m_Title = APP_TITLE;
61 params.m_Width = WIDTH;
62 params.m_Height = HEIGHT;
63 params.m_Fullscreen = false;
64 params.m_PrintDeviceInfo = false;
65 params.m_ContextAlphabits = 8;
66
67 WindowOpen(m_Window, &params);
68 }
69
70 void TearDown() override
71 {

Callers

nothing calls this directly

Calls 3

WindowNewFunction · 0.85
WindowOpenFunction · 0.85

Tested by

no test coverage detected