make tech parentOffset interpolated
This commit is contained in:
parent
560ae08424
commit
8899a1d270
@ -141,7 +141,7 @@ Assets::Assets(Settings settings, StringList assetSources) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (newFiles) {
|
if (newFiles) {
|
||||||
callbacks.registerCallback("add", [this, &newFiles](LuaEngine& engine, String const& path, LuaValue const& data) {
|
callbacks.registerCallback("add", [&newFiles](LuaEngine& engine, String const& path, LuaValue const& data) {
|
||||||
ByteArray bytes;
|
ByteArray bytes;
|
||||||
if (auto str = engine.luaMaybeTo<String>(data))
|
if (auto str = engine.luaMaybeTo<String>(data))
|
||||||
bytes = ByteArray(str->utf8Ptr(), str->utf8Size());
|
bytes = ByteArray(str->utf8Ptr(), str->utf8Size());
|
||||||
|
@ -13,7 +13,6 @@ CompressionStream::CompressionStream() : m_cStream(ZSTD_createCStream()) {
|
|||||||
CompressionStream::~CompressionStream() { ZSTD_freeCStream(m_cStream); }
|
CompressionStream::~CompressionStream() { ZSTD_freeCStream(m_cStream); }
|
||||||
|
|
||||||
ByteArray CompressionStream::compress(const char* in, size_t inLen) {
|
ByteArray CompressionStream::compress(const char* in, size_t inLen) {
|
||||||
size_t const cInSize = ZSTD_CStreamInSize ();
|
|
||||||
size_t const cOutSize = ZSTD_CStreamOutSize();
|
size_t const cOutSize = ZSTD_CStreamOutSize();
|
||||||
ZSTD_inBuffer inBuffer = {in, inLen, 0};
|
ZSTD_inBuffer inBuffer = {in, inLen, 0};
|
||||||
size_t written = 0;
|
size_t written = 0;
|
||||||
@ -47,7 +46,6 @@ DecompressionStream::DecompressionStream() : m_dStream(ZSTD_createDStream()) {
|
|||||||
DecompressionStream::~DecompressionStream() { ZSTD_freeDStream(m_dStream); }
|
DecompressionStream::~DecompressionStream() { ZSTD_freeDStream(m_dStream); }
|
||||||
|
|
||||||
ByteArray DecompressionStream::decompress(const char* in, size_t inLen) {
|
ByteArray DecompressionStream::decompress(const char* in, size_t inLen) {
|
||||||
size_t const dInSize = ZSTD_DStreamInSize ();
|
|
||||||
size_t const dOutSize = ZSTD_DStreamOutSize();
|
size_t const dOutSize = ZSTD_DStreamOutSize();
|
||||||
ZSTD_inBuffer inBuffer = {in, inLen, 0};
|
ZSTD_inBuffer inBuffer = {in, inLen, 0};
|
||||||
size_t written = 0;
|
size_t written = 0;
|
||||||
|
@ -58,6 +58,8 @@ TechController::TechController() {
|
|||||||
|
|
||||||
m_xParentOffset.setFixedPointBase(0.003125);
|
m_xParentOffset.setFixedPointBase(0.003125);
|
||||||
m_yParentOffset.setFixedPointBase(0.003125);
|
m_yParentOffset.setFixedPointBase(0.003125);
|
||||||
|
m_xParentOffset.setInterpolator(lerp<float, float>);
|
||||||
|
m_yParentOffset.setInterpolator(lerp<float, float>);
|
||||||
}
|
}
|
||||||
|
|
||||||
Json TechController::diskStore() {
|
Json TechController::diskStore() {
|
||||||
|
Loading…
Reference in New Issue
Block a user