MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / ddvid_Init

Function ddvid_Init

dd_video/video_lnx.cpp:56–74  ·  view source on GitHub ↗

called first to allow fullscreen video access

Source from the content-addressed store, hash-verified

54
55// called first to allow fullscreen video access
56bool ddvid_Init(oeApplication *app, char *driver) {
57 int subsys_id;
58
59 // preinitialize system.
60 if (!DDVideo_init) {
61 DDVideo_info.app = NULL;
62 DDVideo_info.info = NULL;
63 atexit(ddvid_Close);
64 } else {
65 ddvid_Close();
66 }
67
68 DDVideo_init = true;
69
70 DDVideo_info.app = (oeLnxApplication *)app;
71
72 // vga_init();
73 return true;
74}
75
76// closes ddvid system manually.
77void ddvid_Close() {

Callers 3

EditorToGameFunction · 0.85
InitGraphicsFunction · 0.85
RestartD3Function · 0.85

Calls 1

ddvid_CloseFunction · 0.85

Tested by

no test coverage detected