PDA

View Full Version : Drawing Transformable Text



PremalathaP
04-11-2007, 02:14 AM
I want to render transformable text using the code mentioned below. I am using GLC_TRIANGLE render style.

Here is my code:

int ctx = glcGenContext();
glcContext(ctx);

glcRenderStyle(GLC_TRIANGLE);
glTranslatef (20, 15, 0.f);
glScalef (20, 20, 0.0);
glRotatef (0.0, 0.0, 0.0, 1.0);
glColor3f (1.0f, 0.0f, 0.0f);

GLint m_font1 = glcGenFontID ();
glcNewFontFromFamily (m_font1, "Arial");
glcFontFace (m_font1, "Normal");
glcFont(m_font1);
glcRenderString("Hello World");

The problem is: while executing it draws the first character alone. sometimes it draws all the characters except first one.

Can you tell me where is the problem?