비트맵폰트
void glutBitmapCharacter(void *font, int character)
인자 설명:
font - 사용할 폰트의 이름입니다.(아래에 사용가능한 값들이 있습니다.)
character - 렌더링할 대상입니다. 문자, 기호, 숫자 등등...glutBitmapCharacter(GLUT_HELVETICA_18,'3');Last updated
void glutBitmapCharacter(void *font, int character)
인자 설명:
font - 사용할 폰트의 이름입니다.(아래에 사용가능한 값들이 있습니다.)
character - 렌더링할 대상입니다. 문자, 기호, 숫자 등등...glutBitmapCharacter(GLUT_HELVETICA_18,'3');Last updated
void glRasterPos2f(float x, float y);
void glRasterPos3f(float x, float y, float z);
인자 설명:
x, y, z - 문자열이 출력될 지역 좌표값입니다.void renderBitmapCharacter(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);
}
}