What's wrong with writefln("%s", glGetString(GL_EXTENSIONS));

Cris central_p at hotmail.com
Sat Mar 4 08:53:42 PST 2006


it doesn't work that way: "src\engine\renderer.d(104): cannot implicitly 
convert expression ((glGetString)(7939u)) of type ubyte* to char*"


Anders F Björklund wrote:
> Cris wrote:
> 
>> What's wrong with writefln("%s", glGetString(GL_EXTENSIONS));
>>
>> printf works but not writefln?
>>
>> How can I get the returned string by GLubyte* glGetString(); into a D 
>> char[]?
> 
> std.string.toString:
> 
> writefln("%s", toString(glGetString(GL_EXTENSIONS)));
> 
> --anders



More information about the Digitalmars-d-learn mailing list