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: GLbitfield,
target: GLenum
) -> Result<Allocator<SharedBufferStorage<u8>>> where
C: CreationContext,
[src]
gl: &C,
initial_size: usize,
flags: GLbitfield,
target: GLenum
) -> Result<Allocator<SharedBufferStorage<u8>>> where
C: CreationContext,
impl Allocator<SharedBuffer<u8>>
[src]
impl Allocator<SharedBuffer<u8>>
[src]pub fn new_buffer<C>(
gl: &C,
initial_size: usize,
flags: GLbitfield,
target: GLenum
) -> Result<Allocator<SharedBuffer<u8>>> where
C: CreationContext,
[src]
gl: &C,
initial_size: usize,
flags: GLbitfield,
target: GLenum
) -> Result<Allocator<SharedBuffer<u8>>> where
C: CreationContext,
impl<B> Allocator<B> where
B: BufferRange<u8> + Clone + WithBackend + WithBackendMut + MapRange<u8>,
Self: InternalCreation<B>,
[src]
impl<B> Allocator<B> where
B: BufferRange<u8> + Clone + WithBackend + WithBackendMut + MapRange<u8>,
Self: InternalCreation<B>,
[src]pub fn allocate<C>(&mut self, gl: &C, len: usize) -> Result<BufferRef> where
C: CreationContext,
[src]
C: CreationContext,
pub fn from_data<C, T>(&mut self, gl: &C, data: &[T]) -> Result<BufferRef> where
C: CreationContext,
T: 'static,
Self: Updater,
[src]
C: CreationContext,
T: 'static,
Self: 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<()> where
T: 'static,
C: CreationContext,
Self: Updater,
[src]
&mut self,
gl: &C,
bufferref: &BufferRef,
data: &[T]
) -> Result<()> where
T: 'static,
C: CreationContext,
Self: Updater,
pub fn free(&mut self, bufferref: BufferRef)
[src]
pub fn gl_debug(&self, gl: &Renderer<'_>, pos: &Pnt2, w: f32, h: f32)
[src]
Trait Implementations
impl InternalCreation<SharedBuffer<u8>> for Allocator<SharedBuffer<u8>>
[src]
impl InternalCreation<SharedBuffer<u8>> for Allocator<SharedBuffer<u8>>
[src]fn create<C>(
gl: &C,
initial_size: usize,
flags: GLbitfield,
target: GLenum
) -> Result<SharedBuffer<u8>> where
C: CreationContext,
[src]
gl: &C,
initial_size: usize,
flags: GLbitfield,
target: GLenum
) -> Result<SharedBuffer<u8>> where
C: CreationContext,
impl InternalCreation<SharedBufferStorage<u8>> for Allocator<SharedBufferStorage<u8>>
[src]
impl InternalCreation<SharedBufferStorage<u8>> for Allocator<SharedBufferStorage<u8>>
[src]fn create<C>(
gl: &C,
initial_size: usize,
flags: GLbitfield,
_target: GLenum
) -> Result<SharedBufferStorage<u8>> where
C: CreationContext,
[src]
gl: &C,
initial_size: usize,
flags: GLbitfield,
_target: GLenum
) -> Result<SharedBufferStorage<u8>> where
C: CreationContext,
impl Updater for Allocator<SharedBufferStorage<u8>>
[src]
impl Updater for Allocator<SharedBufferStorage<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]