Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/casey/pxl
/ functions
Functions
76 in github.com/casey/pxl
⨍
Functions
76
◇
Types & classes
24
↓ 4 callers
Function
tempdir
()
pxl-build/src/module.rs:142
↓ 3 callers
Method
compile_program
( &mut self, vertex_shader_source: &str, fragment_shader_source: &str, )
pxl/src/runtime/shader_cache.rs:18
↓ 3 callers
Method
run
(mut self)
pxl/src/runtime/mod.rs:114
↓ 2 callers
Function
mono
(white: bool)
pxl-mono/src/main.rs:39
↓ 2 callers
Method
resolution
(&self)
pxl/examples/life.rs:125
↓ 2 callers
Method
title
Return the title of the program Called by the runtime to set the window title
pxl/src/lib.rs:224
↓ 1 callers
Function
build
Compile the resources in `resource_directory` into `$OUT_DIR/resources.rs` for inclusion in a `pxl` program.
pxl-build/src/lib.rs:58
↓ 1 callers
Method
compile_fragment_shader
(&mut self, shader_source: &str)
pxl/src/runtime/shader_cache.rs:106
↓ 1 callers
Method
compile_vertex_shader
(&mut self, shader_source: &str)
pxl/src/runtime/shader_cache.rs:98
↓ 1 callers
Method
cycle
(self)
pxl-mono/src/main.rs:167
↓ 1 callers
Method
filter_shaders
Postprocessing filters to be applied after rendering. Filters may read from a texture sampler named "input", which for the first filter will contain
pxl/src/lib.rs:217
↓ 1 callers
Method
fragment_shader
Return the fragment shader to be used in the runtime's rendering pipeline Will be called immediately before calling `render()` See `fragment_shader.
pxl/src/lib.rs:204
↓ 1 callers
Method
index
(&self, x: usize, y: usize)
pxl/examples/life.rs:63
↓ 1 callers
Method
neighbors
(&self, i: usize)
pxl/examples/life.rs:67
↓ 1 callers
Method
play
(self)
pxl/src/runtime/speaker.rs:57
↓ 1 callers
Method
present
( &mut self, pixels: &[Pixel], resolution: (usize, usize), window_size: (u32, u32), sample
pxl/src/runtime/display.rs:160
↓ 1 callers
Method
render
Draw to the display Called by the runtime whenever the display is ready to present a new frame WIDTH — first element of the tuple returned by `reso
pxl/src/lib.rs:252
↓ 1 callers
Method
reset
(&mut self)
pxl/examples/life.rs:106
↓ 1 callers
Function
rgba
Construct a pixel with the given components
pxl/src/lib.rs:47
↓ 1 callers
Method
set_shaders
( &mut self, vertex_shader_source: &str, fragment_shader_source: &str, filter_shader_sources:
pxl/src/runtime/display.rs:138
↓ 1 callers
Method
should_quit
Return true if the program should stop running Called by the runtime at the end of every pass through the event loop
pxl/src/lib.rs:231
↓ 1 callers
Method
step
(&mut self)
pxl/examples/life.rs:95
↓ 1 callers
Method
synthesize
Synthesize audio Called by the runtime as needed to fill the outgoing audio buffer `samples_played` — number of samples written by previous calls to
pxl/src/lib.rs:165
↓ 1 callers
Method
synthesizer
The program's synthesizer Will be called by the runtime during initialization. If it returns Some, the contained Synthesizer will be moved to a dedic
pxl/src/lib.rs:263
↓ 1 callers
Method
tick
Process events and update the state of the program. `elapsed` — time elapsed since the last call to tick `tick` `events` — events that have occurred
pxl/src/lib.rs:239
↓ 1 callers
Method
tick
(self, neighbors: u8)
pxl/examples/life.rs:25
↓ 1 callers
Method
tokens
(self)
pxl-build/src/module.rs:105
↓ 1 callers
Method
type_tokens
(&self)
pxl-build/src/resource.rs:59
↓ 1 callers
Method
vertex_shader
Return the vertex shader to be used in the runtime's rendering pipeline Will be called immediately before calling `render()` See `vertex_shader.glsl
pxl/src/lib.rs:193
Function
blob
()
pxl-build/src/module.rs:156
Function
blob
()
pxl-build-test/src/lib.rs:49
Method
compile_shader
( source: &str, ty: GLenum, shader_cache: &mut HashMap<String, GLuint>, )
pxl/src/runtime/shader_cache.rs:114
Method
drop
(&mut self)
pxl/src/runtime/display.rs:295
Method
drop
(&mut self)
pxl/src/runtime/shader_cache.rs:162
Function
empty
()
pxl-build/src/module.rs:147
Method
filter_shaders
(&self)
pxl/examples/life.rs:183
Method
fmt
(&self, f: &mut Formatter)
pxl/src/runtime/error.rs:44
Method
fragment_shader
(&self)
pxl-mono/src/main.rs:215
Method
fragment_shader
(&self)
pxl/examples/life.rs:187
Method
fragment_shader
(&self)
pxl/examples/shaders/main.rs:48
Method
from
(tuple: (io::Error, &'path Path))
pxl-build/src/error.rs:77
Method
from
(creation_error: glutin::CreationError)
pxl/src/runtime/error.rs:32
Method
from_path
(module_path: impl AsRef<Path>)
pxl-build/src/module.rs:19
Method
from_path_and_extension
( path: impl AsRef<Path>, extension: &str, )
pxl-build/src/resource.rs:18
Function
image
()
pxl-build/src/module.rs:178
Function
image
()
pxl-build-test/src/lib.rs:6
Function
main
()
pxl-mono/src/main.rs:271
Function
main
()
pxl-build-test/build.rs:5
Function
main
()
pxl/examples/life.rs:248
Function
main
()
pxl/examples/shaders/main.rs:110
Method
new
()
pxl-mono/src/main.rs:48
Method
new
()
pxl/src/runtime/display.rs:32
Method
new
(program: Box<Program>)
pxl/src/runtime/mod.rs:40
Method
new
( synthesizer: Arc<Mutex<Synthesizer>>, synthesizer_output: Arc<Mutex<Vec<AudioSample>>>, )
pxl/src/runtime/speaker.rs:14
Method
new
()
pxl/src/runtime/shader_cache.rs:10
Method
new
()
pxl/examples/life.rs:115
Method
new
()
pxl/examples/shaders/main.rs:33
Method
render
(self, pixels: &mut [Pixel])
pxl-mono/src/main.rs:171
Method
render
(&mut self, pixels: &mut [Pixel])
pxl/examples/life.rs:159
Method
render
(&mut self, pixels: &mut [Pixel])
pxl/examples/shaders/main.rs:91
Method
resolution
(&self)
pxl-mono/src/main.rs:207
Method
resolution
(&self)
pxl/examples/shaders/main.rs:44
Function
rgb
Construct a pixel with the given RGB components and an alpha component of 1.0
pxl/src/lib.rs:58
Function
run
Run a `pxl::Program`. `run` takes care of instantiating your program, so your program is passed as a type parameter, not as a value. For example, to
pxl/src/lib.rs:315
Function
submodule
()
pxl-build/src/module.rs:206
Method
synthesize
(&mut self, _samples_played: u64, samples: &mut [AudioSample])
pxl-mono/src/main.rs:142
Method
synthesize
(&mut self, mut samples_played: u64, samples: &mut [AudioSample])
pxl/examples/life.rs:46
Method
synthesizer
(&self)
pxl-mono/src/main.rs:262
Method
synthesizer
(&self)
pxl/examples/life.rs:179
Method
tick
(&mut self, _: Duration, events: &[Event])
pxl-mono/src/main.rs:250
Method
tick
(&mut self, _elapsed: Duration, events: &[Event])
pxl/examples/shaders/main.rs:56
Method
title
(&self)
pxl-mono/src/main.rs:211
Method
title
(&self)
pxl/examples/life.rs:129
Method
title
(&self)
pxl/examples/shaders/main.rs:40
Method
tokens
(self)
pxl-build/src/resource.rs:66
Method
vertex_shader
(&self)
pxl/examples/shaders/main.rs:52