Hi to All.
I'm a newbie to OpenGL so please be patient to my question ;]
I'm trying to implement a simple crossplatform OpenGL based 2D-Canvas engine. Simply adding a plane and bindind texture to it.
The question is: how to make that the invisible color from the base image where absolutely transperent? I mean that: if there is a "transperent hole" on the image and I place another plane with texture behind it and it would be visible.
I tried using
but it works other way than I want.Code :glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
And the other thing. How to make output more clear, not so blended, as if I used low quality textures? The perfect result would be to get 1 to 1 pixel match, without any interpolation.
Thanks a lot for your answers.
With best regards. Daniel.