OPENGL/GLUT Getting Started

Your First OpenGL Program:
o Windows Visual C++ (.NET 2005)
http://dis.dankook.ac.kr/lectures/cg07/entry/Your-first-OpenGL-program

OPENGL/GLUT 설치:
o Windows Visual C++ (.NET 2005)http://dis.dankook.ac.kr/lectures/cg07/entry/OPENGLGLUT-Installation

o LINUX Makefile


[#M_ more.. | less.. |
###################################################################
# Makefile for clear.c
###################################################################

# include directories for linux, sun, sgi, and os-x

# note that if you try to compile a glut-based application on red-hat 9
# (at least as of summer 03) you will need to install an older version of
# glut on your system, or rebuild it yourself. For more info on this you
# can type glut XFreeDeviceList into google and you will get a bunch of links
# to various solutions

INCLUDE_DIR = -I/usr/local/X11/include
#sun INCLUDE_DIR = -I/usr/local/glut-3.7/include/GL
#SGI O2 INCLUDE_DIR = -I/usr/include/GL
#OS-X INCLUDE_DIR = -I/System/Library/Frameworks/GLUT.framework/Headers

LIBRARY_DIR = -L./. -L/usr/local/X11/lib -L/usr/X11/lib -L/usr/X11R6/lib -L/usr/lib

LIBRARIES = -lglut -lm -lGLU -lGL -lXmu -lXext -lXt -lX11
#OS-X LIBRARIES = -framework GLUT -framework OpenGL -lobjc

COMPILER_FLAGS = -O

COMPILER = gcc

OBJ_FILES = clear.o
EXEC = clear

$(EXEC): $(OBJ_FILES)
$(COMPILER) $(COMPILER_FLAGS) -o $(EXEC) $(OBJ_FILES) \
$(LIBRARY_DIR) $(LIBRARIES)
#OS-X needs this too /Developer/Tools/Rez -t APPL -o shell1 mac.r

clear.o: clear.c
$(COMPILER) $(COMPILER_FLAGS) $(INCLUDE_DIR) -c shell1.c

clean:
\rm -f $(OBJ_FILES) $(EXEC)

_M#]

Leave a Reply

Your email address will not be published. Required fields are marked *