MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / addDrawables

Method addDrawables

source/game/StarEntityRendering.cpp:9–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7RenderCallback::~RenderCallback() {}
8
9void RenderCallback::addDrawables(List<Drawable> drawables, EntityRenderLayer renderLayer, Vec2F translate) {
10 for (auto& drawable : drawables) {
11 drawable.translate(translate);
12 addDrawable(std::move(drawable), renderLayer);
13 }
14}
15
16void RenderCallback::addLightSources(List<LightSource> lightSources, Vec2F translate) {
17 for (auto& lightSource : lightSources) {

Callers 4

renderMethod · 0.80
renderMethod · 0.80
renderMethod · 0.80
renderMethod · 0.80

Calls 1

translateMethod · 0.45

Tested by

no test coverage detected