Struct olc_pge::PixelGameEngine [−][src]
pub struct PixelGameEngine { /* fields omitted */ }
Implementations
pub fn draw_line_pattern(
&mut self,
x1: i32,
y1: i32,
x2: i32,
y2: i32,
p: Pixel,
pattern: u32
)
[src]pub fn draw_triangle(
&mut self,
x1: i32,
y1: i32,
x2: i32,
y2: i32,
x3: i32,
y3: i32,
p: Pixel
)
[src]pub fn fill_triangle(
&mut self,
x1: i32,
y1: i32,
x2: i32,
y2: i32,
x3: i32,
y3: i32,
p: Pixel
)
[src]pub fn draw_partial_sprite(
&mut self,
x: i32,
y: i32,
sprite: SpriteRef,
ox: i32,
oy: i32,
w: u32,
h: u32
)
[src]pub fn draw_partial_sprite_scaled(
&mut self,
x: i32,
y: i32,
sprite: SpriteRef,
ox: i32,
oy: i32,
w: u32,
h: u32,
scale: u32
)
[src]pub fn draw_partial_sprite_v(
&mut self,
pos: Vi2d,
sprite: SpriteRef,
source_pos: Vi2d,
size: Vi2d
)
[src]pub fn construct<App: PGEApplication>(
app: App,
width: usize,
height: usize,
pixel_width: usize,
pixel_height: usize
) -> PixelGameEngineContext<App>
[src]Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for PixelGameEngine
impl !Send for PixelGameEngine
impl !Sync for PixelGameEngine
impl Unpin for PixelGameEngine
impl !UnwindSafe for PixelGameEngine
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
pub fn vzip(self) -> V