WIP: reorga
This commit is contained in:
parent
56b8847f95
commit
a000fcc414
6
Makefile
6
Makefile
|
@ -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
|
||||
|
||||
|
|
BIN
instanced_cubes
BIN
instanced_cubes
Binary file not shown.
|
@ -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);
|
||||
|
Loading…
Reference in New Issue