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

Method Image

Source/GUI/Image.cpp:7–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5namespace GUI
6{
7 Image::Image(const std::string& name, const sf::Vector2f& size)
8 {
9 m_texture.loadFromFile("Data/Textures/" + name + ".png");
10
11 m_quad.setSize(size);
12 m_quad.setTexture(&m_texture);
13 }
14
15 void Image::input(const sf::Event& e)
16 { }

Callers

nothing calls this directly

Calls 1

loadFromFileMethod · 0.45

Tested by

no test coverage detected