On Wednesday, 3 June 2015 at 10:56:21 UTC, Kyoji Klyden wrote:
So in "const char* sources = source.ptr;" sources is just turning the property ptr of source into a variable,
yes
and then in glShaderSource you're passing the memory address of sources
yes
(which is technically source.ptr)
No, the address of sources is not the same as `source.ptr`.
to the function? Do I have that right? If I do, then I think this all makes sense