mirror of
https://github.com/open-goal/jak-project
synced 2026-08-21 14:54:53 -04:00
[custom levels] add 3rdparty library for gltf files (#1481)
This commit is contained in:
@@ -162,6 +162,8 @@ add_subdirectory(third-party/lzokay EXCLUDE_FROM_ALL)
|
||||
|
||||
# build format library
|
||||
add_subdirectory(third-party/fmt EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(third-party/tiny_gltf EXCLUDE_FROM_ALL)
|
||||
|
||||
# discord rich presence
|
||||
include_directories(third-party/discord-rpc/include)
|
||||
add_subdirectory(third-party/discord-rpc EXCLUDE_FROM_ALL)
|
||||
|
||||
@@ -40,15 +40,15 @@ class GfxDisplay {
|
||||
public:
|
||||
virtual ~GfxDisplay() {}
|
||||
|
||||
virtual void* get_window() const __NYI_DEF;
|
||||
virtual void set_size(int w, int h) __NYI_DEF;
|
||||
virtual void update_fullscreen(GfxDisplayMode mode, int screen) __NYI_DEF;
|
||||
virtual void get_scale(float* x, float* y) __NYI_DEF;
|
||||
virtual void get_screen_size(int vmode_idx, s32* w, s32* h, s32* c) __NYI_DEF;
|
||||
virtual void get_position(int* x, int* y) __NYI_DEF;
|
||||
virtual void get_size(int* w, int* h) __NYI_DEF;
|
||||
virtual GfxDisplayMode get_fullscreen() __NYI_DEF;
|
||||
virtual void render() __NYI_DEF;
|
||||
virtual void* get_window() const = 0;
|
||||
virtual void set_size(int w, int h) = 0;
|
||||
virtual void update_fullscreen(GfxDisplayMode mode, int screen) = 0;
|
||||
virtual void get_scale(float* x, float* y) = 0;
|
||||
virtual void get_screen_size(int vmode_idx, s32* w, s32* h, s32* c) = 0;
|
||||
virtual void get_position(int* x, int* y) = 0;
|
||||
virtual void get_size(int* w, int* h) = 0;
|
||||
virtual GfxDisplayMode get_fullscreen() = 0;
|
||||
virtual void render() = 0;
|
||||
bool is_active() const { return get_window() != nullptr; }
|
||||
void set_title(const char* title);
|
||||
const char* title() const { return m_title; }
|
||||
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
if (UNIX)
|
||||
set(CMAKE_CXX_FLAGS "-O3")
|
||||
else ()
|
||||
set(CMAKE_CXX_FLAGS "/EHsc")
|
||||
endif (UNIX)
|
||||
|
||||
include_directories(../)
|
||||
add_library(tiny_gltf tiny_gltf.cpp)
|
||||
|
||||
+7530
File diff suppressed because it is too large
Load Diff
+1621
File diff suppressed because it is too large
Load Diff
+4
@@ -0,0 +1,4 @@
|
||||
#define TINYGLTF_IMPLEMENTATION
|
||||
#define STB_IMAGE_IMPLEMENTATION
|
||||
#define STB_IMAGE_WRITE_IMPLEMENTATION
|
||||
#include "tiny_gltf.h"
|
||||
+7748
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,5 @@
|
||||
add_subdirectory(level_tools)
|
||||
add_subdirectory(build_level)
|
||||
|
||||
add_executable(dgo_unpacker
|
||||
dgo_unpacker.cpp)
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
add_executable(build_level
|
||||
main.cpp)
|
||||
|
||||
target_link_libraries(build_level common compiler tiny_gltf)
|
||||
@@ -0,0 +1,3 @@
|
||||
int main() {
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user