mirror of
https://github.com/edubart/otclient.git
synced 2025-11-04 20:46:24 +01:00
begin implementing OpenGL 1.0 engine
* option to pass -opengl1 or -opengl2 as argument * note that with this commit there are a lot of graphics regressions and the master will remaing unstable for a while * shaders disabled for a while
This commit is contained in:
@@ -45,14 +45,14 @@ Particle::Particle(const Point& pos, const Size& startSize, const Size& finalSiz
|
||||
|
||||
void Particle::render()
|
||||
{
|
||||
g_painter.setColor(m_color);
|
||||
g_painter->setColor(m_color);
|
||||
|
||||
if(!m_texture)
|
||||
g_painter.drawFilledRect(m_rect);
|
||||
g_painter->drawFilledRect(m_rect);
|
||||
else {
|
||||
g_painter.setCompositionMode(m_compositionMode);
|
||||
g_painter.drawTexturedRect(m_rect, m_texture);
|
||||
g_painter.setCompositionMode(Painter::CompositionMode_Normal);
|
||||
g_painter->setCompositionMode(m_compositionMode);
|
||||
g_painter->drawTexturedRect(m_rect, m_texture);
|
||||
g_painter->setCompositionMode(Painter::CompositionMode_Normal);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user