mirror of
https://github.com/allemangD/toddcox-visualize.git
synced 2025-11-10 12:02:47 -05:00
COMP: Windows Support
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
#include <limits>
|
||||
|
||||
namespace tc {
|
||||
using Mult = u_int16_t;
|
||||
using Mult = std::uint16_t;
|
||||
constexpr Mult FREE = 0;
|
||||
|
||||
/**
|
||||
|
||||
2
vendor/embed.cmake
vendored
2
vendor/embed.cmake
vendored
@@ -52,7 +52,7 @@ function(_embed_file OUTPUT_OBJECT FILE)
|
||||
COMMENT "Embedding ${FILE} in ${OBJECT}"
|
||||
OUTPUT "${FILE}.o" DEPENDS "${FILE}"
|
||||
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
|
||||
COMMAND ${EMBED_LD} -r -o "${OBJECT}" -z noexecstack --format=binary "${FILE}"
|
||||
COMMAND ${EMBED_LD} -r -o "${OBJECT}" --format=binary "${FILE}"
|
||||
COMMAND ${EMBED_OBJCOPY} --rename-section .data=.rodata,alloc,load,readonly,data,contents "${OBJECT}"
|
||||
VERBATIM
|
||||
)
|
||||
|
||||
@@ -22,6 +22,10 @@ __attribute__((unused)) __declspec(dllexport) int NvOptimusEnablement = 0x000000
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef M_PI_2f32
|
||||
#define M_PI_2f32 3.14159265358979323846f
|
||||
#endif
|
||||
|
||||
struct Matrices {
|
||||
Eigen::Matrix4f proj;
|
||||
Eigen::Matrix4f view;
|
||||
|
||||
Reference in New Issue
Block a user