heyx3 / Bplus.jl

A modern OpenGL 4.6 rendering framework, written in Julia.
Other
69 stars 3 forks source link

Add `GL.Buffer` mapping #44

Open heyx3 opened 1 year ago

heyx3 commented 1 year ago

In modern OpenGL, you are encouraged to map buffers to some CPU memory for efficient upload and download.

Currently we only support uploading arrays of data directly to the GPU, so we should add this second, newer form of interaction.

Study this page to understand the topic: https://www.khronos.org/opengl/wiki/Buffer_Object_Streaming