VirtualC64 v5.0 beta
Commodore 64 Emulator
Loading...
Searching...
No Matches
Heatmap.h
1// -----------------------------------------------------------------------------
2// This file is part of VirtualC64
3//
4// Copyright (C) Dirk W. Hoffmann. www.dirkwhoffmann.de
5// This FILE is dual-licensed. You are free to choose between:
6//
7// - The GNU General Public License v3 (or any later version)
8// - The Mozilla Public License v2
9//
10// SPDX-License-Identifier: GPL-3.0-or-later OR MPL-2.0
11// -----------------------------------------------------------------------------
12
13#pragma once
14
15#include "MemoryTypes.h"
16
17namespace vc64 {
18
19class Heatmap final {
20
21public:
22
23 // Heapmap data
24 float heatmap[256][256] = { };
25
26 // Cached accesses
27 isize history[65536] = { };
28
29 // Color palette
30 u32 palette[256];
31
32
33 //
34 // Methods
35 //
36
37public:
38
39 Heatmap();
40
41 // Updates heatmap data
42 void update(const class C64Memory &mem);
43
44 // Draws a heatmap
45 void draw(u32 *buffer, isize width, isize height) const;
46};
47
48}
VirtualC64 project namespace.
Definition CmdQueue.cpp:16