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

Method drawImage

source/windowing/StarCanvasWidget.cpp:29–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29void CanvasWidget::drawImage(String texName, Vec2F const& position, float scale, Vec4B const& color) {
30 m_renderOps.append(make_tuple(std::move(texName), position, scale, color, false));
31}
32
33void CanvasWidget::drawImageCentered(String texName, Vec2F const& position, float scale, Vec4B const& color) {
34 m_renderOps.append(make_tuple(std::move(texName), position, scale, color, true));

Callers 2

makeMethod · 0.80
renderImplMethod · 0.80

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected