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

Method drawImageCentered

source/windowing/StarCanvasWidget.cpp:33–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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));
35}
36
37void CanvasWidget::drawImageRect(String texName, RectF const& texCoords, RectF const& screenCoords, Vec4B const& color) {
38 m_renderOps.append(make_tuple(std::move(texName), texCoords, screenCoords, color));

Callers 1

makeMethod · 0.80

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected