Squidge
Certified Guru
OpenGL normally copies the data, but I can't say for sure on the omap, as I don't have any OGL libraries.Tinnus said:OK, but then any way to give pointers to OpenGL? For example, will glTexImage2D always copy the image data somewhere or will it only use the pointer (ie: I can call glTexImage2D every frame to change texture pointers/data around in realtime)?
Will the mmap'ed pointer to /dev/fb0 be the same framebuffer with the data the GPU writes?
Yes, but it's strongly recommended that you don't. Instead you should allocate memory for your secondary/tertiary frame buffer, and copy that one to the first at each vblank rather than altering the frame buffer pointer.Tinnus said:Would I be able to set the framebuffer pointer manually?
Last edited by a moderator: