![]() |
Conquer Chess
Chess and Starcraft combined
|
The textures used in the Lobby dialog. More...
#include <input_prompt_textures.h>
Public Member Functions | |
input_prompt_textures () | |
bool | has_texture (const std::string &s) const noexcept |
Determine if a texture is present. | |
sf::Texture & | get_inverted_texture (const sf::Keyboard::Key &k) |
Get an inverted texture from an SFML key. | |
sf::Texture & | get_texture (const std::string &s) |
Get a texture from a std::string. | |
sf::Texture & | get_texture (const sf::Keyboard::Key &k) |
Get a texture from an SFML key. | |
sf::Texture & | get_texture (const sf::Mouse::Button &b) |
Get a texture from an SFML mouse button. | |
int | get_n_textures () const noexcept |
The textures used in the Lobby dialog.
input_prompt_textures::input_prompt_textures | ( | ) |
sf::Texture & input_prompt_textures::get_inverted_texture | ( | const sf::Keyboard::Key & | k | ) |
Get an inverted texture from an SFML key.
|
inlinenoexcept |
sf::Texture & input_prompt_textures::get_texture | ( | const sf::Keyboard::Key & | k | ) |
Get a texture from an SFML key.
sf::Texture & input_prompt_textures::get_texture | ( | const sf::Mouse::Button & | b | ) |
Get a texture from an SFML mouse button.
sf::Texture & input_prompt_textures::get_texture | ( | const std::string & | s | ) |
Get a texture from a std::string.
Prefer to use get_texture
with a SFML key, if there is a key available, as these are tested. However, some textures, e.g. 'mouse_move' have no key associated with it and can only be obtained with this method.
|
noexcept |
Determine if a texture is present.