From 60c40e5c9837d025286c78a59b32b39f84713d5d Mon Sep 17 00:00:00 2001 From: jvech Date: Mon, 8 Aug 2022 22:04:06 -0500 Subject: First commit, let's learn opengl seriously --- .gitignore | 2 ++ Makefile | 23 +++++++++++++++++++++++ README.md | 4 ++++ src/linear.c | 0 src/linear.h | 0 src/main.c | 8 ++++++++ 6 files changed, 37 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 README.md create mode 100644 src/linear.c create mode 100644 src/linear.h create mode 100644 src/main.c diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..873c851 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +objs/ +mverse diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..90ec09f --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +CC := cc +CFLAGS := -Wall -Wall -pedantic -std=c11 +DLIBS := -lglfw -lGLEW -lGL -lm +OBJDIR = objs +SRCDIR = src +OBJS = $(addprefix objs/,main.o linear.o) +BIN = mverse + +all: build + +$(OBJS): | $(OBJDIR) + +$(OBJDIR): + mkdir ${OBJDIR} + +$(OBJDIR)/%.o: $(SRCDIR)/%.c + ${CC} -c $< -o $@ ${CFLAGS} + +build: $(OBJS) + ${CC} $^ -o ${BIN} ${DLIBS} + +clean: + @rm $(OBJS) -v diff --git a/README.md b/README.md new file mode 100644 index 0000000..786ee34 --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +# My 3D Dimensional World + +The goal of this project is learning Opengl through a project, which consists in +making a convincing world with mountains and lands, this will take a while 🥲. diff --git a/src/linear.c b/src/linear.c new file mode 100644 index 0000000..e69de29 diff --git a/src/linear.h b/src/linear.h new file mode 100644 index 0000000..e69de29 diff --git a/src/main.c b/src/main.c new file mode 100644 index 0000000..b661dce --- /dev/null +++ b/src/main.c @@ -0,0 +1,8 @@ +#include +#include "linear.h" + +int main() +{ + printf("Opengl Here we go\n"); + return 0; +} -- cgit v1.2.3-70-g09d2