DOlphin shader prog
This commit is contained in:
@@ -29,7 +29,6 @@ target_compile_definitions(${DUSK_LIBRARY_TARGET_NAME} PUBLIC
|
||||
DUSK_SDL2
|
||||
DUSK_OPENGL
|
||||
DUSK_LINUX
|
||||
DUSK_OPENGL_LEGACY
|
||||
DUSK_DISPLAY_SIZE_DYNAMIC
|
||||
DUSK_DISPLAY_WIDTH_DEFAULT=640
|
||||
DUSK_DISPLAY_HEIGHT_DEFAULT=480
|
||||
|
||||
@@ -14,4 +14,5 @@ target_sources(${DUSK_LIBRARY_TARGET_NAME}
|
||||
add_subdirectory(camera)
|
||||
add_subdirectory(framebuffer)
|
||||
add_subdirectory(mesh)
|
||||
add_subdirectory(texture)
|
||||
add_subdirectory(texture)
|
||||
add_subdirectory(shader)
|
||||
10
src/duskdolphin/display/shader/CMakeLists.txt
Normal file
10
src/duskdolphin/display/shader/CMakeLists.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
# Copyright (c) 2026 Dominic Masters
|
||||
#
|
||||
# This software is released under the MIT License.
|
||||
# https://opensource.org/licenses/MIT
|
||||
|
||||
# Sources
|
||||
target_sources(${DUSK_LIBRARY_TARGET_NAME}
|
||||
PUBLIC
|
||||
shaderdolphin.c
|
||||
)
|
||||
11
src/duskdolphin/display/shader/shaderdolphin.c
Normal file
11
src/duskdolphin/display/shader/shaderdolphin.c
Normal file
@@ -0,0 +1,11 @@
|
||||
/**
|
||||
* Copyright (c) 2026 Dominic Masters
|
||||
*
|
||||
* This software is released under the MIT License.
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
#include "shadergl.h"
|
||||
#include "util/memory.h"
|
||||
#include "util/string.h"
|
||||
#include "display/shader/shaderunlit.h"
|
||||
17
src/duskdolphin/display/shader/shaderdolphin.h
Normal file
17
src/duskdolphin/display/shader/shaderdolphin.h
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Copyright (c) 2026 Dominic Masters
|
||||
*
|
||||
* This software is released under the MIT License.
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "error/error.h"
|
||||
|
||||
typedef struct {
|
||||
void *empty;
|
||||
} shaderdolphin_t;
|
||||
|
||||
typedef struct {
|
||||
void *empty;
|
||||
} shaderdefinitiondolphin_t;
|
||||
18
src/duskdolphin/display/shader/shaderplatform.h
Normal file
18
src/duskdolphin/display/shader/shaderplatform.h
Normal file
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Copyright (c) 2026 Dominic Masters
|
||||
*
|
||||
* This software is released under the MIT License.
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "shaderdolphin.h"
|
||||
|
||||
typedef shaderdolphin_t shaderplatform_t;
|
||||
typedef shaderdefinitiondolphin_t shaderdefinitionplatform_t;
|
||||
|
||||
#define shaderInitPlatform shaderInitDolphin
|
||||
#define shaderBindPlatform shaderBindDolphin
|
||||
#define shaderSetMatrixPlatform shaderSetMatrixDolphin
|
||||
// #define shaderSetTexturePlatform shaderSetTextureDolphin
|
||||
#define shaderDisposePlatform shaderDisposeDolphin
|
||||
11
src/duskdolphin/display/shader/shaderunlitdolphin.c
Normal file
11
src/duskdolphin/display/shader/shaderunlitdolphin.c
Normal file
@@ -0,0 +1,11 @@
|
||||
/**
|
||||
* Copyright (c) 2026 Dominic Masters
|
||||
*
|
||||
* This software is released under the MIT License.
|
||||
* https://opensource.org/licenses/MIT
|
||||
*/
|
||||
|
||||
#include "display/shader/shaderunlit.h"
|
||||
|
||||
shaderdefinition_t SHADER_UNLIT_DEFINITION = {
|
||||
};
|
||||
Reference in New Issue
Block a user