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
16
namespace
esengine::text
{
17
35
void
sdfFromAlpha
(
const
u8
* alpha,
u8
* out,
u32
width,
u32
height,
f32
spread);
36
37
}
// namespace esengine::text
Types.hpp
Core type definitions and utilities for ESEngine.
esengine::text
Definition
TextPlugin.hpp:13
esengine::text::sdfFromAlpha
void sdfFromAlpha(const u8 *alpha, u8 *out, u32 width, u32 height, f32 spread)
Signed distance field from an antialiased alpha coverage bitmap.
Definition
SdfGenerator.cpp:102
esengine::u32
std::uint32_t u32
Unsigned 32-bit integer.
Definition
Types.hpp:45
esengine::u8
std::uint8_t u8
Unsigned 8-bit integer.
Definition
Types.hpp:41
esengine::f32
float f32
32-bit floating point
Definition
Types.hpp:59
src
esengine
text
SdfGenerator.hpp
Generated by
1.15.0