重命名mirage_stb_image为mirage_stb_image_loader

This commit is contained in:
2025-03-26 18:01:15 +08:00
parent a27c49af75
commit 3f375ccfc2
5 changed files with 15 additions and 28 deletions

View File

@@ -8,23 +8,11 @@
#include "widget/panel_widget/mbox.h"
#include "pixel.h"
#include "misc/mapped_file/mapped_file.h"
#include "mirage_stb_image.h"
#include "stb_image_loader.h"
int main(int argc, char* argv[]) {
mirage_app::get().init();
// auto file = mapped_file::create();
// file->map_file(L"Z:/Root/Local/NanakoDisk/涩图/可爱偷猴计划/东风谷早苗/57092520_p1.jpg");
//
// mirage_stb_image image;
// image.init(file->get_data(), file->get_size());
//
// auto heap = image.load();
// auto pixel_format = heap->info.get_pixel_format();
//
// auto accessor = pixel_factory::create_image_accessor(pixel_format, heap->data, heap->info.width, heap->info.height);
// pixel_factory::destroy_image_accessor(accessor);
const auto& window = mwindow::create({ 800, 600 }, L"Hello, World!");
window->set_content(
std::make_shared<mbutton>()