libnedit
Lightweight C++ library for Nintendo DS(i) formats
Loading...
Searching...
No Matches
libnedit
include
ntr
gfx
gfx_Conversion.hpp
1
2
#pragma once
3
#include <ntr/gfx/gfx_Base.hpp>
4
5
namespace
ntr::gfx {
6
7
struct
GraphicsToRgbaContext
{
8
const
u8 *gfx_data;
9
size_t
gfx_data_size;
10
const
u8 *plt_data;
11
size_t
plt_data_size;
12
const
u8 *scr_data;
13
size_t
scr_data_size;
14
u32 scr_width;
15
u32 scr_height;
16
u32 plt_idx;
17
u32 def_width;
18
u32 def_height;
19
PixelFormat pix_fmt;
20
CharacterFormat char_fmt;
21
bool
first_color_transparent;
22
23
abgr8888::Color
*out_rgba;
24
u32 out_width;
25
u32 out_height;
26
};
27
28
Result
ConvertGraphicsToRgba(
GraphicsToRgbaContext
&ctx);
29
30
struct
RgbaToGraphicsContext
{
31
const
abgr8888::Color
*rgba_data;
32
u32 width;
33
u32 height;
34
PixelFormat pix_fmt;
35
CharacterFormat char_fmt;
36
bool
gen_scr_data;
37
38
u8 *out_gfx_data;
39
size_t
out_gfx_data_size;
40
u8 *out_plt_data;
41
size_t
out_plt_data_size;
42
u8 *out_scr_data;
43
size_t
out_scr_data_size;
44
};
45
46
Result
ConvertRgbaToGraphics(
RgbaToGraphicsContext
&ctx);
47
48
}
ntr::Result
Definition
ntr_Include.hpp:75
ntr::gfx::GraphicsToRgbaContext
Definition
gfx_Conversion.hpp:7
ntr::gfx::RgbaToGraphicsContext
Definition
gfx_Conversion.hpp:30
ntr::gfx::abgr8888::Color
Definition
gfx_Base.hpp:75
Generated by
1.10.0