MCPcopy Create free account
hub / github.com/Hopson97/HopsonCraft / Component

Method Component

Source/GUI/Component.cpp:12–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10 bool hasSetupResources;
11
12 Component::Component()
13 {
14 if (!hasSetupResources)
15 {
16 guiTexture.loadFromFile("Data/Textures/GUI.png");
17 guiTexture.setRepeated(true);
18
19 hasSetupResources = true;
20 }
21 }
22
23 bool Component::touchingMouse(const sf::Shape& sprite) const
24 {

Callers

nothing calls this directly

Calls 1

loadFromFileMethod · 0.45

Tested by

no test coverage detected