string to char array?
Kagamin via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Jun 3 04:46:23 PDT 2015
On Wednesday, 3 June 2015 at 10:21:20 UTC, Kyoji Klyden wrote:
> Also the one part I don't understand is with &sources. So is
> this passing sources as a reference, but sources itself is a
> pointer to a pointer? I'm just a tad confused on how this part
> works :S
For some weird reason the function accepts an array of strings
for shader source instead of one string. In C speak char* is a
string, char** is an array of strings - that's passed to the
function.
More information about the Digitalmars-d-learn
mailing list