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

Function StartEditorFrame

editor/gameeditor.cpp:977–989  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

975static grViewport *Editor_g3_vp = NULL;
976
977void StartEditorFrame(grViewport *vp, vector *viewer_eye, matrix *viewer_orient, float zoom) {
978 grSurface *surf;
979
980 ASSERT(vp != NULL);
981
982 Editor_g3_vp = vp;
983 surf = Editor_g3_vp->lock();
984 if (!surf)
985 Int3(); // This surface should be locked. bad?
986
987 rend_StartFrame(0, 0, surf->width(), surf->height());
988 g3_StartFrame(viewer_eye, viewer_orient, zoom);
989}
990
991void EndEditorFrame() {
992 Editor_g3_vp->unlock();

Callers 15

StartHemicubeDrawingFunction · 0.85
RenderMethod · 0.85
TGWRenderMineMethod · 0.85
OnLButtonDownMethod · 0.85
OnRButtonDownMethod · 0.85
DrawDoorwayDoorPicMethod · 0.85
UpdateWeaponViewMethod · 0.85
UpdateDoorViewMethod · 0.85
WireframeFindRoomFaceFunction · 0.85
SelectRoomsInBoxFunction · 0.85
DrawWorldFunction · 0.85
UpdateAnimStateViewMethod · 0.85

Calls 5

g3_StartFrameFunction · 0.85
rend_StartFrameFunction · 0.50
lockMethod · 0.45
widthMethod · 0.45
heightMethod · 0.45

Tested by

no test coverage detected