Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Graphics
»
display png with OpenGL
Print
Pages: [
1
]
Author
Topic: display png with OpenGL (Read 2379 times)
0 Members and 1 Guest are viewing this topic.
warriorgiroro
Newbie
Posts: 3
display png with OpenGL
«
on:
February 23, 2011, 09:59:17 pm »
is there any problem that I display a png format image with alpha channel ?
since I am using OpenGL
I am not sure that it's the problem of OpenGL or sfml problem
nut the result is there left a white blend for the transparent part
Logged
JAssange
Full Member
Posts: 104
display png with OpenGL
«
Reply #1 on:
February 23, 2011, 11:01:46 pm »
SetSmooth(false)?
Logged
warriorgiroro
Newbie
Posts: 3
display png with OpenGL
«
Reply #2 on:
February 24, 2011, 10:59:23 am »
both true and false didn't affect
Logged
warriorgiroro
Newbie
Posts: 3
display png with OpenGL
«
Reply #3 on:
February 24, 2011, 11:20:09 am »
Quote from: "JAssange"
SetSmooth(false)?
THANKS A LOT
I ve FOUND THE PROBLEM
it s opengl part have to call
glEnable (GL_BLEND);
glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
to perform a transpancy effect
Logged
Print
Pages: [
1
]
SFML community forums
»
Help
»
Graphics
»
display png with OpenGL
anything