mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-09 02:43:30 +00:00
better layout
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@343 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -141,18 +141,18 @@ else
|
|||||||
include external/deps.mk
|
include external/deps.mk
|
||||||
endif
|
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)
|
ifeq ($(OPENGL),1)
|
||||||
L_OBJS += src/widget/opengl.o
|
L_OBJS += src/widget/opengl.o
|
||||||
OOL_OBJS += oosrc/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
|
endif
|
||||||
|
|
||||||
ifeq ($(VULKAN),1)
|
ifeq ($(VULKAN),1)
|
||||||
L_OBJS += src/widget/vulkan.o
|
L_OBJS += src/widget/vulkan.o
|
||||||
OOL_OBJS += oosrc/widget/vulkan.o
|
OOL_OBJS += oosrc/widget/vulkan.o
|
||||||
EXAMPLES += examples/vulkan$(EXEC)
|
EXAMPLES += examples/vkdemos/vulkan$(EXEC)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
.PHONY: all install format clean lib oolib examples
|
.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)
|
oosrc/$(LIB)MwOO$(SO): $(OOL_OBJS) src/$(LIB)Mw$(SO)
|
||||||
$(CC) $(OOL_LDFLAGS) $(SHARED) -o $@ $(OOL_OBJS) $(OOL_LIBS)
|
$(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)
|
$(CC) $(E_LDFLAGS) -o $@ $< $(E_LIBS) $(GL)
|
||||||
|
|
||||||
examples/%$(EXEC): examples/%.o src/$(LIB)Mw$(SO)
|
examples/%$(EXEC): examples/%.o src/$(LIB)Mw$(SO)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
#include <Mw/Milsko.h>
|
#include <Mw/Milsko.h>
|
||||||
|
|
||||||
#include "harvard.c"
|
#include "../harvard.c"
|
||||||
|
|
||||||
MwWidget wmain;
|
MwWidget wmain;
|
||||||
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
#define TITLE "boing"
|
#define TITLE "boing"
|
||||||
#include "oldglut.c"
|
#include "glutlayer.c"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Bouncing ball demo.
|
* Bouncing ball demo.
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
#define TITLE "cube"
|
#define TITLE "cube"
|
||||||
#include "oldglut.c"
|
#include "glutlayer.c"
|
||||||
|
|
||||||
#include <GL/glu.h>
|
#include <GL/glu.h>
|
||||||
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
#define TITLE "gears"
|
#define TITLE "gears"
|
||||||
#include "oldglut.c"
|
#include "glutlayer.c"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 3-D gear wheels. This program is in the public domain.
|
* 3-D gear wheels. This program is in the public domain.
|
||||||
@@ -389,7 +389,9 @@ void vulkan_setup(MwWidget handle) {
|
|||||||
|
|
||||||
// Create the Vertex Shader Module.
|
// Create the Vertex Shader Module.
|
||||||
vertFile = fopen("triangle.vert.spv", "rb");
|
vertFile = fopen("triangle.vert.spv", "rb");
|
||||||
|
if(vertFile == NULL) vertFile = fopen("examples/vkdemos/triangle.vert.spv", "rb");
|
||||||
fragFile = fopen("triangle.frag.spv", "rb");
|
fragFile = fopen("triangle.frag.spv", "rb");
|
||||||
|
if(fragFile == NULL) fragFile = fopen("examples/vkdemos/triangle.frag.spv", "rb");
|
||||||
|
|
||||||
fseek(vertFile, 0L, SEEK_END);
|
fseek(vertFile, 0L, SEEK_END);
|
||||||
vertFileSize = ftell(vertFile);
|
vertFileSize = ftell(vertFile);
|
||||||
Reference in New Issue
Block a user