mirror of
https://github.com/edubart/otclient.git
synced 2025-12-21 16:07:12 +01:00
ui loader and some refactoring
This commit is contained in:
@@ -37,14 +37,9 @@ Image::Image(const std::string& texture, Rect textureCoords) :
|
||||
m_texture = g_textures.get(texture);
|
||||
}
|
||||
|
||||
void Image::enableBilinearFilter()
|
||||
{
|
||||
m_texture->enableBilinearFilter();
|
||||
}
|
||||
|
||||
void Image::draw(const Rect& screenCoords)
|
||||
{
|
||||
g_graphics.drawTexturedRect(screenCoords, m_texture.get(), m_textureCoords);
|
||||
g_graphics.drawTexturedRect(screenCoords, m_texture, m_textureCoords);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user