mirror of
https://github.com/edubart/otclient.git
synced 2025-12-14 12:49:47 +01:00
reorganize all constants and place them into namespaces
This commit is contained in:
@@ -50,8 +50,8 @@ void Graphics::init()
|
||||
m_opacity = 255;
|
||||
m_emptyTexture = TexturePtr(new Texture);
|
||||
|
||||
bindColor(Color::white);
|
||||
bindBlendFunc(BLEND_NORMAL);
|
||||
bindColor(Fw::white);
|
||||
bindBlendFunc(Fw::BlendNormal);
|
||||
}
|
||||
|
||||
void Graphics::terminate()
|
||||
@@ -299,13 +299,13 @@ void Graphics::bindTexture(const TexturePtr& texture)
|
||||
glBindTexture(GL_TEXTURE_2D, texture->getId());
|
||||
}
|
||||
|
||||
void Graphics::bindBlendFunc(BlendFuncType blendType)
|
||||
void Graphics::bindBlendFunc(Fw::BlendFunc blendType)
|
||||
{
|
||||
switch(blendType) {
|
||||
case BLEND_NORMAL:
|
||||
case Fw::BlendNormal:
|
||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||
break;
|
||||
case BLEND_COLORIZING:
|
||||
case Fw::BlendColorzing:
|
||||
glBlendFunc(GL_DST_COLOR, GL_ONE_MINUS_SRC_ALPHA);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user