Skip to content

Instantly share code, notes, and snippets.

View gist:7f66ecf92d8f51ffaa3e4ac241d4682f
bool lvn::Texture::overlayTexture(const std::vector<OverlayInfo>& infos)
{
using namespace std;
const auto canvas_texture_size = getSize();
struct SettingsUnlock {
SettingsUnlock() {
_original_image_quality = CoreHelper::SysVars().imageDefaultQuality.getCurVal();
}
~SettingsUnlock() {
View header
#pragma once
//---------------------------------------------------------
// This is my modified version of Magnum/Platform/AndroidApplication.h
// HS: including original header to fetch additional structs so I can keep this file short
#include <Magnum/Platform/AndroidApplication.h>
#include <Magnum/Magnum.h>
#include <Magnum/Math/Vector2.h>
//---------------------------------------------------------
#include <EGL/egl.h>
View cpp
#include "CoreAndroidApplication.h"
#include <Code/88.Managers/LogMgr/LogMgr_InclMacros.h>
#include <Corrade/Utility/AndroidLogStreamBuffer.h>
#include <Corrade/Utility/Debug.h>
#include <android_native_app_glue.h>
#include <Magnum/GL/Version.h>
#include <Magnum/Platform/GLContext.h>
#include <Magnum/Platform/ScreenedApplication.hpp>
View gist:0e88dada6e5e5f88e23d64fb82481397
namespace {
void check_status(Magnum::GL::Framebuffer& frame_buffer)
{
const auto stat1 = frame_buffer.checkStatus(Magnum::GL::FramebufferTarget::Read);
if (stat1 != Magnum::GL::Framebuffer::Status::Complete) {
Magnum::Debug{} << "something wrong";
}
const auto stat2 = frame_buffer.checkStatus(Magnum::GL::FramebufferTarget::Draw);
if (stat2 != Magnum::GL::Framebuffer::Status::Complete) {
View dragon example error
Spine Launcher 4.0.22
Esoteric Software LLC (C) 2013-2020 | http://esotericsoftware.com
Windows 10 Home amd64 10.0
NVIDIA Corporation, GeForce GTX 1060 3GB/PCIe/SSE2, 4.6.0 NVIDIA 456.71
Launching: Spine 3.8.99 Professional
Spine Launcher 4.0.22-legacy
Starting: Spine 3.8.99
Spine 3.8.99 Professional
Licensed to: hsdk.bd, daegon.dhsk@gmail.com
NVIDIA Corporation, GeForce GTX 1060 3GB/PCIe/SSE2, 4.6.0 NVIDIA 456.71
View android error
12-01 12:17:30.104 818 4475 I msm8974_platform: platform_check_and_set_codec_backend_cfg:becf: afe: bitwidth 16, samplerate 48000 channels 2, backend_idx 0 usecase = 1 device (speaker)
12-01 12:17:30.104 818 4475 I msm8974_platform: platform_check_and_set_codec_backend_cfg: new_snd_devices[0] is 161
12-01 12:17:30.104 818 4475 I msm8974_platform: platform_check_codec_backend_cfg:becf: afe: bitwidth 16, samplerate 48000 channels 2, backend_idx 0 usecase = 1 device (speaker)
12-01 12:17:30.104 818 4475 I audio_hw_lge: lge_get_device_type_for_mqa snd_device = 161
12-01 12:17:30.104 818 4475 I audio_hw_lge: lge_get_max_samplerate_for_current_backend sample rate = 48000 backend = 0 mqa_enable = 0, active_mqa_offload = 0
12-01 12:17:30.104 818 4475 I audio_hw_lge: lge_get_device_type_for_mqa snd_device = 161
12-01 12:17:30.104 818 4475 I msm8974_platform: platform_check_codec_backend_cfg:becf: afe: Codec selected backend: 0 updated bit width: 16 and sample rate: 48000
12-01 12:17:30.104 818
View gist:dd8730907f407d74c21e1e1ed678c76f
[3/6] Linking CXX executable ..\..\..\bin-Windows-RelWithDebInfo8\LightApp.exe
Searching libraries
Searching C:\Users\daego\Desktop\Projects\Light.vn-multi\extlibs\install-Windows-RelWithDebInfo8\lib\CorradeMain.lib:
Searching ..\..\..\bin-Windows-RelWithDebInfo8\MyCore.lib:
Searching ..\..\..\bin-Windows-RelWithDebInfo8\niazip.lib:
Searching ..\..\..\bin-Windows-RelWithDebInfo8\libminizip.lib:
Searching C:\Users\daego\Desktop\Projects\Light.vn-multi\extlibs\install-Windows-RelWithDebInfo8\lib\zlib.lib:
Searching ..\..\..\bin-Windows-RelWithDebInfo8\freetype.lib:
Searching ..\..\..\bin-Windows-RelWithDebInfo8\fmt.lib:
View gist:c8eafdf5600ddb4970f72fcf18f75e9e
[560/560] Linking CXX executable ..\..\..\bin-Windows-RelWithDebInfo8\LightEditor.exe
Creating library ..\..\..\bin-Windows-RelWithDebInfo8\LightEditor.lib and object ..\..\..\bin-Windows-RelWithDebInfo8\LightEditor.exp
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release\LIBCMT.lib(initializers.obj) : warning LNK4098: defaultlib 'msvcrt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
C:\Users\daego\Desktop\Projects\Light.vn-multi\core\out\build\x64-Release\LINK : warning LNK4217: symbol 'alGetString' defined in 'OpenAL32.lib(state.cpp.obj)' is imported by 'MagnumAudio.lib(Context.cpp.obj)' in function '"public: class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > __cdecl Magnum::Audio::Context::extensionStrings(void)const " (?extensionStrings@Context@Audio@Magnum@@QEBA?AV?$vector@V?$basic_string@DU?$c