aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjvech <jmvalenciae@unal.edu.co>2022-08-08 22:04:06 -0500
committerjvech <jmvalenciae@unal.edu.co>2022-08-08 22:04:06 -0500
commit60c40e5c9837d025286c78a59b32b39f84713d5d (patch)
treeab26e34c0c5b0c1c7510c150e95c42a328c28a20
First commit, let's learn opengl seriously
-rw-r--r--.gitignore2
-rw-r--r--Makefile23
-rw-r--r--README.md4
-rw-r--r--src/linear.c0
-rw-r--r--src/linear.h0
-rw-r--r--src/main.c8
6 files changed, 37 insertions, 0 deletions
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
--- /dev/null
+++ b/src/linear.c
diff --git a/src/linear.h b/src/linear.h
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/linear.h
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 <stdio.h>
+#include "linear.h"
+
+int main()
+{
+ printf("Opengl Here we go\n");
+ return 0;
+}
Feel free to download, copy and edit any repo