Module veloren_voxygen::ui::graphic
source ยท Re-exportsยง
pub use renderer::SampleStrat;
pub use renderer::Transform;
Modulesยง
- pixel_art ๐
Structsยง
- CacheKey ๐Key used to refer to an instance of a graphic that has been uploaded to the GPU.
- TextureParameters ๐These solely determine how a place in an atlas will be found or how a texture will be created to place the image for a graphic.
Enumsยง
- CachedDetails ๐
- PremultiplyStrategy ๐Strategy for how alpha premultiplication will be applied to an image.
- TextureRequirements ๐Requirements that a particular graphic has with respect to the atlas allocation or independent texture it will be stored in.
Constantsยง
- ATLAS_CUTOFF_FRAC ๐Images larger than this are stored in individual textures Fraction of the total graphic cache size
- Multiplied by current window size
Functionsยง
- aabr_from_alloc_rect ๐
- atlas_size ๐
- create_atlas_texture ๐
- create_image ๐
- create_image_texture ๐This creates a texture suitable for sampling from during the UI pass and rendering too during alpha premultiplication upload passes.
- Useful to estimates cost of premultiplying alpha in the provided image via the CPU method.
- premultiply_alpha ๐
- prepare_graphic ๐Prepare the graphic into the form that will be uploaded to the GPU.
- upload_image ๐