Initial commit of source code

This commit is contained in:
Sylvain Schneider
2026-03-12 16:32:03 +01:00
parent b5d0fef4d9
commit f25c5789ea
46 changed files with 27732 additions and 0 deletions

26
src/resources/resources.h Normal file
View File

@@ -0,0 +1,26 @@
#pragma once
#include <wx/animate.h>
#include <wx/bitmap.h>
#include <wx/image.h>
#include <wx/mstream.h>
//--------------------------------------------------------------
//--------------------------------------------------------------
#define wxGetBitmapFromMemory(name) _wxGetBitmapFromMemory(name, sizeof(name))
inline wxBitmap _wxGetBitmapFromMemory(const unsigned char *data, int length)
{
wxMemoryInputStream is(data, length);
return { wxImage(is, wxBITMAP_TYPE_ANY, -1), -1 };
}
//--------------------------------------------------------------
#define wxGetAnimationFromMemory(name) _wxGetAnimationFromMemory(name, sizeof(name))
inline wxAnimation _wxGetAnimationFromMemory(const unsigned char *data, int length)
{
wxAnimation animate;
wxMemoryInputStream is(data, length);
animate.Load(is);
return animate;
}
//--------------------------------------------------------------