heyx3 / Bplus.jl

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

Support taking raw pointers for uniform data, especially uniform arrays #39

Open heyx3 opened 1 year ago

heyx3 commented 1 year ago

OpenGL is taking it as a pointer anyway, so why not?

This would probably require a whole separate overload for set_uniform() and set_uniforms() (see GL/program.jl).

If it's not too tricky, make it support both Ptr and Ref.