I want to create a PBO and then use the pack/unpack(correct me if that's wrong) methods to transfer texture-data from the main memory into the graphics memory. This should be possible via Direct Memory Access(DMA), which should ensure a responsive program with asynchronous loading (rather, transferring).
In short I want to:
- Load an image into main memory
- create PBO
- transfer pixel data into PBO while rendering a loading
- use pixel data to display textures or do whatever was intended in the first place
The hard part is creating the PBO and transferring pixel data using DMA...can someone please post some code to help me get started? (if anyone has java code, that's even better!)
I know I need to use glGenBuffersARB()...but I will need alot more I guess