better layout

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@343 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-10-15 13:58:56 +00:00
parent d3a951abd5
commit ba9b6750d5
19 changed files with 10 additions and 8 deletions

View File

@@ -141,18 +141,18 @@ else
include external/deps.mk
endif
EXAMPLES = examples/example$(EXEC) examples/rotate$(EXEC) examples/image$(EXEC) examples/scrollbar$(EXEC) examples/checkbox$(EXEC) examples/messagebox$(EXEC) examples/viewport$(EXEC) examples/listbox$(EXEC)
EXAMPLES = examples/basic/example$(EXEC) examples/basic/rotate$(EXEC) examples/basic/image$(EXEC) examples/basic/scrollbar$(EXEC) examples/basic/checkbox$(EXEC) examples/basic/messagebox$(EXEC) examples/basic/viewport$(EXEC) examples/basic/listbox$(EXEC)
ifeq ($(OPENGL),1)
L_OBJS += src/widget/opengl.o
OOL_OBJS += oosrc/widget/opengl.o
EXAMPLES += examples/glclock$(EXEC) examples/gltriangle$(EXEC) examples/glgears$(EXEC) examples/glboing$(EXEC) examples/glcube$(EXEC) examples/gltripaint$(EXEC)
EXAMPLES += examples/gldemos/clock$(EXEC) examples/gldemos/triangle$(EXEC) examples/gldemos/gears$(EXEC) examples/gldemos/boing$(EXEC) examples/gldemos/cube$(EXEC) examples/gldemos/tripaint$(EXEC)
endif
ifeq ($(VULKAN),1)
L_OBJS += src/widget/vulkan.o
OOL_OBJS += oosrc/widget/vulkan.o
EXAMPLES += examples/vulkan$(EXEC)
EXAMPLES += examples/vkdemos/vulkan$(EXEC)
endif
.PHONY: all install format clean lib oolib examples
@@ -186,7 +186,7 @@ src/$(LIB)Mw$(SO): $(L_OBJS)
oosrc/$(LIB)MwOO$(SO): $(OOL_OBJS) src/$(LIB)Mw$(SO)
$(CC) $(OOL_LDFLAGS) $(SHARED) -o $@ $(OOL_OBJS) $(OOL_LIBS)
examples/gl%$(EXEC): examples/gl%.o src/$(LIB)Mw$(SO)
examples/gldemos/%$(EXEC): examples/gldemos/%.o src/$(LIB)Mw$(SO)
$(CC) $(E_LDFLAGS) -o $@ $< $(E_LIBS) $(GL)
examples/%$(EXEC): examples/%.o src/$(LIB)Mw$(SO)

View File

@@ -1,7 +1,7 @@
/* $Id$ */
#include <Mw/Milsko.h>
#include "harvard.c"
#include "../harvard.c"
MwWidget wmain;

View File

@@ -1,6 +1,6 @@
/* $Id$ */
#define TITLE "boing"
#include "oldglut.c"
#include "glutlayer.c"
/*
* Bouncing ball demo.

View File

@@ -1,6 +1,6 @@
/* $Id$ */
#define TITLE "cube"
#include "oldglut.c"
#include "glutlayer.c"
#include <GL/glu.h>

View File

@@ -1,6 +1,6 @@
/* $Id$ */
#define TITLE "gears"
#include "oldglut.c"
#include "glutlayer.c"
/*
* 3-D gear wheels. This program is in the public domain.

View File

@@ -389,7 +389,9 @@ void vulkan_setup(MwWidget handle) {
// Create the Vertex Shader Module.
vertFile = fopen("triangle.vert.spv", "rb");
if(vertFile == NULL) vertFile = fopen("examples/vkdemos/triangle.vert.spv", "rb");
fragFile = fopen("triangle.frag.spv", "rb");
if(fragFile == NULL) fragFile = fopen("examples/vkdemos/triangle.frag.spv", "rb");
fseek(vertFile, 0L, SEEK_END);
vertFileSize = ftell(vertFile);