Hi,
With MiniGL 2.2 when I want to create an image directly by grabbing pixels on openGL screen, I used :
Quote:
glReadBuffer( GL_BACK );
glReadPixels( X, Y, Width, Height, GL_RGBA, GL_UNSIGNED_BYTE, NewPicture->Pixels );
but now, with miniGL 2.3 ... I only get an image entirely grey.
I tried to change glReadBuffer with GL_FRONT or remove the command to see it MiniGL automatically use the correct buffer ... but nothing worked.
Hans, I've seen you've made changes concerning buffer in MiniGL 2.3 ... What can I do to fix this issue ?
More to this, do you plan to add glBlendEquation() functions in MiniGL ?
EDIT:
Here is my grab image function :
Quote:
...
glMatrixMode( GL_PROJECTION );
glLoadIdentity();
gluOrtho2D( 0.0, (float)BasicSetup.DisplayWIDTH, 0.0, (float)BasicSetup.DisplayHEIGHT );
glMatrixMode( GL_MODELVIEW );
glLoadIdentity();
INTERNAL_PrepareImageMode( NewIndex, ImageMode );
// glReadBuffer( GL_BACK );
glReadPixels( iX1, iY1, Width, Height, GL_RGBA, GL_UNSIGNED_BYTE, NewPicture->Pixels );
...
It worked with MiniGL 2.2 ... now my screen flash to grey when I use my image grabbing ...
Thank you.
Kindest Regards,
AmiDARK.
Edited by freddix on 2010/11/1 12:37:37
Edited by freddix on 2010/11/1 12:39:35
Edited by ssolie on 2010/11/1 21:14:45