stanleyw
11-13-2003, 01:26 PM
I am trying to use a alpha test on a radeon 9700 but it does not work. I looked at my pixel format and it says i have 8 alphabits(not the cerial). My code works on nvidia video card. Here is an excerpt:
glRasterPos2f( 0.0f, 0.0f );
glEnable( GL_ALPHA_TEST );
glAlphaFunc(GL_GREATER, 0.10f );
BOOL bAlpha = glIsEnabled( GL_ALPHA_TEST );
glCopyPixels( m_rcDevicePos.left, m_rcDevicePos.top ,
m_rcDevicePos.Width(), m_rcDevicePos.Height(), GL_COLOR );
the pixels i am trying to copy are in RGBA format. I asked for 24 bit color but got 32 bits which i expected to happened and is not a problem. I also asked for 8 alpha bits and got them.
glRasterPos2f( 0.0f, 0.0f );
glEnable( GL_ALPHA_TEST );
glAlphaFunc(GL_GREATER, 0.10f );
BOOL bAlpha = glIsEnabled( GL_ALPHA_TEST );
glCopyPixels( m_rcDevicePos.left, m_rcDevicePos.top ,
m_rcDevicePos.Width(), m_rcDevicePos.Height(), GL_COLOR );
the pixels i am trying to copy are in RGBA format. I asked for 24 bit color but got 32 bits which i expected to happened and is not a problem. I also asked for 8 alpha bits and got them.