glut i n xcode tutorial

24
GLUT in Xcode Tutorial Write on 2013/10/02 國國國國國國 99703036 國國國 國國國

Upload: isha

Post on 14-Feb-2016

65 views

Category:

Documents


1 download

DESCRIPTION

GLUT i n Xcode Tutorial. Write on 2013/10/02 國立政治大學 99703036 資科四 陳育聖. Press Xcode and create new project. Application -> Command Line. Type : C++. Create where you want. Test Project -> Build Phases -> +. Search gl -> GLUT and OpenGL. Click main.cpp and right button. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: GLUT i n Xcode  Tutorial

GLUT in Xcode Tutorial

Write on 2013/10/02國立政治大學 99703036 資科四 陳育聖

Page 2: GLUT i n Xcode  Tutorial

Press Xcode and create new project

Page 3: GLUT i n Xcode  Tutorial

Application -> Command Line

Page 4: GLUT i n Xcode  Tutorial

Type : C++

Page 5: GLUT i n Xcode  Tutorial

Create where you want

Page 6: GLUT i n Xcode  Tutorial

Test Project -> Build Phases -> +

Page 7: GLUT i n Xcode  Tutorial

Search gl -> GLUT and OpenGL

Page 8: GLUT i n Xcode  Tutorial

Click main.cpp and right button

Page 9: GLUT i n Xcode  Tutorial

Move to Trash

Page 10: GLUT i n Xcode  Tutorial

Move *.cpp and *.h to your project

Page 11: GLUT i n Xcode  Tutorial

Copy items

Page 12: GLUT i n Xcode  Tutorial

Xcode -> Preferences

Page 13: GLUT i n Xcode  Tutorial

Derived Data -> Relative -> Advanced

Page 14: GLUT i n Xcode  Tutorial

Choose Legacy

Page 15: GLUT i n Xcode  Tutorial

We want set image to exe folderBut didn’t build exe so…

Page 16: GLUT i n Xcode  Tutorial

Run

Page 17: GLUT i n Xcode  Tutorial

Result

Page 18: GLUT i n Xcode  Tutorial

It’s exist so…

Page 19: GLUT i n Xcode  Tutorial

Right button -> Show in Finder

Page 20: GLUT i n Xcode  Tutorial

Drag Image folder to exe folder

Page 21: GLUT i n Xcode  Tutorial

Run

Page 22: GLUT i n Xcode  Tutorial

Success !!!

Page 23: GLUT i n Xcode  Tutorial

The path where you put imagein the future

Page 24: GLUT i n Xcode  Tutorial

END