¡@

Home 

c++ Programming Glossary: glblendfunc

Can't get masking to work correctly with OpenGL

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

background ... 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_DEPTH_TEST glBlendFunc GL_ONE GL_ZERO draw_img mask glBlendFunc GL_DST_ALPHA GL_ONE_MINUS_DST_ALPHA draw_img foreground glBlendFunc.. GL_DST_ALPHA GL_ONE_MINUS_DST_ALPHA draw_img foreground glBlendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA Here is my background image..

glTexImage2D failing in GLUT/FreeType example with OpenGL 3 and above

http://stackoverflow.com/questions/11150983/glteximage2d-failing-in-glut-freetype-example-with-opengl-3-and-above

blending necessary for our alpha texture glEnable GL_BLEND glBlendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA GLfloat black 4 0 0 0 1..

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

surface pixels glEnable GL_TEXTURE_2D glEnable GL_BLEND glBlendFunc GL_ONE GL_ONE_MINUS_SRC_ALPHA else SDL_Quit return false Free..

Using SDL_ttf and OpenGL, TTF_RenderUTF8_Blended print Red rectangle

http://stackoverflow.com/questions/12700085/using-sdl-ttf-and-opengl-ttf-renderutf8-blended-print-red-rectangle

enable regular alpha blending in OpenGL glEnable GL_BLEND glBlendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA This info used to be on..

Cannot run Opengl program

http://stackoverflow.com/questions/17632340/cannot-run-opengl-program

0.0f 0.0f 1.0f glEnable GL_DEPTH_TEST glLineWidth 2.5f glBlendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA glHint GL_LINE_SMOOTH_HINT.. RenderBlock modelViewMatrix.PopMatrix glEnable GL_BLEND glBlendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA RenderFloor glDisable GL_BLEND..

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..

OpenGL - mask with multiple textures

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

the white part or the black part work as supposed by using glBlendFunc but not the two at the same time because the foreground layer.. GL_BLEND Use a simple blendfunc for drawing the background glBlendFunc GL_ONE GL_ZERO Draw entire background without masking drawQuad.. corresponding framebuffer pixel's alpha will be set to 1. glBlendFuncSeparate GL_ZERO GL_ONE GL_SRC_COLOR GL_ZERO Now draw the mask..