I'm a bit confused about how to go about this. I have an array declared as such:
unsigned char ScreenBuf24[240*180*4];
Using GDI I can display whats in the buffer by making a bitmap like so:
HBITMAP hbmp;
hbmp = CreateBitmap(240,180,1,24,ScreenBuf24);
and doing bitblt and what have you.
How though do I get whats in ScreenBuf24 into a CGapiSurface? Can I create a surface directly with the buffer or bitmap? Or do I need to create a surface and then manipulate the buffer directly?
thanx