"OpenGL"의 두 판 사이의 차이

jjuiddong
이동: 둘러보기, 찾기
(새 문서: *glut 설치 **http://www.namuk.com/138)
 
 
1번째 줄: 1번째 줄:
 
*glut 설치
 
*glut 설치
 
**http://www.namuk.com/138
 
**http://www.namuk.com/138
 +
* openGL 문자 출력
 +
** http://www.opengl.org/archives/resources/features/fontsurvey/ 에서 GLUT을 이용해서 출력했다.
 +
 +
void print_bitmap_string(void* font, char* s)
 +
{
 +
if (s && strlen(s)) {
 +
while (*s) {
 +
glutBitmapCharacter(font, *s);
 +
s++;
 +
}
 +
}
 +
}
 +
 +
glRasterPos3f(-0.5f, 0.7f, -0.5f);
 +
print_bitmap_string(GLUT_BITMAP_9_BY_15, "Odds");
 +
 +
 +
** http://www.codersource.net/MFC/OpenGL/DisplayingTextOpenGLTutorial5.aspx
 +
** http://www.gisdeveloper.co.kr/429
 +
** google에서 Opengl tutorial output string 로 검색하면 나옴.

2013년 8월 25일 (일) 22:05 기준 최신판

void print_bitmap_string(void* font, char* s)
{
	if (s && strlen(s)) {
		while (*s) {
			glutBitmapCharacter(font, *s);
			s++;
		}
	}
}

	glRasterPos3f(-0.5f, 0.7f, -0.5f);
	print_bitmap_string(GLUT_BITMAP_9_BY_15, "Odds");


개인 도구
이름공간

변수
행위
둘러보기
도구모음