Skip to content

Commit 389569c

Browse files
committed
feat: initial terrain prototype
1 parent e3ed464 commit 389569c

20 files changed

+4426
-0
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ body:
103103
- Starter
104104
- Stats
105105
- String Intern
106+
- Terrain
106107
- Tools
107108
- UI
108109
- Virtual File System

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ body:
7272
- Starter
7373
- Stats
7474
- String Intern
75+
- Terrain
7576
- Tools
7677
- UI
7778
- Virtual File System

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ jobs:
191191
if not exist ../out/pl_dxt_ext.dll exit 1
192192
if not exist ../out/pl_material_ext.dll exit 1
193193
if not exist ../out/pl_script_ext.dll exit 1
194+
if not exist ../out/pl_terrain_ext.dll exit 1
194195
cd ..
195196
196197
- name: Package Pilot Light
@@ -399,6 +400,7 @@ jobs:
399400
test -f ./out/pl_dxt_ext.dylib || exit 1
400401
test -f ./out/pl_material_ext.dylib || exit 1
401402
test -f ./out/pl_script_ext.dylib || exit 1
403+
test -f ./out/pl_terrain_ext.dylib || exit 1
402404
403405
- name: Package Pilot Light
404406
run: |
@@ -618,6 +620,7 @@ jobs:
618620
test -f ./out/pl_dxt_ext.so || exit 1
619621
test -f ./out/pl_material_ext.so || exit 1
620622
test -f ./out/pl_script_ext.so || exit 1
623+
test -f ./out/pl_terrain_ext.so || exit 1
621624
622625
- name: Package Pilot Light
623626
run: |

docs/version.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,4 @@ the API is complete. It just means we won't break what currently exists.
103103
* Dear ImGui v0.1.0 (pl_dear_imgui_ext.h)
104104
* Animation v0.1.0 (pl_animation_ext.h)
105105
* Material v0.1.0 (pl_material_ext.h)
106+
* Terrain v0.1.0 (pl_terrain_ext.h)

extensions/pl_renderer_ext.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5171,6 +5171,7 @@ pl_load_renderer_ext(plApiRegistryI* ptApiRegistry, bool bReload)
51715171
gptVfs = pl_get_api_latest(ptApiRegistry, plVfsI);
51725172
gptStarter = pl_get_api_latest(ptApiRegistry, plStarterI);
51735173
gptMaterial = pl_get_api_latest(ptApiRegistry, plMaterialI);
5174+
gptTerrain = pl_get_api_latest(ptApiRegistry, plTerrainI);
51745175
#endif
51755176

51765177
if(bReload)

extensions/pl_renderer_internal.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ Index of this file:
5959
#include "pl_vfs_ext.h"
6060
#include "pl_starter_ext.h"
6161
#include "pl_material_ext.h"
62+
#include "pl_terrain_ext.h"
6263

6364
// shader interop
6465
#include "pl_shader_interop_renderer.h"
@@ -113,6 +114,7 @@ Index of this file:
113114
static const plMeshI* gptMesh = NULL;
114115
static const plShaderVariantI* gptShaderVariant = NULL;
115116
static const plMaterialI* gptMaterial = NULL;
117+
static const plTerrainI* gptTerrain = NULL;
116118

117119
static struct _plIO* gptIO = 0;
118120
#endif
@@ -338,6 +340,9 @@ typedef struct _plView
338340

339341
// shadows
340342
plDirectionLightShadowData tDirectionLightShadowData;
343+
344+
// terrain
345+
plTerrain* ptTerrain;
341346
} plView;
342347

343348
typedef struct _plScene

0 commit comments

Comments
 (0)