Original Post
Hi there! I am trying to implement a desktop 3d model viwer, which means I don't want to show the anything about window, just a 3d model itself.(windows plateform). I have tried SetLayeredWindowAttributes(), but that function not only make the window transparency but also make everyting draw in the framebuff transparency. And that method really decreases the FPS. By the way, there is anther problem confused me. glClearColor(0,0,0,0); unsigned char _Tbuf[40000]; unsigned char _Tbuf2[40000]; memset(_Tbuf2,0,40000*sizeof(unsigned char)); glDrawBuffer(GL_BACK); glDrawPixels(100,100,GL_RGBA,GL_UNSIGNED_BYTE,_Tbuf2); glReadBuffer(GL_BACK); glReadPixels(0,0,100,100,GL_RGBA,GL_UNSIGNED_BYTE,_Tbuf); the _Tbuf alpha channle always be 255, no matter what alpha value I set. Is that means the framebuff alpha channle is always 255? Thanks.