Struct rin::scene::renderer::allocator::Allocator[][src]

pub struct Allocator<B = SharedBufferStorage<u8>> { /* fields omitted */ }

Implementations

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]

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]

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]

pub fn from_data<C, T>(
    &mut self,
    gl: &C,
    data: &[T]
) -> Result<BufferRef, Error> where
    C: CreationContext,
    T: 'static,
    Allocator<B>: Updater
[src]

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]

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]

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]

Trait Implementations

impl InternalCreation<SharedBuffer<u8>> for Allocator<SharedBuffer<u8>>[src]

impl InternalCreation<SharedBufferStorage<u8>> for Allocator<SharedBufferStorage<u8>>[src]

impl Updater for Allocator<SharedBuffer<u8>>[src]

impl Updater for Allocator<SharedBufferStorage<u8>>[src]

Auto Trait Implementations

impl<B> RefUnwindSafe for Allocator<B> where
    B: RefUnwindSafe

impl<B> Send for Allocator<B> where
    B: Send

impl<B> Sync for Allocator<B> where
    B: Sync

impl<B> Unpin for Allocator<B> where
    B: Unpin

impl<B> UnwindSafe for Allocator<B> where
    B: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<B, I> Creation<B> for I where
    I: InternalCreation<B>, 
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Any + Send + Sync
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<V> IntoPnt<V> for V[src]

impl<V> IntoVec<V> for V[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]