Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
56 user(s) are online (49 user(s) are browsing Forums)

Members: 0
Guests: 56

more...
Support us!
Recent OS4 Files
OS4Depot.net
Report message:*
 

Re: SDL2

Subject: Re: SDL2
by thellier on 2018/8/27 12:43:31

@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..
Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project