summaryrefslogtreecommitdiffstatshomepage
path: root/src/frontend/mame/ui/icorender.h
blob: bb3f1a083be06fd4281c439d41516195073b77a8 (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
28
29
30
31
32
33
34
// license:BSD-3-Clause
// copyright-holders:Vas Crabb
/***************************************************************************

    ui/icorender.h

    Windows icon file parser.

    File handles passed to these functions must support read and seek
    operations.

***************************************************************************/
#ifndef MAME_FRONTEND_MAME_UI_ICORENDER_H
#define MAME_FRONTEND_MAME_UI_ICORENDER_H

#pragma once

namespace ui {

// get number of images in icon file (-1 on error)
int images_in_ico(util::core_file &fp);

// load specified icon from file (zero-based)
void render_load_ico(util::core_file &fp, unsigned index, bitmap_argb32 &bitmap);

// load first supported icon from file
void render_load_ico_first(util::core_file &fp, bitmap_argb32 &bitmap);

// load highest detail supported icon from file
void render_load_ico_highest_detail(util::core_file &fp, bitmap_argb32 &bitmap);

} // namespace ui

#endif // MAME_FRONTEND_MAME_UI_ICORENDER_H