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

Function FramePeek

Descent3/game.cpp:1203–1213  ·  view source on GitHub ↗

peeks at the current frame returns false if there is no current frame

Source from the content-addressed store, hash-verified

1201// peeks at the current frame
1202// returns false if there is no current frame
1203bool FramePeek(int *x1, int *y1, int *x2, int *y2, bool *clear) {
1204 if (!FrameStackPtr)
1205 return false;
1206
1207 *x1 = FrameStackPtr->x1;
1208 *x2 = FrameStackPtr->x2;
1209 *y1 = FrameStackPtr->y1;
1210 *y2 = FrameStackPtr->y2;
1211 *clear = FrameStackPtr->clear;
1212 return true;
1213}
1214
1215void StartFrame(bool clear) {
1216 StartFrame(Game_window_x, Game_window_y, Game_window_x + Game_window_w, Game_window_y + Game_window_h, clear);

Callers 1

EndFrameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected