Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
hoffstadt committed Nov 17, 2024
1 parent 0df4e9f commit 36d2d48
Show file tree
Hide file tree
Showing 62 changed files with 7,350 additions and 7,265 deletions.
24 changes: 6 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@ jobs:
if not exist ../out/example_8.dll exit 1
if not exist ../out/example_9.dll exit 1
if not exist ../out/pilot_light.exe exit 1
if not exist ../out/pl_ext.dll exit 1
if not exist ../out/pl_ext_os.dll exit 1
if not exist ../out/pl_ext_proto.dll exit 1
if not exist ../out/pl_unity_ext.dll exit 1
if not exist ../out/pl_script_camera.dll exit 1
cd ..
Expand Down Expand Up @@ -93,9 +91,7 @@ jobs:
if not exist ../out/example_8.dll exit 1
if not exist ../out/example_9.dll exit 1
if not exist ../out/pilot_light.exe exit 1
if not exist ../out/pl_ext.dll exit 1
if not exist ../out/pl_ext_os.dll exit 1
if not exist ../out/pl_ext_proto.dll exit 1
if not exist ../out/pl_unity_ext.dll exit 1
if not exist ../out/pl_script_camera.dll exit 1
- name: Package Pilot Light
Expand Down Expand Up @@ -161,9 +157,7 @@ jobs:
test -f ./out/example_6.dylib || exit 1
test -f ./out/example_8.dylib || exit 1
test -f ./out/example_9.dylib || exit 1
test -f ./out/pl_ext.dylib || exit 1
test -f ./out/pl_ext_os.dylib || exit 1
test -f ./out/pl_ext_proto.dylib || exit 1
test -f ./out/pl_unity_ext.dylib || exit 1
test -f ./out/pl_script_camera.dylib || exit 1
- name: Prep 2
Expand Down Expand Up @@ -195,9 +189,7 @@ jobs:
test -f ./out/example_6.dylib || exit 1
test -f ./out/example_8.dylib || exit 1
test -f ./out/example_9.dylib || exit 1
test -f ./out/pl_ext.dylib || exit 1
test -f ./out/pl_ext_os.dylib || exit 1
test -f ./out/pl_ext_proto.dylib || exit 1
test -f ./out/pl_unity_ext.dylib || exit 1
test -f ./out/pl_script_camera.dylib || exit 1
- name: Package Pilot Light
Expand Down Expand Up @@ -270,9 +262,7 @@ jobs:
test -f ./out/example_6.so || exit 1
test -f ./out/example_8.so || exit 1
test -f ./out/example_9.so || exit 1
test -f ./out/pl_ext.so || exit 1
test -f ./out/pl_ext_os.so || exit 1
test -f ./out/pl_ext_proto.so || exit 1
test -f ./out/pl_unity_ext.so || exit 1
test -f ./out/pl_script_camera.so || exit 1
- name: Prep 2
Expand Down Expand Up @@ -304,9 +294,7 @@ jobs:
test -f ./out/example_6.so || exit 1
test -f ./out/example_8.so || exit 1
test -f ./out/example_9.so || exit 1
test -f ./out/pl_ext.so || exit 1
test -f ./out/pl_ext_os.so || exit 1
test -f ./out/pl_ext_proto.so || exit 1
test -f ./out/pl_unity_ext.so || exit 1
test -f ./out/pl_script_camera.so || exit 1
- name: Package Pilot Light
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ examples/build.bat
examples/build.sh
tests/build.bat
tests/build.sh
src/build_deploy.bat
src/build_deploy.sh

# custom or user or mod
src/*_user.*
Expand Down
1 change: 1 addition & 0 deletions examples/example_1.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Index of this file:
#include <stdio.h>
#include <string.h> // memset
#include "pl.h"
#include "pl_window_ext.h"

//-----------------------------------------------------------------------------
// [SECTION] structs
Expand Down
4 changes: 2 additions & 2 deletions examples/example_2.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Index of this file:
#include "pl_math.h"

// extensions
#include "pl_window_ext.h"
#include "pl_draw_ext.h"
#include "pl_shader_ext.h"
#include "pl_graphics_ext.h"
Expand Down Expand Up @@ -124,8 +125,7 @@ pl_app_load(plApiRegistryI* ptApiRegistry, plAppData* ptAppData)
const plExtensionRegistryI* ptExtensionRegistry = pl_get_api_latest(ptApiRegistry, plExtensionRegistryI);

// load extensions
ptExtensionRegistry->load("pl_ext", NULL, NULL, true);
ptExtensionRegistry->load("pl_ext_os", NULL, NULL, false);
ptExtensionRegistry->load("pl_unity_ext", NULL, NULL, true);

// load required apis (NULL if not available)
gptIO = pl_get_api_latest(ptApiRegistry, plIOI);
Expand Down
Loading

0 comments on commit 36d2d48

Please sign in to comment.