ttp://d.hatena.ne.jp/nakamura001/20091026/1256580081 OpenGL+GLUT導入 ttp://wisdom.sakura.ne.jp/system/opengl/index.html OpenGL入門 サンプルコード MainSource.cpp書き換え // TestOpenGL.cpp : コンソール アプリケーションのエントリ ポイントを定義します。 // #include "stdafx.h" #include <windows.h> #include <GL/gl.h> #include <GL/glut.h> void display(void) { glClear(GL_COLOR_BUFFER_BIT); glBegin(GL_POLYGON); glVertex3f ( 0.5, -0.5, 0.0); glVertex3f (-0.5, -0.5, 0.0); glVertex3f ( 0.5, 0.5, 0.0); glEnd(); glFlush(); } void init(void) { glClearColor(0.0, 0.0, 1.0, 1.0); } int _tmain(int argc, _TCHAR* argv[]) { glutInit(&argc, argv); glutInitDisplayMode(GLUT_RGBA); glutCreateWindow("TestOpenGL"); glutDisplayFunc(display); init(); glutMainLoop(); return 0; } IP:202.241.184.63 TIME:"2012-05-02 (水) 19:03:42" REFERER:"http://pokestory.rejec.net/main/index.php?cmd=edit&page=%3Aother02" USER_AGENT:"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB7.3; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)"