So, i am trying to make a Sine scroller, and i am having problems with it.
char frase[] = "Sine Scroller";
float ls = 1.0f;
int len = strlen(frase);
for (int i=0;i < len;i++)
{
glPushMatrix();
glTranslatef(-len*ls/2.0f + ls*i,0.0f,5.0f + sin((i*10 + t*4)DEG));
glRotatef(90.0f,1.0f,0.0f,0.0f);
GLfloat scale = 2.0f;
glScalef(scale,scale,scale);
Font::print((const char*)frase[i]); // Receives a const char* value. // Error goes here.
glPopMatrix();
}
As you can see i am trying to obtain each letter from a "char" array (frase[]) and convert each letter to a "const char*" value so i can use the "Font:print" function, but i am having problems in this conversion, how to?
Edit: Mods please remove this thread