1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! [Bundle]s that can be used to manually create a pixel buffer.
//!
//! As the image of a pixel buffer has to be created with specific parameters,
//! [create_image](crate::pixel_buffer::create_image) should be used to obtain it. Because of
//! this, the usage of [PixelBufferBuilder](crate::builder::PixelBufferBuilder) is recommended but
//! not required.
use cratePixelBuffer;
use *;
/// [Bundle] to create a pixel buffer manually.
///
/// Gives the possibility to insert the [Bundle] instead of
/// abstracting it with [PixelBufferBuilder](crate::builder::PixelBufferBuilder).
///
/// The [PixelBufferBundle::image] underlying image handle should be obtained from
/// [create_image](crate::pixel_buffer::create_image) and added to the [Assets] to get a handle.
/// [Bundle] to create a pixel buffer with a sprite manually.
///
/// Gives the possibility to insert the [Bundle] instead of
/// abstracting it with [PixelBufferBuilder](crate::builder::PixelBufferBuilder).
///
/// [SpriteBundle::texture] will be the image where the pixel buffer will be
/// stored. To get a value for it use [create_image](crate::pixel_buffer::create_image) and
/// add the image to the [Assets] to get a handle.
///