Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
SdfGenerator.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team
12#pragma once
13
14#include "../core/Types.hpp"
15
16namespace esengine::text {
17
35void sdfFromAlpha(const u8* alpha, u8* out, u32 width, u32 height, f32 spread);
36
37} // namespace esengine::text
Core type definitions and utilities for ESEngine.
void sdfFromAlpha(const u8 *alpha, u8 *out, u32 width, u32 height, f32 spread)
Signed distance field from an antialiased alpha coverage bitmap.
std::uint32_t u32
Unsigned 32-bit integer.
Definition Types.hpp:45
std::uint8_t u8
Unsigned 8-bit integer.
Definition Types.hpp:41
float f32
32-bit floating point
Definition Types.hpp:59