Expand description
Paddle is a framework for easy game building for the browser. TODO: more description, README
Re-exports§
Modules§
- asset
- graphics
- Parent module for stuff related to graphics manipulation, such as textures and tessellation. (exclusive display + GPU)
- progress
- quicksilver_
compat - This module has a copy of quicksilver types to ease transition form quicksilver to something else.
- web_
integration
Structs§
- Custom
Shader - Display
- An object to manage the full display area for your game inside the browser.
- Display
Area - Display
Config - Draw
World - EndOf
Frame - End of frame as in frames-per-second. Published when drawing has finished.
- Error
Message - Floating
Text - Frame
Handle - Handle to frame is returned when adding it to the view manager. Can be used to add listeners. (And potentially other manipulations of the frame are possible in the future)
- GpuConfig
- GpuMesh
- Buffer for GPU primitives ready to be drawn, after tesselation and all CPU-side transformations have finished
- GpuTriangle
- A triangle to draw to the GPU
- GpuVertex
- A vertex for drawing items to the GPU
- Grid
- JsError
- KeyEvent
- KeyEvent
Type Iter - Load
Scheduler - Helper object to manage resource loading.
- Loaded
Data - Loading
Done - Loading
Progress - Paddle
Config - Pointer
Event - Event type and cursor position
- Pointer
Tracker - Helper struct that can be added to a frame to track advanced cursor updates.
- Rectangle
- A rectangle with a top-left position and a size
- Render
Pipeline Handle - A handle to a registered shader program (essentially a pair of fragment + vertex shaders).
- Start
OfFrame - Text
Board - Text
Node - Text
Pool - Allocates FloatingText units
- Transform
- A 2D transformation represented by a matrix
- Update
World - Vector
- A 2D vector with single-precision floating point numbers
- Vertex
Descriptor - Describes the layout of a vertex as it is uploaded to the GPU.
- View
Manager
Enums§
- Canvas
Config - Domain
- Event
Listener Type - FitStrategy
- Key
- Rust representation of a set of common keys. The names match the Key Code Values. The keys listed should all have the same representation on all platforms.
- KeyEvent
Type - Rust representation for key event types. Has a one-to-one correspondence to browser events.
- Message
Channel - Pointer
Event Type - Rust representation for mouse and touch event types.
- Uniform
Value
Constants§
Traits§
- Frame
- A frame takes up some area on the screen where it is drawn and reacts to UI events.
- Nuts
Check - Render
- Some object that can be rendered to a GpuMesh with position parameters and a color or image
- Scalar
- A Scalar type that can be converted to a component of a Vector
Functions§
- click_
event_ gate - enable_
custom_ nuts_ checks - enable_
nuts_ checks_ to_ console - enable_
nuts_ checks_ to_ textboard - init
- keyboard_
event_ gate - load_
blob - Returns an asynchronous BLOB.
- load_
file - mouse_
event_ gate - pointer_
event_ gate - register_
frame - register_
frame_ no_ state - Use this if the state has already been registered previously.
- register_
frame_ with - Use this if the state needs access to the graphics environment
- send
- Send a message to a private receiver
- share
- Share anything with all other activities in background and foreground
- share_
foreground - Share anything with all foreground activities
- start_
drawing - start_
updating - touch_
event_ gate - utc_now