GLchar** problem

Saaa empty at needmail.com
Thu Oct 30 13:20:57 PDT 2008


>
> Assuming the C code works, here's what you do in D.
>
> GLuint shader;
> shader=glCreateShader(GL_FRAGMENT_SHADER);
> char[] file=cast(char[])read(`program.frag`);
> char* filep = toStringz(file);
> glShaderSource(f, 1, &filep,null);
>

erm.. ok, thanks :)
Thought I tried this already.
But, how is filep now an char** ? 




More information about the Digitalmars-d-learn mailing list