Setting custom textures #130
Answered
by
emilk
chrisboyce
asked this question in
Q&A
-
I see in the docs that the |
Beta Was this translation helpful? Give feedback.
Answered by
emilk
Jan 24, 2021
Replies: 1 comment 4 replies
-
You use the let tex_allocator = frame.tex_allocator().unwrap();
let texture_id = tex_allocator.alloc_srgba_premultiplied(size, pixels); |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
chrisboyce
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You use the
tex_allocator()
method inepi::Frame
: https://docs.rs/epi/0.8.0/epi/struct.Frame.html#method.tex_allocator