Dark Bit Factory & Gravity
PROGRAMMING => C / C++ /C# => Topic started by: relsoft on November 11, 2010
-
Here are the sources and win binary.
http://rel.betterwebber.com/MyProgs/gl2d_c.zip
Only dependecy is GLFW (hence the targa).
This is going to be ported to Gamecube(that's why it's in C) as I was asked to make a C version of GL2D.
Thanks in advance.
PS. If anyone homebrews for the GameCube using GX*, I'd be glad to hear from you.
;*)
-
For linux you just need a makefile and type "make":
CC = gcc
CFLAGS = -O2
INCPATH = -I.
LINK = g++
LIBS = -lglfw -lGLU -lGL -lXrandr
SOURCES = gl2d.c main.c
OBJECTS = $(SOURCES:.c=.o)
TARGET = gl2d
all: $(TARGET)
# build binary by linking all object-files and libraries
$(TARGET): $(OBJECTS)
$(LINK) $(LFLAGS) $(OBJECTS) $(LIBS) -o $@
# build each object-file by compiling the corresponding source-file
.o:
$(CC) $(CFLAGS) $(INCPATH) $< -o $@
# delete all objects and binary
clean:
rm -rf $(TARGET) $(OBJECTS)
(remember to keep the tabs)
-
Hey,
Working fine on my Ubuntu 10.10 (64bits) :)
No warnings (no errors obviously :D)
-
Thanks dudes!!!
Someone told me that this compiles and works well on a mac too so all is well.
Apparently the gamecube gx* layer is not too GL friendly.
-
I just stumbled across this post for some reason and thought I'd offer my mac for any more testing you (or anyone else) need.
I know they can be hard to come across :)