Just replace the ASCII code character codes with below function =) Simple and more effective!
void placetext(float x, float y, float z, void *font, char *string)
{
char *c;
glRasterPos3f(x,y,z);
for(c=string; *c!='\0'; c++)
{
glutBitmapCharacter(font,*c);
}
}
and replace your codes at display( ) function with;
placetext(0,0,0,GLUT_BITMAP_HELVETICA_18,"Hai Fiza!!");
Subscribe to:
Post Comments (Atom)
Question 1: Introduction to Variable
Based on code below, create a dynamic program that solve problem below: Source Code: #include <iostream> using na...
-
Group No.5 Project: Basic Mileage Calculator Group Member: NAZNI HANI BINTI ARSHAD - POLIMAS NOORAZURA BINTI NATHA @ MOKHTAR - P...
-
Assalamualaikum & Salam Sejahtera Welcome December 2013 Session, I'm delighted to welcome you all! FP303 Computer Network - Class...
-
Assalamualaikum dan Salam Sejahtera Saya ingin bertanya pendapat semua pembaca khususya pelajar dan pensyarah politeknik / IPTA / IPTS. Ap...
No comments:
Post a Comment