blob: 6eee4f3fc664273695acd5d10e24849abd0df905 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// This file is part of the 64k demo project.
// Lightweight forward declarations for AssetId and ProcGenFunc.
// Include this instead of asset_manager.h when you don't need AssetRecord or
// the asset API (GetAsset, DropAsset, etc.).
#pragma once
#include <cstddef>
#include <cstdint>
enum class AssetId : uint16_t; // Forward declaration
// Type for procedural generation functions: (buffer, width, height, params,
// num_params)
// Returns true on success, false on failure.
typedef bool (*ProcGenFunc)(uint8_t*, int, int, const float*, int);
struct AssetRecord; // Forward declaration (opaque)
|