string to char array?
anonymous via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Jun 3 04:03:33 PDT 2015
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
More information about the Digitalmars-d-learn
mailing list