Skip to content

Commit 0b37c8b

Browse files
committed
refac: combine draw & draw backend extensions (v2.0.0)
1 parent 6d9acfb commit 0b37c8b

40 files changed

+1457
-1738
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ body:
7979
- Config
8080
- Console
8181
- Date Time
82-
- Draw Backend
8382
- Draw
8483
- ECS
8584
- ECS Tools

.github/workflows/build.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ jobs:
153153
if not exist ../out/pl_screen_log_ext.dll exit 1
154154
if not exist ../out/pl_console_ext.dll exit 1
155155
if not exist ../out/pl_tools_ext.dll exit 1
156-
if not exist ../out/pl_draw_backend_ext.dll exit 1
157156
if not exist ../out/pl_draw_ext.dll exit 1
158157
if not exist ../out/pl_ecs_ext.dll exit 1
159158
if not exist ../out/pl_ecs_tools_ext.dll exit 1
@@ -363,7 +362,6 @@ jobs:
363362
test -f ./out/pl_console_ext.dylib || exit 1
364363
test -f ./out/pl_screen_log_ext.dylib || exit 1
365364
test -f ./out/pl_tools_ext.dylib || exit 1
366-
test -f ./out/pl_draw_backend_ext.dylib || exit 1
367365
test -f ./out/pl_draw_ext.dylib || exit 1
368366
test -f ./out/pl_ecs_ext.dylib || exit 1
369367
test -f ./out/pl_ecs_tools_ext.dylib || exit 1
@@ -583,7 +581,6 @@ jobs:
583581
test -f ./out/pl_console_ext.so || exit 1
584582
test -f ./out/pl_screen_log_ext.so || exit 1
585583
test -f ./out/pl_tools_ext.so || exit 1
586-
test -f ./out/pl_draw_backend_ext.so || exit 1
587584
test -f ./out/pl_draw_ext.so || exit 1
588585
test -f ./out/pl_ecs_ext.so || exit 1
589586
test -f ./out/pl_ecs_tools_ext.so || exit 1

docs/changelog.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
Below is the change log for typical users. Minor and older changes stripped
66
away, please see git history for details.
77

8-
- v0.7.1 (2026-xx-xx) (graphics) expose color write mask for stencil buffer
8+
- v0.8.0 (2026-xx-xx) (graphics) expose color write mask for stencil buffer
9+
(draw) re-combined draw & draw extensions (v2.0.0)
910
- v0.7.0 (2026-01-02) (dds) version 1.0
1011
(dxt) version 1.0
1112
(resource) version 1.0

docs/version.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
v0.7.1 WIP
1+
v0.8.0 WIP
22

33
-----------------------------------------------------------------------------
44
Versioning
@@ -56,8 +56,7 @@ the API is complete. It just means we won't break what currently exists.
5656
* Log v1.0.0 (pl_log_ext.h)
5757
* Config v1.1.0 (pl_config_ext.h)
5858
* Console v1.0.0 (pl_console_ext.h)
59-
* Draw v1.4.0 (pl_draw_ext.h)
60-
* Draw Backend v1.1.0 (pl_draw_backend_ext.h)
59+
* Draw v2.0.0 (pl_draw_ext.h)
6160
* DXT v1.0.0 (pl_dxt_ext.h)
6261
* GPU Allocators v1.0.0 (pl_gpu_allocators_ext.h)
6362
* Graphics v1.7.0 (pl_graphics_ext.h)

editor/app.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ Index of this file:
4848
#include "pl_tools_ext.h"
4949
#include "pl_job_ext.h"
5050
#include "pl_draw_ext.h"
51-
#include "pl_draw_backend_ext.h"
5251
#include "pl_ui_ext.h"
5352
#include "pl_shader_ext.h"
5453
#include "pl_string_intern_ext.h"
@@ -96,7 +95,6 @@ const plRendererI* gptRenderer = NULL;
9695
const plModelLoaderI* gptModelLoader = NULL;
9796
const plJobI* gptJobs = NULL;
9897
const plDrawI* gptDraw = NULL;
99-
const plDrawBackendI* gptDrawBackend = NULL;
10098
const plUiI* gptUI = NULL;
10199
const plIOI* gptIO = NULL;
102100
const plShaderI* gptShader = NULL;
@@ -1147,7 +1145,6 @@ pl__load_apis(plApiRegistryI* ptApiRegistry)
11471145
gptJobs = pl_get_api_latest(ptApiRegistry, plJobI);
11481146
gptModelLoader = pl_get_api_latest(ptApiRegistry, plModelLoaderI);
11491147
gptDraw = pl_get_api_latest(ptApiRegistry, plDrawI);
1150-
gptDrawBackend = pl_get_api_latest(ptApiRegistry, plDrawBackendI);
11511148
gptUI = pl_get_api_latest(ptApiRegistry, plUiI);
11521149
gptIO = pl_get_api_latest(ptApiRegistry, plIOI);
11531150
gptShader = pl_get_api_latest(ptApiRegistry, plShaderI);

editor/editor.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ pl_app_load(plApiRegistryI* ptApiRegistry, plAppData* ptAppData)
6262
gptJobs = pl_get_api_latest(ptApiRegistry, plJobI);
6363
gptModelLoader = pl_get_api_latest(ptApiRegistry, plModelLoaderI);
6464
gptDraw = pl_get_api_latest(ptApiRegistry, plDrawI);
65-
gptDrawBackend = pl_get_api_latest(ptApiRegistry, plDrawBackendI);
6665
gptUI = pl_get_api_latest(ptApiRegistry, plUiI);
6766
gptIO = pl_get_api_latest(ptApiRegistry, plIOI);
6867
gptShader = pl_get_api_latest(ptApiRegistry, plShaderI);
@@ -120,7 +119,6 @@ pl_app_load(plApiRegistryI* ptApiRegistry, plAppData* ptAppData)
120119
gptJobs = pl_get_api_latest(ptApiRegistry, plJobI);
121120
gptModelLoader = pl_get_api_latest(ptApiRegistry, plModelLoaderI);
122121
gptDraw = pl_get_api_latest(ptApiRegistry, plDrawI);
123-
gptDrawBackend = pl_get_api_latest(ptApiRegistry, plDrawBackendI);
124122
gptUI = pl_get_api_latest(ptApiRegistry, plUiI);
125123
gptIO = pl_get_api_latest(ptApiRegistry, plIOI);
126124
gptShader = pl_get_api_latest(ptApiRegistry, plShaderI);
@@ -709,7 +707,7 @@ pl_app_update(plAppData* ptAppData)
709707
float fWidth = ptIO->tMainViewportSize.x;
710708
float fHeight = ptIO->tMainViewportSize.y;
711709
plDrawList2D* ptMessageDrawlist = gptScreenLog->get_drawlist(tLogOffset.x, tLogOffset.y, fWidth * 0.2f, fHeight);
712-
gptDrawBackend->submit_2d_drawlist(ptMessageDrawlist, ptRenderEncoder, fWidth, fHeight, gptGfx->get_swapchain_info(gptStarter->get_swapchain()).tSampleCount);
710+
gptDraw->submit_2d_drawlist(ptMessageDrawlist, ptRenderEncoder, fWidth, fHeight, gptGfx->get_swapchain_info(gptStarter->get_swapchain()).tSampleCount);
713711
gptStarter->end_main_pass();
714712
pl_end_cpu_sample(gptProfile, 0);
715713
gptStarter->end_frame();

editor/editor.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ Index of this file:
4444
#include "pl_tools_ext.h"
4545
#include "pl_job_ext.h"
4646
#include "pl_draw_ext.h"
47-
#include "pl_draw_backend_ext.h"
4847
#include "pl_ui_ext.h"
4948
#include "pl_shader_ext.h"
5049
#include "pl_string_intern_ext.h"
@@ -97,7 +96,6 @@ const plRendererI* gptRenderer = nullptr;
9796
const plModelLoaderI* gptModelLoader = nullptr;
9897
const plJobI* gptJobs = nullptr;
9998
const plDrawI* gptDraw = nullptr;
100-
const plDrawBackendI* gptDrawBackend = nullptr;
10199
const plUiI* gptUI = nullptr;
102100
const plIOI* gptIO = nullptr;
103101
const plShaderI* gptShader = nullptr;

examples/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ Demonstrates:
5656
* loading APIs
5757
* loading extensions
5858
* drawing extension (2D)
59-
* drawing backend extension
6059

6160
### Example 4 - UI Extension (example_basic_4.c)
6261
Demonstrates:

examples/build_linux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# Auto Generated by:
4-
# "pl_build.py" version: 1.2.2
4+
# "pl_build.py" version: 1.3.0
55

66
# Project: pilotlight_examples
77

examples/build_macos.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
# Auto Generated by:
3-
# "pl_build.py" version: 1.2.2
3+
# "pl_build.py" version: 1.3.0
44

55
# Project: pilotlight_examples
66

0 commit comments

Comments
 (0)