Module greedy

Source

Structsยง

GreedyConfig
GreedyMesh
Shared state for a greedy mesh, potentially passed along to multiple models.
GuillotiereTiled

Traitsยง

AtlasAllocator
Abstraction over different atlas allocators. Useful to swap out the allocator implementation for specific cases (e.g. sprites).

Functionsยง

add_to_atlas ๐Ÿ”’
create_quad
create_quad_greedy ๐Ÿ”’
Precondition: when this function is called, atlas_pos should reflect an actual valid position in a texture atlas (meaning it should fit into a u16).
draw_texels ๐Ÿ”’
We deferred actually recording the colors within the rectangles in order to generate a texture of minimal size; we now proceed to create and populate it.
general_config
Currently used by terrain/particles/figures
greedy_mesh ๐Ÿ”’
greedy_mesh_cross_section ๐Ÿ”’
Greedy meshing a single cross-section.
guillotiere_size ๐Ÿ”’
sprite_config

Type Aliasesยง

SpriteAtlasAllocator
SuspendedMesh
A suspended greedy mesh, with enough information to recover color data.
TodoRect ๐Ÿ”’