Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/animated_mesh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ fn main() {
}

fn sketch() -> error::Result<()> {
let mut glfw_ctx = GlfwContext::new(600, 600)?;
let mut glfw_ctx = GlfwContext::new(600, 600, false)?;
init(Config::default())?;

let width = 600;
let height = 600;
let surface = glfw_ctx.create_surface(width, height)?;
let surface = glfw_ctx.create_surface(width, height, false)?;
let graphics = graphics_create(surface, width, height, TextureFormat::Rgba16Float)?;

let grid_size = 20;
Expand Down
4 changes: 2 additions & 2 deletions examples/background_image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ fn main() {
}

fn sketch() -> error::Result<()> {
let mut glfw_ctx = GlfwContext::new(400, 400)?;
let mut glfw_ctx = GlfwContext::new(400, 400, false)?;
init(Config::default())?;

let width = 400;
let height = 400;
let surface = glfw_ctx.create_surface(width, height)?;
let surface = glfw_ctx.create_surface(width, height, false)?;
let graphics = graphics_create(surface, width, height, TextureFormat::Rgba16Float)?;
let image = image_load("images/logo.png")?;

Expand Down
4 changes: 2 additions & 2 deletions examples/blend_modes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ fn main() {
fn sketch() -> error::Result<()> {
let width = 500;
let height = 500;
let mut glfw_ctx = GlfwContext::new(width, height)?;
let mut glfw_ctx = GlfwContext::new(width, height, false)?;
init(Config::default())?;

let surface = glfw_ctx.create_surface(width, height)?;
let surface = glfw_ctx.create_surface(width, height, false)?;
let graphics = graphics_create(surface, width, height, TextureFormat::Rgba16Float)?;

let mut index: usize = 0;
Expand Down
4 changes: 2 additions & 2 deletions examples/box.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ fn main() {
}

fn sketch() -> error::Result<()> {
let mut glfw_ctx = GlfwContext::new(400, 400)?;
let mut glfw_ctx = GlfwContext::new(400, 400, false)?;
init(Config::default())?;

let width = 400;
let height = 400;
let surface = glfw_ctx.create_surface(width, height)?;
let surface = glfw_ctx.create_surface(width, height, false)?;
let graphics = graphics_create(surface, width, height, TextureFormat::Rgba16Float)?;
let box_geo = geometry_box(100.0, 100.0, 100.0)?;

Expand Down
4 changes: 2 additions & 2 deletions examples/camera_controllers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ fn main() {
fn sketch() -> error::Result<()> {
let width = 800;
let height = 600;
let mut glfw_ctx = GlfwContext::new(width, height)?;
let mut glfw_ctx = GlfwContext::new(width, height, false)?;
init(Config::default())?;

let surface = glfw_ctx.create_surface(width, height)?;
let surface = glfw_ctx.create_surface(width, height, false)?;
let graphics = graphics_create(surface, width, height, TextureFormat::Rgba16Float)?;
let box_geo = geometry_box(100.0, 100.0, 100.0)?;

Expand Down
4 changes: 2 additions & 2 deletions examples/curves.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ fn main() {
}

fn sketch() -> error::Result<()> {
let mut glfw_ctx = GlfwContext::new(800, 400)?;
let mut glfw_ctx = GlfwContext::new(800, 400, false)?;
init(Config::default())?;

let surface = glfw_ctx.create_surface(800, 400)?;
let surface = glfw_ctx.create_surface(800, 400, false)?;
let graphics = graphics_create(surface, 800, 400, TextureFormat::Rgba16Float)?;

let mut t: f32 = 0.0;
Expand Down
4 changes: 2 additions & 2 deletions examples/custom_attribute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ fn main() {
}

fn sketch() -> error::Result<()> {
let mut glfw_ctx = GlfwContext::new(600, 600)?;
let mut glfw_ctx = GlfwContext::new(600, 600, false)?;
init(Config::default())?;

let width = 600;
let height = 600;
let surface = glfw_ctx.create_surface(width, height)?;
let surface = glfw_ctx.create_surface(width, height, false)?;
let graphics = graphics_create(surface, width, height, TextureFormat::Rgba16Float)?;

let custom_attr = geometry_attribute_create("Custom", AttributeFormat::Float)?;
Expand Down
4 changes: 2 additions & 2 deletions examples/custom_material.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ fn main() {
fn sketch() -> error::Result<()> {
let width = 400;
let height = 400;
let mut glfw_ctx = GlfwContext::new(width, height)?;
let mut glfw_ctx = GlfwContext::new(width, height, false)?;
init(Config::default())?;

let surface = glfw_ctx.create_surface(width, height)?;
let surface = glfw_ctx.create_surface(width, height, false)?;
let graphics = graphics_create(surface, width, height, TextureFormat::Rgba16Float)?;
let box_geo = geometry_box(100.0, 100.0, 100.0)?;

Expand Down
4 changes: 2 additions & 2 deletions examples/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ fn main() {
}

fn sketch() -> error::Result<()> {
let mut glfw_ctx = GlfwContext::new(400, 400)?;
let mut glfw_ctx = GlfwContext::new(400, 400, false)?;
init(Config::default())?;

let surface = glfw_ctx.create_surface(400, 400)?;
let surface = glfw_ctx.create_surface(400, 400, false)?;
let graphics = graphics_create(surface, 400, 400, TextureFormat::Rgba16Float)?;

let palette = [
Expand Down
4 changes: 2 additions & 2 deletions examples/gltf_load.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ fn main() {
fn sketch() -> error::Result<()> {
let width = 800;
let height = 600;
let mut glfw_ctx = GlfwContext::new(width, height)?;
let mut glfw_ctx = GlfwContext::new(width, height, false)?;
init(Config::default())?;

let surface = glfw_ctx.create_surface(width, height)?;
let surface = glfw_ctx.create_surface(width, height, false)?;
let graphics = graphics_create(surface, width, height, TextureFormat::Rgba16Float)?;

let gltf = gltf_load(graphics, "gltf/Duck.glb")?;
Expand Down
4 changes: 2 additions & 2 deletions examples/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ fn main() {
fn sketch() -> error::Result<()> {
let width = 400;
let height = 400;
let mut glfw_ctx = GlfwContext::new(width, height)?;
let mut glfw_ctx = GlfwContext::new(width, height, false)?;
init(Config::default())?;

let surface = glfw_ctx.create_surface(width, height)?;
let surface = glfw_ctx.create_surface(width, height, false)?;
let graphics = graphics_create(surface, width, height, TextureFormat::Rgba16Float)?;

while glfw_ctx.poll_events() {
Expand Down
4 changes: 2 additions & 2 deletions examples/lights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ fn main() {
}

fn sketch() -> error::Result<()> {
let mut glfw_ctx = GlfwContext::new(400, 400)?;
let mut glfw_ctx = GlfwContext::new(400, 400, false)?;
init(Config::default())?;

let width = 400;
let height = 400;
let surface = glfw_ctx.create_surface(width, height)?;
let surface = glfw_ctx.create_surface(width, height, false)?;
let graphics = graphics_create(surface, width, height, TextureFormat::Rgba16Float)?;
let box_geo = geometry_box(100.0, 100.0, 100.0)?;
let pbr_mat = material_create_pbr()?;
Expand Down
4 changes: 2 additions & 2 deletions examples/materials.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ fn main() {
fn sketch() -> error::Result<()> {
let width = 800;
let height = 600;
let mut glfw_ctx = GlfwContext::new(width, height)?;
let mut glfw_ctx = GlfwContext::new(width, height, false)?;
init(Config::default())?;

let surface = glfw_ctx.create_surface(width, height)?;
let surface = glfw_ctx.create_surface(width, height, false)?;
let graphics = graphics_create(surface, width, height, TextureFormat::Rgba16Float)?;
let sphere = geometry_sphere(30.0, 32, 18)?;

Expand Down
4 changes: 2 additions & 2 deletions examples/midi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ fn main() {
}

fn sketch() -> error::Result<()> {
let mut glfw_ctx = GlfwContext::new(WIDTH, HEIGHT)?;
let mut glfw_ctx = GlfwContext::new(WIDTH, HEIGHT, false)?;
init(Config::default())?;

let surface = glfw_ctx.create_surface(WIDTH, HEIGHT)?;
let surface = glfw_ctx.create_surface(WIDTH, HEIGHT, false)?;
let graphics = graphics_create(surface, WIDTH, HEIGHT, TextureFormat::Rgba16Float)?;

midi_refresh_ports()?;
Expand Down
4 changes: 2 additions & 2 deletions examples/particles_animated.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ fn main() {
}

fn sketch() -> error::Result<()> {
let mut glfw_ctx = GlfwContext::new(900, 700)?;
let mut glfw_ctx = GlfwContext::new(900, 700, false)?;
init(Config::default())?;

let surface = glfw_ctx.create_surface(900, 700)?;
let surface = glfw_ctx.create_surface(900, 700, false)?;
let graphics = graphics_create(surface, 900, 700, TextureFormat::Rgba16Float)?;

graphics_mode_3d(graphics)?;
Expand Down
4 changes: 2 additions & 2 deletions examples/particles_basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ fn main() {
}

fn sketch() -> error::Result<()> {
let mut glfw_ctx = GlfwContext::new(900, 700)?;
let mut glfw_ctx = GlfwContext::new(900, 700, false)?;
init(Config::default())?;

let surface = glfw_ctx.create_surface(900, 700)?;
let surface = glfw_ctx.create_surface(900, 700, false)?;
let graphics = graphics_create(surface, 900, 700, TextureFormat::Rgba16Float)?;

graphics_mode_3d(graphics)?;
Expand Down
4 changes: 2 additions & 2 deletions examples/particles_colored.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ fn main() {
}

fn sketch() -> error::Result<()> {
let mut glfw_ctx = GlfwContext::new(900, 700)?;
let mut glfw_ctx = GlfwContext::new(900, 700, false)?;
init(Config::default())?;

let surface = glfw_ctx.create_surface(900, 700)?;
let surface = glfw_ctx.create_surface(900, 700, false)?;
let graphics = graphics_create(surface, 900, 700, TextureFormat::Rgba16Float)?;

graphics_mode_3d(graphics)?;
Expand Down
4 changes: 2 additions & 2 deletions examples/particles_colored_pbr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ fn main() {
}

fn sketch() -> error::Result<()> {
let mut glfw_ctx = GlfwContext::new(900, 700)?;
let mut glfw_ctx = GlfwContext::new(900, 700, false)?;
init(Config::default())?;

let surface = glfw_ctx.create_surface(900, 700)?;
let surface = glfw_ctx.create_surface(900, 700, false)?;
let graphics = graphics_create(surface, 900, 700, TextureFormat::Rgba16Float)?;

graphics_mode_3d(graphics)?;
Expand Down
4 changes: 2 additions & 2 deletions examples/particles_emit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ fn main() {
}

fn sketch() -> error::Result<()> {
let mut glfw_ctx = GlfwContext::new(900, 700)?;
let mut glfw_ctx = GlfwContext::new(900, 700, false)?;
init(Config::default())?;

let surface = glfw_ctx.create_surface(900, 700)?;
let surface = glfw_ctx.create_surface(900, 700, false)?;
let graphics = graphics_create(surface, 900, 700, TextureFormat::Rgba16Float)?;

graphics_mode_3d(graphics)?;
Expand Down
4 changes: 2 additions & 2 deletions examples/particles_emit_gpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ fn main() {
}

fn sketch() -> error::Result<()> {
let mut glfw_ctx = GlfwContext::new(900, 700)?;
let mut glfw_ctx = GlfwContext::new(900, 700, false)?;
init(Config::default())?;

let surface = glfw_ctx.create_surface(900, 700)?;
let surface = glfw_ctx.create_surface(900, 700, false)?;
let graphics = graphics_create(surface, 900, 700, TextureFormat::Rgba16Float)?;

graphics_mode_3d(graphics)?;
Expand Down
4 changes: 2 additions & 2 deletions examples/particles_from_mesh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ fn main() {
}

fn sketch() -> error::Result<()> {
let mut glfw_ctx = GlfwContext::new(900, 700)?;
let mut glfw_ctx = GlfwContext::new(900, 700, false)?;
init(Config::default())?;

let surface = glfw_ctx.create_surface(900, 700)?;
let surface = glfw_ctx.create_surface(900, 700, false)?;
let graphics = graphics_create(surface, 900, 700, TextureFormat::Rgba16Float)?;

graphics_mode_3d(graphics)?;
Expand Down
4 changes: 2 additions & 2 deletions examples/particles_lifecycle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ fn main() {
}

fn sketch() -> error::Result<()> {
let mut glfw_ctx = GlfwContext::new(900, 700)?;
let mut glfw_ctx = GlfwContext::new(900, 700, false)?;
init(Config::default())?;

let surface = glfw_ctx.create_surface(900, 700)?;
let surface = glfw_ctx.create_surface(900, 700, false)?;
let graphics = graphics_create(surface, 900, 700, TextureFormat::Rgba16Float)?;

graphics_mode_3d(graphics)?;
Expand Down
4 changes: 2 additions & 2 deletions examples/particles_noise.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ fn main() {
}

fn sketch() -> error::Result<()> {
let mut glfw_ctx = GlfwContext::new(900, 700)?;
let mut glfw_ctx = GlfwContext::new(900, 700, false)?;
init(Config::default())?;

let surface = glfw_ctx.create_surface(900, 700)?;
let surface = glfw_ctx.create_surface(900, 700, false)?;
let graphics = graphics_create(surface, 900, 700, TextureFormat::Rgba16Float)?;

graphics_mode_3d(graphics)?;
Expand Down
4 changes: 2 additions & 2 deletions examples/particles_oriented.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ fn main() {
}

fn sketch() -> error::Result<()> {
let mut glfw_ctx = GlfwContext::new(900, 700)?;
let mut glfw_ctx = GlfwContext::new(900, 700, false)?;
init(Config::default())?;

let surface = glfw_ctx.create_surface(900, 700)?;
let surface = glfw_ctx.create_surface(900, 700, false)?;
let graphics = graphics_create(surface, 900, 700, TextureFormat::Rgba16Float)?;

graphics_mode_3d(graphics)?;
Expand Down
4 changes: 2 additions & 2 deletions examples/particles_scatter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ fn main() {
}

fn sketch() -> error::Result<()> {
let mut glfw_ctx = GlfwContext::new(900, 700)?;
let mut glfw_ctx = GlfwContext::new(900, 700, false)?;
init(Config::default())?;

let surface = glfw_ctx.create_surface(900, 700)?;
let surface = glfw_ctx.create_surface(900, 700, false)?;
let graphics = graphics_create(surface, 900, 700, TextureFormat::Rgba16Float)?;

graphics_mode_3d(graphics)?;
Expand Down
4 changes: 2 additions & 2 deletions examples/particles_scatter_volume.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ fn main() {
}

fn sketch() -> error::Result<()> {
let mut glfw_ctx = GlfwContext::new(600, 400)?;
let mut glfw_ctx = GlfwContext::new(600, 400, false)?;
init(Config::default())?;

let surface = glfw_ctx.create_surface(900, 700)?;
let surface = glfw_ctx.create_surface(900, 700, false)?;
let graphics = graphics_create(surface, 900, 700, TextureFormat::Rgba16Float)?;

graphics_mode_3d(graphics)?;
Expand Down
4 changes: 2 additions & 2 deletions examples/particles_stress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ fn hash_unit(seed: u32) -> f32 {
}

fn sketch() -> error::Result<()> {
let mut glfw_ctx = GlfwContext::new(900, 700)?;
let mut glfw_ctx = GlfwContext::new(900, 700, false)?;
init(Config::default())?;

let surface = glfw_ctx.create_surface(900, 700)?;
let surface = glfw_ctx.create_surface(900, 700, false)?;
let graphics = graphics_create(surface, 900, 700, TextureFormat::Rgba16Float)?;

graphics_mode_3d(graphics)?;
Expand Down
4 changes: 2 additions & 2 deletions examples/particles_text_whirl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,10 @@ fn main() {
}

fn sketch() -> error::Result<()> {
let mut glfw_ctx = GlfwContext::new(1200, 800)?;
let mut glfw_ctx = GlfwContext::new(1200, 800, false)?;
init(Config::default())?;

let surface = glfw_ctx.create_surface(1200, 800)?;
let surface = glfw_ctx.create_surface(1200, 800, false)?;
let graphics = graphics_create(surface, 1200, 800, TextureFormat::Rgba16Float)?;

graphics_mode_3d(graphics)?;
Expand Down
4 changes: 2 additions & 2 deletions examples/pbr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ fn main() {
fn sketch() -> error::Result<()> {
let width = 800;
let height = 600;
let mut glfw_ctx = GlfwContext::new(width, height)?;
let mut glfw_ctx = GlfwContext::new(width, height, false)?;
init(Config::default())?;

let surface = glfw_ctx.create_surface(width, height)?;
let surface = glfw_ctx.create_surface(width, height, false)?;
let graphics = graphics_create(surface, width, height, TextureFormat::Rgba16Float)?;

graphics_mode_3d(graphics)?;
Expand Down
4 changes: 2 additions & 2 deletions examples/primitives_2d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ fn main() {
}

fn sketch() -> error::Result<()> {
let mut glfw_ctx = GlfwContext::new(600, 600)?;
let mut glfw_ctx = GlfwContext::new(600, 600, false)?;
init(Config::default())?;

let surface = glfw_ctx.create_surface(600, 600)?;
let surface = glfw_ctx.create_surface(600, 600, false)?;
let graphics = graphics_create(surface, 600, 600, TextureFormat::Rgba16Float)?;

let mut t: f32 = 0.0;
Expand Down
Loading