pub struct EngineWrapper(_);
Expand description

A Wrapper around an Engine

Implementations

Create the Engine and the Wrapper

Create the Engine and the Wrapper

The core of your program,

Takes a function F that will be run every frame, It will do the event handling and similar things between frames.

Methods from Deref<Target = Engine>

Return the current Target size in pixel

Get The status of a key

Get the status of a Mouse Button

Get the mouse location (in pixel) on the screen Will be defaulted to (0,0) at the start of the program

Get the scroll wheel direction (If Any) during the frame

Get all Keys pressed during the last frame

Create a GPU version of Sprite

Tell the GPU to destroy everything related to that [Decal]

Trait Implementations

Formats the value using the given formatter. Read more
The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.