On Thu, 30 Oct 2008 21:02:41 +0100, Simen Kjaeraas <[EMAIL PROTECTED]> wrote:

On Thu, 30 Oct 2008 20:57:56 +0100, Simen Kjaeraas <[EMAIL PROTECTED]> 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.


BTW, shouldn't these be reference return values now (dmd v2.020)?

--
Simen

Reply via email to