GLchar** problem

Simen Kjaeraas simen.kjaras at gmail.com
Thu Oct 30 13:02:41 PDT 2008


On Thu, 30 Oct 2008 20:57:56 +0100, Simen Kjaeraas  
<simen.kjaras at gmail.com> wrote:

> A more D-like way of doing it would possibly be:
>
> 	char[] file;
> 	file = read("program.frag");
> 	glShaderSource(f, 1, &file.ptr, &file.length);
>

Scratch this last part. I'd hoped it worked, but ptr and length aren't  
lvalues, so no can do.

-- 
Simen


More information about the Digitalmars-d-learn mailing list