Enum flo_render::RenderAction [−][src]
Represents an action for a render target
Variants
SetTransform(Matrix)
Sets the transformation matrix to use for future renderings
CreateVertex2DBuffer(VertexBufferId, Vec<Vertex2D>)
Creates a vertex buffer with the specified 2D vertices in it (replacing any existing buffer)
CreateIndexBuffer(IndexBufferId, Vec<u16>)
Creates an index buffer with the specified 2D vertices in it (replacing any existing buffer)
FreeVertexBuffer(VertexBufferId)
Frees an existing vertex buffer
FreeIndexBuffer(IndexBufferId)
Frees an existing index buffer
BlendMode(BlendMode)
Sets the blend mode for future drawing operations (SourceOver is the default)
CreateRenderTarget(RenderTargetId, TextureId, usize, usize, RenderTargetType)
Creates a new render target of the specified size, as the specified texture
FreeRenderTarget(RenderTargetId)
Frees up an existing render target
SelectRenderTarget(RenderTargetId)
Send future rendering instructions to the specified render target
Send future rendering instructions to the main frame buffer
Display the current frame buffer on-screen
DrawFrameBuffer(RenderTargetId, i32, i32)
Renders the specified framebuffer to the current framebuffer
Creates an 8-bit BGRA texture of the specified size
FreeTexture(TextureId)
Frees up an existing texture
Clear(Rgba8)
Clears the current render target to the specified colour
UseShader(ShaderType)
Uses the specified shader
DrawTriangles(VertexBufferId, Range<usize>)
Renders triangles from a vertex buffer (with no texture)
Parameters are the range of vertices to use
DrawIndexedTriangles(VertexBufferId, IndexBufferId, usize)
Renders triangles using an index buffer
Trait Implementations
impl Clone for RenderAction
[src]
fn clone(&self) -> RenderAction
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for RenderAction
[src]
impl PartialEq<RenderAction> for RenderAction
[src]
fn eq(&self, other: &RenderAction) -> bool
[src]
fn ne(&self, other: &RenderAction) -> bool
[src]
impl StructuralPartialEq for RenderAction
[src]
Auto Trait Implementations
impl RefUnwindSafe for RenderAction
[src]
impl Send for RenderAction
[src]
impl Sync for RenderAction
[src]
impl Unpin for RenderAction
[src]
impl UnwindSafe for RenderAction
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,