Advertisement

glGetString

Started by June 13, 2000 11:25 AM
0 comments, last by Gandalf 24 years, 5 months ago
Can somebody help me use this function! It return a pointer to a unsigned byte, but how can I convert it to oointer to a null-terminated string ? This doesn´t work: unsigned BYTE *test = glGetString(GL_VENDOR); MessageBox(0, (char*)test, 0, 0); Gandalf the White
Gandalf the Black
hi Gandalf,

you can try:
int sprintf(char *string,const *format_string,...)
ex:
sprintf(buffer,"%d",number);
//buffer will contain number

lunasol

This topic is closed to new replies.

Advertisement