WIP: reorga

This commit is contained in:
Adrien Bourmault 2024-10-05 19:08:44 +02:00
parent 56b8847f95
commit a000fcc414
3 changed files with 3 additions and 4 deletions

View File

@ -20,14 +20,14 @@ SOURCES = $(shell find $(SRCDIR) -type f -name "*.c")
OBJECTS = $(patsubst %.c,$(BUILDDIR)/%.o,$(SOURCES))
DEPENDENCIES = $(patsubst %.c,$(BUILDDIR)/%.d,$(SOURCES))
instanced_cubes: instanced_cubes.c
sandbox: opengl_sandbox/main.c
$(CC) $(CFLAGS) $(LDFLAGS) $(WARNINGS) $(DEBUG)-o $@ $<
gl_run: instanced_cubes
gl_run: sandbox
./$<
gl_clean:
rm instanced_cubes
rm sandbox
all: $(BINDIR)/gem-graph-client

Binary file not shown.

View File

@ -496,7 +496,6 @@ static gboolean on_render(GtkGLArea *area, GdkGLContext *context)
glUniform4f(glGetUniformLocation(shader_program, "FragColor"), 1.0f, 0.0f, 0.0f, 1.0f); // Red, opaque
// Bind the arrow VAO and use the same transformation matrices
glBindVertexArray(arrow_vao);
glUniformMatrix4fv(projectionLoc, 1, GL_FALSE, (const GLfloat *)projection);
glUniformMatrix4fv(viewLoc, 1, GL_FALSE, (const GLfloat *)view);