Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/17cupsofcoffee/nova
/ functions
Functions
163 in github.com/17cupsofcoffee/nova
⨍
Functions
163
◇
Types & classes
55
↓ 8 callers
Method
insert
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 callers
Method
height
(&self)
src/graphics/canvas.rs:34
↓ 6 callers
Method
width
(&self)
src/graphics/canvas.rs:30
↓ 4 callers
Method
bind_canvas
(&self, canvas: Option<glow::Framebuffer>)
src/graphics.rs:228
↓ 4 callers
Method
bind_index_buffer
(&self, buffer: Option<glow::Buffer>)
src/graphics.rs:198
↓ 4 callers
Method
bind_texture
(&self, texture: Option<glow::Texture>)
src/graphics.rs:218
↓ 4 callers
Method
bind_vertex_buffer
(&self, buffer: Option<glow::Buffer>)
src/graphics.rs:148
↓ 4 callers
Method
clear
(&mut self)
src/input.rs:100
↓ 4 callers
Method
push_sprite
( &mut self, texture: Option<&Texture>, source: Rectangle, dest: Rectangle,
src/graphics/batch.rs:281
↓ 3 callers
Method
advance_time
(&mut self)
src/time.rs:65
↓ 3 callers
Method
bind_shader
(&self, shader: Option<glow::Program>)
src/graphics.rs:209
↓ 3 callers
Method
get_value
(&self, player: usize, axis: GamepadAxis)
src/input.rs:253
↓ 3 callers
Method
has_moved
(&self, player: usize, axis: GamepadAxis)
src/input.rs:261
↓ 3 callers
Method
is_down
(&self, button: T)
src/input.rs:219
↓ 3 callers
Method
is_pressed
(&self, button: T)
src/input.rs:227
↓ 3 callers
Method
is_released
(&self, button: T)
src/input.rs:231
↓ 3 callers
Method
is_up
(&self, button: T)
src/input.rs:223
↓ 3 callers
Method
set_down
(&mut self, button: T)
src/input.rs:203
↓ 3 callers
Method
set_up
(&mut self, button: T)
src/input.rs:211
↓ 3 callers
Method
texture
(&self)
src/graphics/text.rs:115
↓ 2 callers
Function
asset_path
(path: &str)
src/fs.rs:11
↓ 2 callers
Method
bind
(&self, gfx: &Graphics)
src/graphics.rs:271
↓ 2 callers
Method
cap_accumulated_time
(&mut self)
src/time.rs:73
↓ 2 callers
Method
event
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 callers
Method
into_owned
(self)
src/graphics/text.rs:150
↓ 2 callers
Function
read
(path: &str)
src/fs.rs:15
↓ 2 callers
Method
set_region
(&self, x: i32, y: i32, width: i32, height: i32, data: &[u8])
src/graphics/texture.rs:77
↓ 2 callers
Method
size
(&self)
src/graphics/scaling.rs:56
↓ 2 callers
Method
to_axes
(&self)
src/input/gamepad.rs:127
↓ 1 callers
Function
base_path
()
src/fs.rs:4
↓ 1 callers
Method
color
(mut self, color: Color)
src/graphics/batch.rs:33
↓ 1 callers
Method
consume_time
(&mut self)
src/time.rs:47
↓ 1 callers
Method
draw
(&mut self, _app: &mut App)
src/app.rs:19
↓ 1 callers
Method
find_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 callers
Function
fit_canvas_to_window
(canvas: &Canvas, window: &Window)
src/graphics/scaling.rs:61
↓ 1 callers
Method
glyph
(&self, ch: char)
src/graphics/text.rs:119
↓ 1 callers
Method
handle_events
(&mut self, event_handler: &mut impl EventHandler)
src/app.rs:68
↓ 1 callers
Method
into_texture
Consumes the packer, returning the generated texture.
src/graphics/packer.rs:30
↓ 1 callers
Method
is_gamepad_button_down
(&self, player: usize, button: GamepadButton)
src/input.rs:143
↓ 1 callers
Method
is_key_down
(&self, key: Key)
src/input.rs:107
↓ 1 callers
Method
is_key_pressed
(&self, key: Key)
src/input.rs:115
↓ 1 callers
Method
is_mouse_button_down
(&self, button: MouseButton)
src/input.rs:123
↓ 1 callers
Method
kerning
(&self, a: char, b: char)
src/graphics/text.rs:127
↓ 1 callers
Method
line_height
(&self)
src/graphics/text.rs:123
↓ 1 callers
Method
load_gl
(&self)
src/window.rs:94
↓ 1 callers
Method
next_event
(&mut self)
src/window.rs:106
↓ 1 callers
Method
present
(&mut self)
src/window.rs:120
↓ 1 callers
Function
read_to_string
(path: &str)
src/fs.rs:21
↓ 1 callers
Method
reset
(&mut self)
src/time.rs:42
↓ 1 callers
Method
run
(&mut self, event_handler: &mut impl EventHandler)
src/app.rs:48
↓ 1 callers
Method
scale
(&self)
src/graphics/scaling.rs:44
↓ 1 callers
Method
set_indices
(&self, data: &[u32])
src/graphics/mesh.rs:40
↓ 1 callers
Method
set_title
(&mut self, title: &str)
src/window.rs:131
↓ 1 callers
Method
set_value
(&mut self, player: usize, axis: GamepadAxis, value: f32)
src/input.rs:257
↓ 1 callers
Method
set_vertices
(&self, data: &[Vertex])
src/graphics/mesh.rs:36
↓ 1 callers
Method
size
(&self)
src/graphics.rs:279
↓ 1 callers
Method
text_segments
( &mut self, font: &SpriteFont, position: Vec2, text: &[TextSegment<'_>],
src/graphics/batch.rs:221
↓ 1 callers
Method
texture
(&mut self, texture: &Texture, position: Vec2, params: DrawParams)
src/graphics/batch.rs:167
↓ 1 callers
Method
texture_region
( &mut self, texture: &Texture, position: Vec2, src: Rectangle, params
src/graphics/batch.rs:181
↓ 1 callers
Method
tick_until_update_ready
(&mut self)
src/time.rs:29
↓ 1 callers
Method
update
(&mut self, _app: &mut App)
src/app.rs:18
Method
alpha
TODO: Not sure if this is the best API
src/graphics/color.rs:51
Method
as_irectangle
(&self)
src/graphics/rectangle.rs:117
Method
as_rectangle
(&self)
src/graphics/rectangle.rs:130
Method
bind
(&self, gfx: &Graphics)
src/graphics/scaling.rs:52
Method
blend_factor
(&self)
src/time.rs:61
Method
clear
(&self, target: &impl Target, color: Color)
src/graphics.rs:82
Method
color
(mut self, color: Color)
src/graphics/text.rs:145
Method
delta
(&self)
src/time.rs:57
Function
deserialize_ldtk_flags
(de: D)
src/ldtk.rs:224
Function
deserialize_ldtk_point
(de: D)
src/ldtk.rs:215
Method
draw
(&self, pass: RenderPass<'_, T>)
src/graphics.rs:94
Method
draw
(&mut self, batch: &mut Batcher, target: &Window)
src/graphics/scaling.rs:25
Method
draw
(&mut self, target: &impl Target)
src/graphics/batch.rs:119
Method
draw
(&mut self, app: &mut App)
examples/bunnymark.rs:128
Method
drop
(&mut self)
src/window.rs:153
Method
drop
(&mut self)
src/graphics/texture.rs:180
Method
drop
(&mut self)
src/graphics/shader.rs:116
Method
drop
(&mut self)
src/graphics/mesh.rs:111
Method
drop
(&mut self)
src/graphics/canvas.rs:76
Method
drop
(&mut self)
src/input/gamepad.rs:47
Method
empty
(gfx: &Graphics, width: i32, height: i32)
src/graphics/texture.rs:51
Method
eq
(&self, other: &Self)
src/graphics/texture.rs:83
Method
eq
(&self, other: &Self)
src/input/gamepad.rs:25
Method
event
(&mut self, event: &Event)
src/input.rs:43
Method
flip_x
(mut self, flip: bool)
src/graphics/batch.rs:53
Method
flip_y
(mut self, flip: bool)
src/graphics/batch.rs:58
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/input/gamepad.rs:31
Method
from_data
(data: &[u8])
src/graphics/text.rs:23
Method
from_data
(gfx: &Graphics, width: i32, height: i32, data: &[u8])
src/graphics/texture.rs:45
Method
from_file
(path: impl AsRef<Path>)
src/ldtk.rs:14
Method
from_file
(path: &str)
src/graphics/text.rs:18
Method
from_file
(gfx: &Graphics, path: &str, premultiply: bool)
src/graphics/texture.rs:15
Method
from_raw
(raw: i32)
src/input/mouse.rs:13
Method
from_raw
(event: &SDL_Event)
src/input/event.rs:55
Method
from_raw
(id: SDL_JoystickID)
src/input/gamepad.rs:16
Method
from_str
(gfx: &Graphics, vertex_src: &str, fragment_src: &str)
src/graphics/shader.rs:48
Method
gamepad_axis
(&self, player: usize, axis: GamepadAxis)
src/input.rs:159
Method
gamepad_stick
(&self, player: usize, stick: GamepadStick)
src/input.rs:167
Method
get_enum_tag
(&self, id: &str)
src/ldtk.rs:53
next →
1–100 of 163, ranked by callers