mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
21 lines
364 B
C++
21 lines
364 B
C++
//
|
|
// BitmapHandler.hpp
|
|
// vcmieditor
|
|
//
|
|
// Created by nordsoft on 29.08.2022.
|
|
//
|
|
|
|
#pragma once
|
|
|
|
#define read_le_u16(p) (* reinterpret_cast<const ui16 *>(p))
|
|
#define read_le_u32(p) (* reinterpret_cast<const ui32 *>(p))
|
|
|
|
#include <QImage>
|
|
|
|
namespace BitmapHandler
|
|
{
|
|
//Load file from /DATA or /SPRITES
|
|
QImage loadBitmap(std::string fname, bool setKey=true);
|
|
}
|
|
|