JNGL
Easy to use cross-platform 2D game library
Loading...
Searching...
No Matches
TextureFilter.hpp
Go to the documentation of this file.
1// Copyright 2026 Jan Niklas Hasse <jhasse@bixense.com>
2// For conditions of distribution and use, see copyright notice in LICENSE.txt
5#pragma once
6
7#include <cstdint>
8
9namespace jngl {
10
12enum class TextureFilter : uint8_t {
16
20};
21
22} // namespace jngl
JNGL's main namespace.
TextureFilter
How a texture is sampled when it's drawn bigger or smaller than its pixel size.
@ NearestNeighbor
Nearest Neighbor Filtering is used when jngl::AppParameters::pixelArt is true.
@ Bilinear
Bilinear Filtering is used when jngl::AppParameters::pixelArt is false.