mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-16 02:00:51 +00:00
examples(webgl): run rustfmt
This commit is contained in:
parent
0c41c0b432
commit
5a267d109a
@ -57,18 +57,17 @@ pub fn draw() {
|
||||
Some(&vert_array.buffer()),
|
||||
WebGlRenderingContext::STATIC_DRAW,
|
||||
);
|
||||
context.vertex_attrib_pointer_with_i32(0,
|
||||
3,
|
||||
WebGlRenderingContext::FLOAT,
|
||||
false,
|
||||
0,
|
||||
0);
|
||||
context.vertex_attrib_pointer_with_i32(0, 3, WebGlRenderingContext::FLOAT, false, 0, 0);
|
||||
context.enable_vertex_attrib_array(0);
|
||||
|
||||
context.clear_color(0.0, 0.0, 0.0, 1.0);
|
||||
context.clear(WebGlRenderingContext::COLOR_BUFFER_BIT);
|
||||
|
||||
context.draw_arrays(WebGlRenderingContext::TRIANGLES, 0, (vertices.len() / 3) as i32);
|
||||
context.draw_arrays(
|
||||
WebGlRenderingContext::TRIANGLES,
|
||||
0,
|
||||
(vertices.len() / 3) as i32,
|
||||
);
|
||||
}
|
||||
|
||||
pub fn compile_shader(
|
||||
|
Loading…
x
Reference in New Issue
Block a user