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

Function RenderBackground

Descent3/TelcomEffectsRender.cpp:768–779  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

766 tce->age += frametime;
767}
768void RenderBackground(tceffect *tce, float frametime, int xoff, int yoff, bool ok_to_render) {
769 if (!ok_to_render)
770 return;
771 ASSERT(tce->type == EFX_BACKGROUND);
772 int lx, rx, ty, by;
773 lx = tce->pos_x + xoff;
774 rx = tce->pos_x + xoff + tce->w;
775 ty = tce->pos_y + yoff;
776 by = tce->pos_y + yoff + tce->h;
777 rend_FillRect(tce->color, lx, ty, rx, by);
778 tce->age += frametime;
779}
780void RenderMovie(tceffect *tce, float frametime, int xoff, int yoff, bool ok_to_render) {
781 if (!ok_to_render)
782 return;

Callers 1

RenderEffectFunction · 0.85

Calls 1

rend_FillRectFunction · 0.50

Tested by

no test coverage detected