본문 바로가기

프로그래밍/OpenGL

[OpenGL] 오픈지엘 다운로드 및 설치

오픈지엘을 사용하기 위해 라이브러리를 다운받고 비주얼 스튜디오로 환경 세팅을 해보자.

 

 

01. freeGLUT for win32 다운로드

 

다음 사이트에 들어가서 freeglut-MSVC 를 다운받는다. 

 

freeglut Windows Development Libraries (transmissionzero.co.uk)

 

freeglut Windows Development Libraries

Introduction Whilst at the University of Essex, I took a module called “Interactive Computer Graphics” (or EE222 as we referred to it). Half of the course consisted of using POV-Ray to create images, and then putting them together to make a high qualit

www.transmissionzero.co.uk

 

freeglut MSCV 파일 다운로드

 

 

 

02. GLEW for win32 설치

 

다음 사이트에 들어가서 GLEW를 다운로드한다.

 

GLEW: The OpenGL Extension Wrangler Library (sourceforge.net)

 

GLEW: The OpenGL Extension Wrangler Library

The OpenGL Extension Wrangler Library The OpenGL Extension Wrangler Library (GLEW) is a cross-platform open-source C/C++ extension loading library. GLEW provides efficient run-time mechanisms for determining which OpenGL extensions are supported on the tar

glew.sourceforge.net

 

GLEW 다운로드

 

 

 

03. GLM 다운로드

 

마지막으로 다음 사이트에 들어가서 GLM 0.9.9.5 버전을 다운로드 해준다.

 

OpenGL Mathematics (g-truc.net)

 

OpenGL Mathematics

OpenGL Mathematics GLSL + Optional features = OpenGL Mathematics (GLM) A C++ mathematics library for graphics programming OpenGL Mathematics (GLM) is a header only C++ mathematics library for graphics software based on the OpenGL Shading Language (GLSL) sp

glm.g-truc.net

 

 

glm 다운로드

 

glm 0.9.9.5 버전 다운로드

 

 

 

04. 라이브러리 설치

 

다운로드 받은 zip 파일을 압축을 풀어 헤더파일, lib, dll을 설치해보자.

 

1) 헤더파일 설치

// 설치파일
GLUT:	freeglut.h, freeglut_ext.h, freeglut_std.h
glew: 	glew.h, glxew.h, wglew.h, eglew.h
glm:  	glm 폴더

// 설치경로
GLUT:	C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gl
glew:	C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\gl
glm:	C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um

 

freeglut 헤더파일 이동

 

glew 헤더파일 이동
glm 폴더 이동

 

 

2) lib 파일 설치

// 설치파일
GLUT:	freeglut.lib			(x64)
glew:	glew32.lib / glew32s.lib	(x64)

// 설치경로
GLUT:	C:\Program Files (x86)\Windows Kits\10\Lib\10.0.22621.0\um\x64
glew:	C:\Program Files (x86)\Windows Kits\10\Lib\10.0.22621.0\um\x64

 

freeglut.lib 파일 이동
glew32.lib / glew32s.lib 파일 이동

 

3) dll 파일 설치

// 설치파일
GLUT:	freeglut.dll 	(x64)
glew:	glew32.dll	(x64)

// 설치경로
GLUT:	C:\Windows\System32
glew:	C:\Windows\System32

 

freeglut.dll 파일 System32 폴더로 이동
freeglut.dll 파일 SysWOW64 폴더로 이동

 

glew32.dll 파일 System32 폴더로 이동
glew32.dll 파일  SysWOW64 폴더로 이동

 

 

 

여기까지 했으면 OpenGL의 기본적인 파일은 모두 설치가 완료된다.