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.. |
###################################################################_M#]
# 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 solutionsINCLUDE_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/HeadersLIBRARY_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 -lobjcCOMPILER_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.rclear.o: clear.c
$(COMPILER) $(COMPILER_FLAGS) $(INCLUDE_DIR) -c shell1.cclean:
\rm -f $(OBJ_FILES) $(EXEC)