mirror of
https://github.com/nicbarker/clay.git
synced 2025-04-22 06:08:03 +00:00
Compare commits
1 Commits
0b6b71d49a
...
860e1fc50b
Author | SHA1 | Date | |
---|---|---|---|
|
860e1fc50b |
@ -12,7 +12,4 @@ if(NOT MSVC)
|
||||
add_subdirectory("examples/clay-official-website")
|
||||
add_subdirectory("examples/introducing-clay-video-demo")
|
||||
add_subdirectory("examples/SDL2-video-demo")
|
||||
add_subdirectory("examples/SDL2-video-demo")
|
||||
add_subdirectory("examples/RSGL_rendering/GLFW_windowing")
|
||||
add_subdirectory("examples/RSGL_rendering/RGFW_windowing")
|
||||
endif()
|
||||
|
@ -1,25 +0,0 @@
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
|
||||
project(GLFWExample)
|
||||
|
||||
set(SRC main.c)
|
||||
|
||||
# Set libraries and extensions based on OS
|
||||
if(WIN32)
|
||||
set(LIBS -lglfw3 -lgdi32 -lopengl32)
|
||||
elseif(APPLE)
|
||||
set(LIBS -lglfw -framework Cocoa -framework OpenGL -framework IOKit -framework CoreVideo)
|
||||
elseif(UNIX)
|
||||
set(LIBS -lglfw -lGL -lm -ldl -lpthread)
|
||||
endif()
|
||||
|
||||
# Include directories
|
||||
include_directories(${CMAKE_SOURCE_DIR})
|
||||
|
||||
# Add executable
|
||||
add_executable(main${EXT} ${SRC})
|
||||
|
||||
# Link libraries
|
||||
target_include_directories(main PRIVATE ../../../renderers/RSGL)
|
||||
target_include_directories(main PRIVATE ../../../)
|
||||
target_link_libraries(main${EXT} ${LIBS})
|
90
examples/RSGL_rendering/GLFW_windowing/Makefile
Normal file
90
examples/RSGL_rendering/GLFW_windowing/Makefile
Normal file
@ -0,0 +1,90 @@
|
||||
CC = gcc
|
||||
|
||||
LIBS = -lglfw3 -lm
|
||||
EXT = .exe
|
||||
STATIC =
|
||||
|
||||
WARNINGS = -Wall -Werror -Wextra
|
||||
OS_DIR = \\
|
||||
|
||||
SRC = main.c
|
||||
|
||||
ifneq (,$(filter $(CC),winegcc x86_64-w64-mingw32-gcc i686-w64-mingw32-gcc))
|
||||
STATIC = --static
|
||||
detected_OS := WindowsCross
|
||||
OS_DIR = /
|
||||
ifeq ($(CC),x86_64-w64-mingw32-gcc)
|
||||
CC = x86_64-w64-mingw32-gcc
|
||||
else
|
||||
CC = i686-w64-mingw32-gcc
|
||||
endif
|
||||
else
|
||||
ifeq '$(findstring ;,$(PATH))' ';'
|
||||
detected_OS := Windows
|
||||
else
|
||||
detected_OS := $(shell uname 2>/dev/null || echo Unknown)
|
||||
detected_OS := $(patsubst CYGWIN%,Cygwin,$(detected_OS))
|
||||
detected_OS := $(patsubst MSYS%,MSYS,$(detected_OS))
|
||||
detected_OS := $(patsubst MINGW%,MSYS,$(detected_OS))
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(detected_OS),Windows)
|
||||
EXT = .exe
|
||||
OS_DIR = \\
|
||||
endif
|
||||
ifeq ($(detected_OS),Darwin) # Mac OS X
|
||||
EXT =
|
||||
OS_DIR = /
|
||||
endif
|
||||
ifeq ($(detected_OS),Linux)
|
||||
EXT =
|
||||
OS_DIR = /
|
||||
endif
|
||||
|
||||
ifneq (,$(filter $(CC),cl))
|
||||
OS_DIR = \\
|
||||
|
||||
endif
|
||||
|
||||
ifneq (,$(filter $(CC),/opt/msvc/bin/x64/cl.exe /opt/msvc/bin/x86/cl.exe))
|
||||
OS_DIR = /
|
||||
endif
|
||||
|
||||
ifneq (,$(filter $(CC),cl /opt/msvc/bin/x64/cl.exe /opt/msvc/bin/x86/cl.exe))
|
||||
WARNINGS =
|
||||
STATIC = /static
|
||||
LIBS += $(STATIC)
|
||||
EXT = .exe
|
||||
endif
|
||||
|
||||
LINK_GL1 =
|
||||
LINK_GL3 =
|
||||
LINK_GL2 =
|
||||
|
||||
ifneq (,$(filter $(CC),emcc))
|
||||
LINK_GL1 = -s LEGACY_GL_EMULATION -D LEGACY_GL_EMULATION -sGL_UNSAFE_OPTS=0
|
||||
LINK_GL3 = -s FULL_ES3
|
||||
LINK_GL2 = -s FULL_ES2
|
||||
EXPORTED_JS = -s EXPORTED_RUNTIME_METHODS="['stringToNewUTF8']"
|
||||
LIBS = -s WASM=1 -s ASYNCIFY -s USE_WEBGL2=1 -s GL_SUPPORT_EXPLICIT_SWAP_CONTROL=1 $(EXPORTED_JS)
|
||||
LIBS += -s EXPORTED_FUNCTIONS="['_malloc', '_main']"
|
||||
EXT = .js
|
||||
CC=emcc
|
||||
|
||||
LIBS += --preload-file ./
|
||||
endif
|
||||
|
||||
LIBS += -I../../../ -I../../../renderers/RSGL
|
||||
|
||||
all: $(SRC)
|
||||
$(CC) $(SRC) $(LINK_GL1) $(LIBS) -o main$(EXT)
|
||||
|
||||
clean:
|
||||
rm -f *.exe main *.o
|
||||
|
||||
debug: $(SRC)
|
||||
$(CC) $(SRC) $(LINK_GL1) $(LIBS) -D RGFW_DEBUG -o main$(EXT)
|
||||
ifeq (,$(filter $(CC),emcc))
|
||||
.$(OS_DIR)main$(EXT)
|
||||
endif
|
@ -311,8 +311,6 @@ int main(void) {
|
||||
RSGL_clear(RSGL_RGB(0, 0, 0));
|
||||
Clay_RenderCommandArray renderCommands = CreateLayout();
|
||||
Clay_RSGL_Render(renderCommands);
|
||||
RSGL_draw();
|
||||
|
||||
glfwSwapBuffers(window);
|
||||
}
|
||||
|
||||
|
@ -1,38 +0,0 @@
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
|
||||
project(MyProject)
|
||||
|
||||
set(SRC main.c)
|
||||
|
||||
# Detect OS
|
||||
if(WIN32)
|
||||
set(LIBS -ggdb -lshell32 -lwinmm -lgdi32 -lopengl32)
|
||||
set(EXT ".exe")
|
||||
elseif(APPLE)
|
||||
set(LIBS -lm -framework Foundation -framework AppKit -framework IOKit -framework OpenGL)
|
||||
set(EXT "")
|
||||
elseif(UNIX)
|
||||
set(LIBS -lXrandr -lX11 -lm -lGL -ldl -lpthread)
|
||||
set(EXT "")
|
||||
else()
|
||||
set(detected_OS "Unknown")
|
||||
endif()
|
||||
|
||||
# Settings for emcc
|
||||
if(CMAKE_C_COMPILER MATCHES "emcc")
|
||||
set(EXPORTED_JS "-s EXPORTED_RUNTIME_METHODS=['stringToNewUTF8']")
|
||||
set(LIBS "-s FULL_ES3 -s WASM=1 -s ASYNCIFY -s USE_WEBGL2=1 -s GL_SUPPORT_EXPLICIT_SWAP_CONTROL=1 ${EXPORTED_JS}")
|
||||
set(LIBS "${LIBS} -s EXPORTED_FUNCTIONS=['_malloc', '_main']")
|
||||
set(EXT ".js")
|
||||
set(CMAKE_C_COMPILER "emcc")
|
||||
set(LIBS "${LIBS} --preload-file ./")
|
||||
endif()
|
||||
|
||||
# Include directories
|
||||
include_directories(../../../ ../../../renderers/RSGL)
|
||||
|
||||
# Add executable
|
||||
add_executable(main${EXT} ${SRC})
|
||||
|
||||
# Link libraries
|
||||
target_link_libraries(main${EXT} ${LIBS})
|
94
examples/RSGL_rendering/RGFW_windowing/Makefile
Normal file
94
examples/RSGL_rendering/RGFW_windowing/Makefile
Normal file
@ -0,0 +1,94 @@
|
||||
CC = gcc
|
||||
|
||||
LIBS :=-lgdi32 -lm -lwinmm -ggdb -lopengl32
|
||||
EXT = .exe
|
||||
STATIC =
|
||||
|
||||
WARNINGS = -Wall -Werror -Wextra
|
||||
OS_DIR = \\
|
||||
|
||||
SRC = main.c
|
||||
|
||||
ifneq (,$(filter $(CC),winegcc x86_64-w64-mingw32-gcc i686-w64-mingw32-gcc))
|
||||
STATIC = --static
|
||||
detected_OS := WindowsCross
|
||||
OS_DIR = /
|
||||
ifeq ($(CC),x86_64-w64-mingw32-gcc)
|
||||
CC = x86_64-w64-mingw32-gcc
|
||||
else
|
||||
CC = i686-w64-mingw32-gcc
|
||||
endif
|
||||
else
|
||||
ifeq '$(findstring ;,$(PATH))' ';'
|
||||
detected_OS := Windows
|
||||
else
|
||||
detected_OS := $(shell uname 2>/dev/null || echo Unknown)
|
||||
detected_OS := $(patsubst CYGWIN%,Cygwin,$(detected_OS))
|
||||
detected_OS := $(patsubst MSYS%,MSYS,$(detected_OS))
|
||||
detected_OS := $(patsubst MINGW%,MSYS,$(detected_OS))
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(detected_OS),Windows)
|
||||
LIBS := -ggdb -lshell32 -lwinmm -lgdi32 $(STATIC)
|
||||
EXT = .exe
|
||||
OS_DIR = \\
|
||||
|
||||
endif
|
||||
ifeq ($(detected_OS),Darwin) # Mac OS X
|
||||
LIBS := -lm -framework Foundation -framework AppKit -framework IOKit$(STATIC) -framework OpenGL
|
||||
EXT =
|
||||
OS_DIR = /
|
||||
endif
|
||||
ifeq ($(detected_OS),Linux)
|
||||
LIBS := -lXrandr -lX11 -lm -lGL -ldl -lpthread $(STATIC)
|
||||
EXT =
|
||||
OS_DIR = /
|
||||
endif
|
||||
|
||||
ifneq (,$(filter $(CC),cl))
|
||||
OS_DIR = \\
|
||||
|
||||
endif
|
||||
|
||||
ifneq (,$(filter $(CC),/opt/msvc/bin/x64/cl.exe /opt/msvc/bin/x86/cl.exe))
|
||||
OS_DIR = /
|
||||
endif
|
||||
|
||||
ifneq (,$(filter $(CC),cl /opt/msvc/bin/x64/cl.exe /opt/msvc/bin/x86/cl.exe))
|
||||
WARNINGS =
|
||||
STATIC = /static
|
||||
LIBS = $(STATIC)
|
||||
EXT = .exe
|
||||
endif
|
||||
|
||||
LINK_GL1 =
|
||||
LINK_GL3 =
|
||||
LINK_GL2 =
|
||||
|
||||
ifneq (,$(filter $(CC),emcc))
|
||||
LINK_GL1 = -s LEGACY_GL_EMULATION -D LEGACY_GL_EMULATION -sGL_UNSAFE_OPTS=0
|
||||
LINK_GL3 = -s FULL_ES3
|
||||
LINK_GL2 = -s FULL_ES2
|
||||
EXPORTED_JS = -s EXPORTED_RUNTIME_METHODS="['stringToNewUTF8']"
|
||||
LIBS = -s WASM=1 -s ASYNCIFY -s USE_WEBGL2=1 -s GL_SUPPORT_EXPLICIT_SWAP_CONTROL=1 $(EXPORTED_JS)
|
||||
LIBS += -s EXPORTED_FUNCTIONS="['_malloc', '_main']"
|
||||
EXT = .js
|
||||
CC=emcc
|
||||
|
||||
LIBS += --preload-file ./
|
||||
endif
|
||||
|
||||
LIBS += -I../../../ -I../../../renderers/RSGL
|
||||
|
||||
all: $(SRC)
|
||||
$(CC) $(SRC) $(LINK_GL1) $(LIBS) -o main$(EXT)
|
||||
|
||||
clean:
|
||||
rm -f *.exe main *.o
|
||||
|
||||
debug: $(SRC)
|
||||
$(CC) $(SRC) $(LINK_GL1) $(LIBS) -D RGFW_DEBUG -o main$(EXT)
|
||||
ifeq (,$(filter $(CC),emcc))
|
||||
.$(OS_DIR)main$(EXT)
|
||||
endif
|
@ -295,15 +295,13 @@ int main(void) {
|
||||
deltaTime = NOW - LAST;
|
||||
|
||||
Clay_Vector2 scrollDelta = {};
|
||||
while (RGFW_window_checkEvent(win)) {
|
||||
while (RGFW_window_checkEvent(win)); {
|
||||
clay_RGFW_update(win, deltaTime);
|
||||
}
|
||||
|
||||
RSGL_clear(RSGL_RGB(0, 0, 0));
|
||||
Clay_RenderCommandArray renderCommands = CreateLayout();
|
||||
Clay_RSGL_Render(renderCommands);
|
||||
RSGL_draw();
|
||||
|
||||
RGFW_window_swapBuffers(win);
|
||||
}
|
||||
|
||||
|
@ -264,7 +264,6 @@ RSGLDEF void RSGL_init(
|
||||
void* loader /* opengl prozc address ex. wglProcAddress */
|
||||
);
|
||||
RSGLDEF void RSGL_updateSize(RSGL_area r);
|
||||
RSGLDEF void RSGL_draw(void); /* draw current batch */
|
||||
RSGLDEF void RSGL_clear(RSGL_color c);
|
||||
RSGLDEF void RSGL_free(void);
|
||||
|
||||
@ -404,10 +403,6 @@ RSGLDEF RSGL_texture RSGL_renderCreateTexture(u8* bitmap, RSGL_area memsize, u8
|
||||
RSGLDEF void RSGL_renderUpdateTexture(RSGL_texture texture, u8* bitmap, RSGL_area memsize, u8 channels);
|
||||
/* delete a texture */
|
||||
RSGLDEF void RSGL_renderDeleteTexture(RSGL_texture tex);
|
||||
/* starts scissoring */
|
||||
RSGLDEF void RSGL_renderScissorStart(RSGL_rectF scissor);
|
||||
/* stops scissoring */
|
||||
RSGLDEF void RSGL_renderScissorEnd(void);
|
||||
|
||||
/* custom shader program */
|
||||
typedef struct RSGL_programInfo {
|
||||
@ -503,7 +498,6 @@ struct RFont_font;
|
||||
RSGLDEF void RSGL_setRFont(struct RFont_font* font);
|
||||
|
||||
RSGLDEF void RSGL_drawText_len(const char* text, size_t len, RSGL_circle c, RSGL_color color);
|
||||
RSGLDEF void RSGL_drawText_pro(const char* text, size_t len, float spacing, RSGL_circle c, RSGL_color color);
|
||||
RSGLDEF void RSGL_drawText(const char* text, RSGL_circle c, RSGL_color color);
|
||||
#define RSGL_drawTextF(text, font, c, color) \
|
||||
RSGL_setFont(font);\
|
||||
@ -860,12 +854,10 @@ void RSGL_init(RSGL_area r, void* loader) {
|
||||
}
|
||||
}
|
||||
|
||||
void RSGL_draw(void) {
|
||||
RSGL_renderBatch(&RSGL_renderInfo);
|
||||
}
|
||||
|
||||
void RSGL_clear(RSGL_color color) {
|
||||
RSGL_renderClear(color.r / 255.0f, color.g / 255.0f, color.b / 255.0f, color.a / 255.0f);
|
||||
|
||||
RSGL_renderBatch(&RSGL_renderInfo);
|
||||
}
|
||||
|
||||
void RSGL_updateSize(RSGL_area r) {
|
||||
@ -1397,15 +1389,11 @@ void RSGL_setRFont(RFont_font* font) {
|
||||
}
|
||||
|
||||
void RSGL_drawText_len(const char* text, size_t len, RSGL_circle c, RSGL_color color) {
|
||||
RSGL_drawText_pro(text, len, 0.0f, c, color);
|
||||
}
|
||||
|
||||
void RSGL_drawText_pro(const char* text, size_t len, float spacing, RSGL_circle c, RSGL_color color) {
|
||||
if (text == NULL || RSGL_font.f == NULL)
|
||||
return;
|
||||
|
||||
RFont_set_color(color.r / 255.0f, color.b / 255.0f, color.g / 255.0f, color.a / 255.0f);
|
||||
RFont_draw_text_len(RSGL_font.f, text, len, c.x, c.y, c.d, spacing);
|
||||
RFont_draw_text_len(RSGL_font.f, text, len, c.x, c.y, c.d, 0.0f);
|
||||
}
|
||||
|
||||
void RSGL_drawText(const char* text, RSGL_circle c, RSGL_color color) {
|
||||
|
@ -497,19 +497,6 @@ void RSGL_renderBatch(RSGL_RENDER_INFO* info) {
|
||||
info->vert_len = 0;
|
||||
}
|
||||
|
||||
void RSGL_renderScissorStart(RSGL_rectF scissor) {
|
||||
RSGL_draw();
|
||||
glEnable(GL_SCISSOR_TEST);
|
||||
|
||||
glScissor(scissor.x, RSGL_args.currentRect.h - (scissor.y + scissor.h), scissor.w, scissor.h);
|
||||
glScissor(scissor.x, scissor.y, scissor.w, scissor.h);
|
||||
}
|
||||
|
||||
void RSGL_renderScissorEnd(void) {
|
||||
RSGL_draw();
|
||||
glDisable(GL_SCISSOR_TEST);
|
||||
}
|
||||
|
||||
#ifndef GL_RG
|
||||
#define GL_RG 0x8227
|
||||
#endif
|
||||
|
@ -3,35 +3,37 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#define RFONT_FONT_SCALE 1
|
||||
|
||||
#define CLAY_COLOR_TO_RSGL_COLOR(color) \
|
||||
RSGL_RGBA((unsigned char)roundf(color.r), (unsigned char)roundf(color.g), (unsigned char)roundf(color.b), (unsigned char)roundf(color.a))
|
||||
|
||||
static Clay_Dimensions RSGL_MeasureText(Clay_String *text, Clay_TextElementConfig *config)
|
||||
{
|
||||
RSGL_area area = RSGL_textArea(text->chars, config->fontSize / RFONT_FONT_SCALE, text->length);
|
||||
RSGL_area area = RSGL_textArea(text->chars, config->fontSize, text->length);
|
||||
return (Clay_Dimensions) {
|
||||
.width = (float)area.w,
|
||||
.height = (float)area.h,
|
||||
};
|
||||
}
|
||||
|
||||
RSGL_rectF currentClippingRectangle;
|
||||
|
||||
static void Clay_RSGL_Render(Clay_RenderCommandArray renderCommands)
|
||||
{
|
||||
for (uint32_t i = 0; i < renderCommands.length; i++)
|
||||
{
|
||||
Clay_RenderCommand *renderCommand = Clay_RenderCommandArray_Get(&renderCommands, i);
|
||||
RSGL_rectF boundingBox = RSGL_RECTF(renderCommand->boundingBox.x,
|
||||
renderCommand->boundingBox.y,
|
||||
renderCommand->boundingBox.width,
|
||||
renderCommand->boundingBox.height);
|
||||
|
||||
Clay_BoundingBox boundingBox = renderCommand->boundingBox;
|
||||
switch (renderCommand->commandType)
|
||||
{
|
||||
case CLAY_RENDER_COMMAND_TYPE_RECTANGLE: {
|
||||
Clay_RectangleElementConfig *config = renderCommand->config.rectangleElementConfig;
|
||||
RSGL_drawRectF(boundingBox, CLAY_COLOR_TO_RSGL_COLOR(config->color));
|
||||
RSGL_rectF rect = RSGL_RECTF(
|
||||
boundingBox.x,
|
||||
boundingBox.y,
|
||||
boundingBox.width,
|
||||
boundingBox.height);
|
||||
RSGL_color color = RSGL_RGBA( (u8)(config->color.r),
|
||||
(u8)(config->color.g),
|
||||
(u8)(config->color.b),
|
||||
(u8)(config->color.a));
|
||||
RSGL_drawRectF(rect, color);
|
||||
break;
|
||||
}
|
||||
case CLAY_RENDER_COMMAND_TYPE_TEXT: {
|
||||
@ -47,55 +49,24 @@ static void Clay_RSGL_Render(Clay_RenderCommandArray renderCommands)
|
||||
RSGL_circle destination = RSGL_CIRCLE(
|
||||
boundingBox.x,
|
||||
boundingBox.y,
|
||||
config->fontSize / RFONT_FONT_SCALE);
|
||||
RSGL_drawText_pro(text.chars, text.length, config->letterSpacing, destination, color);
|
||||
break;
|
||||
}
|
||||
case CLAY_RENDER_COMMAND_TYPE_IMAGE:
|
||||
Clay_ImageElementConfig* config = renderCommand->config.imageElementConfig;
|
||||
RSGL_setTexture((RSGL_texture)config->imageData);
|
||||
RSGL_drawRectF(boundingBox, RSGL_RGBA(255, 255, 255, 255));
|
||||
break;
|
||||
case CLAY_RENDER_COMMAND_TYPE_BORDER: {
|
||||
Clay_BorderElementConfig *config = renderCommand->config.borderElementConfig;
|
||||
if (config->left.width > 0) {
|
||||
RSGL_drawRectF(RSGL_RECTF(boundingBox.x,
|
||||
boundingBox.y + config->cornerRadius.topLeft,
|
||||
config->left.width,
|
||||
boundingBox.h - config->cornerRadius.topLeft - config->cornerRadius.bottomLeft),
|
||||
CLAY_COLOR_TO_RSGL_COLOR(config->left.color));
|
||||
}
|
||||
if (config->right.width > 0) {
|
||||
RSGL_drawRectF(RSGL_RECTF(boundingBox.x + boundingBox.w - config->right.width,
|
||||
boundingBox.y + config->cornerRadius.topRight,
|
||||
config->right.width,
|
||||
boundingBox.h - config->cornerRadius.topRight - config->cornerRadius.bottomRight),
|
||||
CLAY_COLOR_TO_RSGL_COLOR(config->right.color));
|
||||
}
|
||||
if (config->top.width > 0) {RSGL_drawRectF(RSGL_RECTF(boundingBox.x + config->cornerRadius.topLeft, boundingBox.y,
|
||||
boundingBox.w - config->cornerRadius.topLeft - config->cornerRadius.topRight,
|
||||
config->top.width),
|
||||
CLAY_COLOR_TO_RSGL_COLOR(config->top.color));
|
||||
}
|
||||
if (config->bottom.width > 0) {RSGL_drawRectF(RSGL_RECTF(boundingBox.x + config->cornerRadius.bottomLeft, \
|
||||
boundingBox.y + boundingBox.h - config->bottom.width,
|
||||
boundingBox.w - config->cornerRadius.bottomLeft - config->cornerRadius.bottomRight,
|
||||
config->bottom.width),
|
||||
CLAY_COLOR_TO_RSGL_COLOR(config->bottom.color));
|
||||
}
|
||||
boundingBox.height);
|
||||
RSGL_drawText_len(text.chars, text.length, destination, color);
|
||||
break;
|
||||
}
|
||||
case CLAY_RENDER_COMMAND_TYPE_SCISSOR_START: {
|
||||
RSGL_renderScissorStart(boundingBox);
|
||||
currentClippingRectangle = (RSGL_rectF) {
|
||||
boundingBox.x,
|
||||
boundingBox.y,
|
||||
boundingBox.width,
|
||||
boundingBox.height,
|
||||
};
|
||||
//printf("Clipping rectangle has not been implemented yet\n");
|
||||
break;
|
||||
}
|
||||
case CLAY_RENDER_COMMAND_TYPE_SCISSOR_END: {
|
||||
RSGL_renderScissorEnd();
|
||||
//printf("Clipping rectangle has not been implemented yet\n");
|
||||
break;
|
||||
}
|
||||
case CLAY_RENDER_COMMAND_TYPE_CUSTOM:
|
||||
printf("Custom render commands have not been implemented yet\n");
|
||||
break;
|
||||
default: {
|
||||
fprintf(stderr, "Error: unhandled render command: %d\n", renderCommand->commandType);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user