¡@

Home 

c++ Programming Glossary: gl_one

Can't get masking to work correctly with OpenGL

http://stackoverflow.com/questions/10400651/cant-get-masking-to-work-correctly-with-opengl

... glEnable GL_BLEND glDisable GL_DEPTH_TEST glBlendFunc GL_ONE GL_ZERO draw_img mask glBlendFunc GL_DST_ALPHA GL_ONE_MINUS_DST_ALPHA.. GL_ONE GL_ZERO draw_img mask glBlendFunc GL_DST_ALPHA GL_ONE_MINUS_DST_ALPHA draw_img foreground glBlendFunc GL_SRC_ALPHA.. draw_img foreground glBlendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA Here is my background image over which I am..

I'm seeing artifacts when I attempt to rotate an image

http://stackoverflow.com/questions/1191093/im-seeing-artifacts-when-i-attempt-to-rotate-an-image

glEnable GL_TEXTURE_2D glEnable GL_BLEND glBlendFunc GL_ONE GL_ONE_MINUS_SRC_ALPHA else SDL_Quit return false Free the.. GL_TEXTURE_2D glEnable GL_BLEND glBlendFunc GL_ONE GL_ONE_MINUS_SRC_ALPHA else SDL_Quit return false Free the SDL_Surface..

Again - parallax mapping issue in OpenGL, GLSL. It's not as usual as it seem to be

http://stackoverflow.com/questions/4750707/again-parallax-mapping-issue-in-opengl-glsl-its-not-as-usual-as-it-seem-to

1 glDepthFunc GL_LEQUAL glEnable GL_DEPTH_TEST glBlendFunc GL_ONE GL_ONE GLfloat ratio glViewport 0 0 ResolutionWidth ResolutionHeight.. GL_LEQUAL glEnable GL_DEPTH_TEST glBlendFunc GL_ONE GL_ONE GLfloat ratio glViewport 0 0 ResolutionWidth ResolutionHeight..

OpenGL - mask with multiple textures

http://stackoverflow.com/questions/5097145/opengl-mask-with-multiple-textures

a simple blendfunc for drawing the background glBlendFunc GL_ONE GL_ZERO Draw entire background without masking drawQuad backgroundTexture.. alpha will be set to 1. glBlendFuncSeparate GL_ZERO GL_ONE GL_SRC_COLOR GL_ZERO Now draw the mask again this doesn't produce.. only in areas with high alpha. glBlendFunc GL_DST_ALPHA GL_ONE_MINUS_DST_ALPHA drawQuad foregroundTexture This is fairly tricky..