Skip to content

Instantly share code, notes, and snippets.

[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
[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:
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
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
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) {
@hsdk123
hsdk123 / cpp
Created September 15, 2021 18:12
#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>
@hsdk123
hsdk123 / header
Created September 15, 2021 18:12
#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>
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() {
Magnum::GL::Framebuffer& lvn::CRenderMgr::GetDefaultFramebuffer()
{
if (_default_frame_buffer) {
return *_default_frame_buffer;
}
// references:
// https://stackoverflow.com/questions/9746602/getting-default-frame-buffer-id-from-glkview-glkit/9755439#9755439
// https://docs.microsoft.com/en-us/dotnet/api/android.opengl.gles11ext.glframebufferbindingoes?view=xamarin-android-sdk-9
// GL_FRAMEBUFFER_BINDING_OES is 36006 according to microsoft, same as GL_FRAMEBUFFER_BINDING: 0x8CA6