Not too shy to talk
Joined: 2011/6/3 13:49 Last Login
: Yesterday 6:24
Group:
Registered Users
|
@BSzili
>You can't change buffers
MiniGL/buffer.c/buf_SetFrontBuffer(GLcontext context, void *bitmap, GLboolean free);
Seems to set frontbuffer to a given bitmap Then the(RGB or RGBA) bitmap can be used to update a texture...
bmHandle=LockBitMapTags(bm,LBMI_BASEADDRESS,(ULONG)&pixels, TAG_DONE);
glTexImage2D(GL_TEXTURE_2D, 0, 3, w, h, 0,GL_RGB,GL_UNSIGNED_BYTE, pixels); UnLockBitMap(bmHandle);
Untested.... huhh..
|