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

Function rend_StartFrame

legacy/renderer/renderer.cpp:861–888  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

859 }
860}
861void rend_StartFrame(int x1, int y1, int x2, int y2, int clear_flags) {
862 switch (Renderer_type) {
863 case RENDERER_SOFTWARE_16BIT:
864 case RENDERER_SOFTWARE_8BIT:
865#ifdef USE_SOFTWARE
866 tex_StartFrame(x1, y1, x2, y2);
867#endif
868 break;
869 case RENDERER_OPENGL:
870#ifdef USE_OPENGL
871 opengl_BeginFrame(x1, y1, x2, y2, clear_flags);
872#endif
873 break;
874 case RENDERER_GLIDE:
875#ifdef USE_GLIDE
876 glide_BeginFrame(x1, y1, x2, y2, clear_flags);
877#endif
878 break;
879 case RENDERER_DIRECT3D:
880#ifdef USE_D3D
881 d3d_BeginFrame(x1, y1, x2, y2, clear_flags);
882#endif
883 break;
884 default:
885 Int3();
886 break;
887 }
888}
889// Flips the screen
890void rend_Flip() {
891 switch (Renderer_type) {

Callers 4

FontKernFunction · 0.50
message_boxFunction · 0.50
FontCreateFunction · 0.50
FontViewFunction · 0.50

Calls 2

opengl_BeginFrameFunction · 0.85
d3d_BeginFrameFunction · 0.85

Tested by

no test coverage detected