MCPcopy Create free account

hub / github.com/17cupsofcoffee/nova / functions

Functions163 in github.com/17cupsofcoffee/nova

↓ 8 callersMethodinsert
Tries to insert RGBA data into the atlas, and returns the position. If the data will not fit into the remaining space, `None` will be returned.
src/graphics/packer.rs:37
↓ 6 callersMethodheight
(&self)
src/graphics/canvas.rs:34
↓ 6 callersMethodwidth
(&self)
src/graphics/canvas.rs:30
↓ 4 callersMethodbind_canvas
(&self, canvas: Option<glow::Framebuffer>)
src/graphics.rs:228
↓ 4 callersMethodbind_index_buffer
(&self, buffer: Option<glow::Buffer>)
src/graphics.rs:198
↓ 4 callersMethodbind_texture
(&self, texture: Option<glow::Texture>)
src/graphics.rs:218
↓ 4 callersMethodbind_vertex_buffer
(&self, buffer: Option<glow::Buffer>)
src/graphics.rs:148
↓ 4 callersMethodclear
(&mut self)
src/input.rs:100
↓ 4 callersMethodpush_sprite
( &mut self, texture: Option<&Texture>, source: Rectangle, dest: Rectangle,
src/graphics/batch.rs:281
↓ 3 callersMethodadvance_time
(&mut self)
src/time.rs:65
↓ 3 callersMethodbind_shader
(&self, shader: Option<glow::Program>)
src/graphics.rs:209
↓ 3 callersMethodget_value
(&self, player: usize, axis: GamepadAxis)
src/input.rs:253
↓ 3 callersMethodhas_moved
(&self, player: usize, axis: GamepadAxis)
src/input.rs:261
↓ 3 callersMethodis_down
(&self, button: T)
src/input.rs:219
↓ 3 callersMethodis_pressed
(&self, button: T)
src/input.rs:227
↓ 3 callersMethodis_released
(&self, button: T)
src/input.rs:231
↓ 3 callersMethodis_up
(&self, button: T)
src/input.rs:223
↓ 3 callersMethodset_down
(&mut self, button: T)
src/input.rs:203
↓ 3 callersMethodset_up
(&mut self, button: T)
src/input.rs:211
↓ 3 callersMethodtexture
(&self)
src/graphics/text.rs:115
↓ 2 callersFunctionasset_path
(path: &str)
src/fs.rs:11
↓ 2 callersMethodbind
(&self, gfx: &Graphics)
src/graphics.rs:271
↓ 2 callersMethodcap_accumulated_time
(&mut self)
src/time.rs:73
↓ 2 callersMethodevent
Handle a raw event for the game. This is useful for one-off events, like key down events. For continuous events, like moving a character when you hold
src/app.rs:17
↓ 2 callersMethodinto_owned
(self)
src/graphics/text.rs:150
↓ 2 callersFunctionread
(path: &str)
src/fs.rs:15
↓ 2 callersMethodset_region
(&self, x: i32, y: i32, width: i32, height: i32, data: &[u8])
src/graphics/texture.rs:77
↓ 2 callersMethodsize
(&self)
src/graphics/scaling.rs:56
↓ 2 callersMethodto_axes
(&self)
src/input/gamepad.rs:127
↓ 1 callersFunctionbase_path
()
src/fs.rs:4
↓ 1 callersMethodcolor
(mut self, color: Color)
src/graphics/batch.rs:33
↓ 1 callersMethodconsume_time
(&mut self)
src/time.rs:47
↓ 1 callersMethoddraw
(&mut self, _app: &mut App)
src/app.rs:19
↓ 1 callersMethodfind_space
Finds a space in the atlas that can fit a sprite of the specified width and height, and returns the position. If it would not fit into the remaining
src/graphics/packer.rs:61
↓ 1 callersFunctionfit_canvas_to_window
(canvas: &Canvas, window: &Window)
src/graphics/scaling.rs:61
↓ 1 callersMethodglyph
(&self, ch: char)
src/graphics/text.rs:119
↓ 1 callersMethodhandle_events
(&mut self, event_handler: &mut impl EventHandler)
src/app.rs:68
↓ 1 callersMethodinto_texture
Consumes the packer, returning the generated texture.
src/graphics/packer.rs:30
↓ 1 callersMethodis_gamepad_button_down
(&self, player: usize, button: GamepadButton)
src/input.rs:143
↓ 1 callersMethodis_key_down
(&self, key: Key)
src/input.rs:107
↓ 1 callersMethodis_key_pressed
(&self, key: Key)
src/input.rs:115
↓ 1 callersMethodis_mouse_button_down
(&self, button: MouseButton)
src/input.rs:123
↓ 1 callersMethodkerning
(&self, a: char, b: char)
src/graphics/text.rs:127
↓ 1 callersMethodline_height
(&self)
src/graphics/text.rs:123
↓ 1 callersMethodload_gl
(&self)
src/window.rs:94
↓ 1 callersMethodnext_event
(&mut self)
src/window.rs:106
↓ 1 callersMethodpresent
(&mut self)
src/window.rs:120
↓ 1 callersFunctionread_to_string
(path: &str)
src/fs.rs:21
↓ 1 callersMethodreset
(&mut self)
src/time.rs:42
↓ 1 callersMethodrun
(&mut self, event_handler: &mut impl EventHandler)
src/app.rs:48
↓ 1 callersMethodscale
(&self)
src/graphics/scaling.rs:44
↓ 1 callersMethodset_indices
(&self, data: &[u32])
src/graphics/mesh.rs:40
↓ 1 callersMethodset_title
(&mut self, title: &str)
src/window.rs:131
↓ 1 callersMethodset_value
(&mut self, player: usize, axis: GamepadAxis, value: f32)
src/input.rs:257
↓ 1 callersMethodset_vertices
(&self, data: &[Vertex])
src/graphics/mesh.rs:36
↓ 1 callersMethodsize
(&self)
src/graphics.rs:279
↓ 1 callersMethodtext_segments
( &mut self, font: &SpriteFont, position: Vec2, text: &[TextSegment<'_>],
src/graphics/batch.rs:221
↓ 1 callersMethodtexture
(&mut self, texture: &Texture, position: Vec2, params: DrawParams)
src/graphics/batch.rs:167
↓ 1 callersMethodtexture_region
( &mut self, texture: &Texture, position: Vec2, src: Rectangle, params
src/graphics/batch.rs:181
↓ 1 callersMethodtick_until_update_ready
(&mut self)
src/time.rs:29
↓ 1 callersMethodupdate
(&mut self, _app: &mut App)
src/app.rs:18
Methodalpha
TODO: Not sure if this is the best API
src/graphics/color.rs:51
Methodas_irectangle
(&self)
src/graphics/rectangle.rs:117
Methodas_rectangle
(&self)
src/graphics/rectangle.rs:130
Methodbind
(&self, gfx: &Graphics)
src/graphics/scaling.rs:52
Methodblend_factor
(&self)
src/time.rs:61
Methodclear
(&self, target: &impl Target, color: Color)
src/graphics.rs:82
Methodcolor
(mut self, color: Color)
src/graphics/text.rs:145
Methoddelta
(&self)
src/time.rs:57
Functiondeserialize_ldtk_flags
(de: D)
src/ldtk.rs:224
Functiondeserialize_ldtk_point
(de: D)
src/ldtk.rs:215
Methoddraw
(&self, pass: RenderPass<'_, T>)
src/graphics.rs:94
Methoddraw
(&mut self, batch: &mut Batcher, target: &Window)
src/graphics/scaling.rs:25
Methoddraw
(&mut self, target: &impl Target)
src/graphics/batch.rs:119
Methoddraw
(&mut self, app: &mut App)
examples/bunnymark.rs:128
Methoddrop
(&mut self)
src/window.rs:153
Methoddrop
(&mut self)
src/graphics/texture.rs:180
Methoddrop
(&mut self)
src/graphics/shader.rs:116
Methoddrop
(&mut self)
src/graphics/mesh.rs:111
Methoddrop
(&mut self)
src/graphics/canvas.rs:76
Methoddrop
(&mut self)
src/input/gamepad.rs:47
Methodempty
(gfx: &Graphics, width: i32, height: i32)
src/graphics/texture.rs:51
Methodeq
(&self, other: &Self)
src/graphics/texture.rs:83
Methodeq
(&self, other: &Self)
src/input/gamepad.rs:25
Methodevent
(&mut self, event: &Event)
src/input.rs:43
Methodflip_x
(mut self, flip: bool)
src/graphics/batch.rs:53
Methodflip_y
(mut self, flip: bool)
src/graphics/batch.rs:58
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
src/input/gamepad.rs:31
Methodfrom_data
(data: &[u8])
src/graphics/text.rs:23
Methodfrom_data
(gfx: &Graphics, width: i32, height: i32, data: &[u8])
src/graphics/texture.rs:45
Methodfrom_file
(path: impl AsRef<Path>)
src/ldtk.rs:14
Methodfrom_file
(path: &str)
src/graphics/text.rs:18
Methodfrom_file
(gfx: &Graphics, path: &str, premultiply: bool)
src/graphics/texture.rs:15
Methodfrom_raw
(raw: i32)
src/input/mouse.rs:13
Methodfrom_raw
(event: &SDL_Event)
src/input/event.rs:55
Methodfrom_raw
(id: SDL_JoystickID)
src/input/gamepad.rs:16
Methodfrom_str
(gfx: &Graphics, vertex_src: &str, fragment_src: &str)
src/graphics/shader.rs:48
Methodgamepad_axis
(&self, player: usize, axis: GamepadAxis)
src/input.rs:159
Methodgamepad_stick
(&self, player: usize, stick: GamepadStick)
src/input.rs:167
Methodget_enum_tag
(&self, id: &str)
src/ldtk.rs:53
next →1–100 of 163, ranked by callers