Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion blit alpha transparency
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Sebastian Schlegel  
View profile  
 More options Oct 16 2012, 7:23 am
From: Sebastian Schlegel <j.sebastian.schle...@googlemail.com>
Date: Tue, 16 Oct 2012 04:23:50 -0700 (PDT)
Local: Tues, Oct 16 2012 7:23 am
Subject: Re: blit alpha transparency

glEnable(GL_BLEND)
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA)

is the correct way and has only to be called once. You don't have to move
them into your draw function. But check your glClearColor. In my case the
alpha was set to 0 which caused the white appearance of the transparent
parts.

Am Donnerstag, 16. Februar 2012 23:56:12 UTC+1 schrieb Paul:

> when i blit an image w/ alpha transparency, the transparent parts show
> white
> and i already tried this code:

> glEnable(GL_BLEND)
> glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA)

> but it didn't work...any help? thanks a lot


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.