MCPcopy Create free account
hub / github.com/StereoKit/StereoKit / wWinMain

Function wWinMain

Examples/StereoKitCTest/main.cpp:154–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152int main() {
153#else
154int __stdcall wWinMain(void*, void*, wchar_t*, int) {
155#endif
156 log_subscribe(on_log);
157 log_set_filter(log_diagnostic);
158
159 sk_settings_t settings = {};
160 settings.app_name = "StereoKit C";
161 settings.assets_folder = "Assets";
162 settings.mode = app_mode_xr;
163 if (!sk_init(settings))
164 return 1;
165
166 common_init();
167
168 scene_set_active(demos[8]);
169
170 sk_run(common_update, common_shutdown);
171
172 return 0;
173}
174
175void common_init() {
176 // Create a PBR floor material

Callers

nothing calls this directly

Calls 6

log_subscribeFunction · 0.85
log_set_filterFunction · 0.85
sk_initFunction · 0.85
common_initFunction · 0.85
scene_set_activeFunction · 0.85
sk_runFunction · 0.85

Tested by

no test coverage detected