blob: cd5960ae967fc6b58a70880787605bcdf8e5a842 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#pragma once
#include "types.h"
struct PngImage
{
uint16_t m_width;
uint16_t m_height;
// pixels are always assumed to be 32 bit
uint32_t* m_data;
};
bool PngLoad(const char* filename, PngImage& image);
void PngFree(PngImage& image);
struct HdrImage
{
uint16_t m_width;
uint16_t m_height;
float* m_data;
};
bool HdrLoad(const char* filename, HdrImage& image);
void HdrFree(HdrImage& image);
|