컴퓨터그래픽스과제7 - 미로 만들기
- 최초 등록일
- 2014.08.22
- 최종 저작일
- 2014.05
- 8페이지/ 한컴오피스
- 가격 2,000원
목차
없음
본문내용
#include "gl\glut.h"
#include "math.h"
static GLfloat theta= 0.0;
static GLint axis = 2;
static GLfloat x=0,y=0,z=0;
GLfloat vertices[][3] = {{-1.0,-1.0,-1.0},{1.0,-1.0,-1.0},
{1.0,1.0,-1.0}, {-1.0,1.0,-1.0}, {-1.0,-1.0,1.0},
{1.0,-1.0,1.0}, {1.0,1.0,1.0}, {-1.0,1.0,1.0}};
GLfloat light0_diffuse[]={1.0,1.0,1.0,1.0};
void myinit(){
glEnable(GL_LIGHTING);
glEnable(GL_LIGHT0);
GLfloat light0_specular[]={1,1,1,1};
glLightfv(GL_LIGHT0, GL_DIFFUSE, light0_diffuse);
glLightfv(GL_LIGHT0, GL_SPECULAR, light0_specular);
참고 자료
없음