Struct rin::scene::renderer::allocator::Allocator [−][src]
pub struct Allocator<B = SharedBufferStorage<u8>> { /* fields omitted */ }
Implementations
impl Allocator<SharedBufferStorage<u8>>
[src]
impl Allocator<SharedBufferStorage<u8>>
[src]pub fn new_storage<C>(
gl: &C,
initial_size: usize,
flags: u32,
target: u32
) -> Result<Allocator<SharedBufferStorage<u8>>, Error> where
C: CreationContext,
[src]
gl: &C,
initial_size: usize,
flags: u32,
target: u32
) -> Result<Allocator<SharedBufferStorage<u8>>, Error> where
C: CreationContext,
impl Allocator<SharedBuffer<u8>>
[src]
impl Allocator<SharedBuffer<u8>>
[src]pub fn new_buffer<C>(
gl: &C,
initial_size: usize,
flags: u32,
target: u32
) -> Result<Allocator<SharedBuffer<u8>>, Error> where
C: CreationContext,
[src]
gl: &C,
initial_size: usize,
flags: u32,
target: u32
) -> Result<Allocator<SharedBuffer<u8>>, Error> where
C: CreationContext,
impl<B> Allocator<B> where
B: BufferRange<u8> + Clone + WithBackend + WithBackendMut + MapRange<u8>,
Allocator<B>: InternalCreation<B>,
[src]
impl<B> Allocator<B> where
B: BufferRange<u8> + Clone + WithBackend + WithBackendMut + MapRange<u8>,
Allocator<B>: InternalCreation<B>,
[src]pub fn allocate<C>(&mut self, gl: &C, len: usize) -> Result<BufferRef, Error> where
C: CreationContext,
[src]
C: CreationContext,
pub fn from_data<C, T>(
&mut self,
gl: &C,
data: &[T]
) -> Result<BufferRef, Error> where
C: CreationContext,
T: 'static,
Allocator<B>: Updater,
[src]
&mut self,
gl: &C,
data: &[T]
) -> Result<BufferRef, Error> where
C: CreationContext,
T: 'static,
Allocator<B>: Updater,
pub fn buffer(&self, bufferref: &BufferRef) -> Range<u8, B, B>
[src]
pub fn cast_buffer<T>(
&self,
bufferref: &BufferRef
) -> Range<T, <B as Cast<T>>::CastTo, <B as Cast<T>>::CastTo> where
B: Cast<T>,
<B as Cast<T>>::CastTo: BufferRange<T>,
[src]
&self,
bufferref: &BufferRef
) -> Range<T, <B as Cast<T>>::CastTo, <B as Cast<T>>::CastTo> where
B: Cast<T>,
<B as Cast<T>>::CastTo: BufferRange<T>,
pub fn full_buffer(&self) -> &B
[src]
pub fn update_range<C, T>(
&mut self,
gl: &C,
bufferref: &BufferRef,
data: &[T]
) -> Result<(), Error> where
C: CreationContext,
T: 'static,
Allocator<B>: Updater,
[src]
&mut self,
gl: &C,
bufferref: &BufferRef,
data: &[T]
) -> Result<(), Error> where
C: CreationContext,
T: 'static,
Allocator<B>: Updater,
pub fn free(&mut self, bufferref: BufferRef)
[src]
pub fn gl_debug(
&self,
gl: &Renderer<'_, Screen>,
pos: &Point<f32, U2>,
w: f32,
h: f32
)
[src]
&self,
gl: &Renderer<'_, Screen>,
pos: &Point<f32, U2>,
w: f32,
h: f32
)
Trait Implementations
impl InternalCreation<SharedBuffer<u8>> for Allocator<SharedBuffer<u8>>
[src]
impl InternalCreation<SharedBuffer<u8>> for Allocator<SharedBuffer<u8>>
[src]impl InternalCreation<SharedBufferStorage<u8>> for Allocator<SharedBufferStorage<u8>>
[src]
impl InternalCreation<SharedBufferStorage<u8>> for Allocator<SharedBufferStorage<u8>>
[src]impl Updater for Allocator<SharedBuffer<u8>>
[src]
impl Updater for Allocator<SharedBuffer<u8>>
[src]Auto Trait Implementations
impl<B> RefUnwindSafe for Allocator<B> where
B: RefUnwindSafe,
B: RefUnwindSafe,
impl<B> Send for Allocator<B> where
B: Send,
B: Send,
impl<B> Sync for Allocator<B> where
B: Sync,
B: Sync,
impl<B> Unpin for Allocator<B> where
B: Unpin,
B: Unpin,
impl<B> UnwindSafe for Allocator<B> where
B: UnwindSafe,
B: UnwindSafe,
Blanket Implementations
impl<B, I> Creation<B> for I where
I: InternalCreation<B>,
[src]
impl<B, I> Creation<B> for I where
I: InternalCreation<B>,
[src]impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]