Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: display png with OpenGL  (Read 2381 times)

0 Members and 1 Guest are viewing this topic.

warriorgiroro

  • Newbie
  • *
  • Posts: 3
    • View Profile
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

JAssange

  • Full Member
  • ***
  • Posts: 104
    • View Profile
display png with OpenGL
« Reply #1 on: February 23, 2011, 11:01:46 pm »
SetSmooth(false)?

warriorgiroro

  • Newbie
  • *
  • Posts: 3
    • View Profile
display png with OpenGL
« Reply #2 on: February 24, 2011, 10:59:23 am »
both true and false didn't affect

warriorgiroro

  • Newbie
  • *
  • Posts: 3
    • View Profile
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

 

anything