Crate dunge

Source

Re-exports§

pub use crate::window::window;
pub use glam;

Modules§

bind
Shader binding types.
color
Color types.
group
Shader group types and traits.
instance
Shader instance types and traits.
layer
Layer types.
mesh
The mesh and mesh data types.
prelude
The dunge prelude.
sl
Shader generator functions.
texture
The texture module.
types
Shader types.
uniform
Uniform and value traits.
vertex
The vertex module.
window
Window types.

Macros§

then
The shortcut for creation Then value with an error from a result.

Structs§

Buttons
Mouse buttons.
Context
The main dunge context.
Control
The control type of the main event loop.
Frame
The frame type for drawing and copying operations.
Key
Keyboard input.
Mouse
Mouse input.
Options
Current layer options.
RenderBuffer
Pair of color and depth buffer.
Target
A target for current frame.

Enums§

FailedMakeContext
An error returned from the context constructor.
Format
The texture format type.
LoopError
The event loop error.
Then
The control flow type.

Traits§

AsTarget
Something that contains a target.
Draw
The draw stage.
Flow
The control flow trait for the Update stage.
Group
The group type description.
Instance
The instance type description.
IntoUpdate
Lazy instantiation of the value that implements the Update trait.
Update
The update stage.
Vertex
The vertex type description.

Functions§

context
Creates the context instance.
draw
Helper function to create a Draw implementer from a function.
make
Creates an update handler from the received context and view.
update
Helper function to create a Update implementer from functions.
update_with_event
Same as update but with a state shared between two handlers and an event handler.
update_with_state
Same as update but with a state shared between two handlers.

Type Aliases§

KeyCode
Code representing the location of a physical key.
MouseButton
Describes a button of a mouse controller.
SmolStr
String type from winit crate.

Derive Macros§

Group
Derive implementation for the group type.
Instance
Derive implementation for the instance type.
Vertex
Derive implementation for the vector type.