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

Method drawable

source/frontend/StarInterfaceCursor.cpp:43–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43Drawable InterfaceCursor::drawable() const {
44 if (m_drawable.is<String>())
45 return Drawable::makeImage(m_drawable.get<String>(), 1.0f, false, {});
46 else
47 return m_drawable.get<Animation>().drawable(1.0f);
48}
49
50Vec2I InterfaceCursor::size() const {
51 return m_size;

Callers 6

setCursorMethod · 0.45
updateMethod · 0.45
renderMethod · 0.45
renderCursorMethod · 0.45
renderCursorMethod · 0.45
renderCursorMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected