renderd7/internal/bmp.hpp

19 lines
341 B
C++
Raw Normal View History

2022-04-14 17:41:18 +02:00
#pragma once
#include <fstream>
#include <vector>
#include <stdexcept>
#include <iostream>
2022-04-15 13:13:38 +02:00
#include <3ds.h>
namespace BMP
{
struct Bitmap{
u32 magic;
u8* pixels;
int width;
int height;
u16 bitperpixel;
};
void PutPixel565(u8* dst, u8 x, u8 y, u16 v);
void Save(std::string path, BMP::Bitmap *bitmap);
}