stevenarella/src
iceiix 0aa062f4b8
Use glow, GL on Whatever (#262)
Replaces the use of gl_generator with the glow wrapper:

* Add glow dependency, based on glow 0.6.1

* Pin version of glow fork for https://github.com/iceiix/glow/pull/1 until #442 renderbuffer

* Remove gl module, steven_gl

Porting details:
* Initialize glow in src/gl/mod.rs
* Call gl methods on glow context
* glow uses camelcase
* Import glow::HasContext trait, finds draw_elements etc.
* Fix mismatched types, glow uses Option and &str instead of raw pointers
* Fix uniform_location, glow already returns Some(u32)
* uniform_location: convert i32 to u32 for Uniform
* Fix attribute_location
* Fix shader creation Result u32 type 
* Fix passing GLvoid and 2d/3d
* Fix missing Options type mismatches
* Offsets are i32 in glow, not GLvoid
* Fix clear_buffer using _f32_slice
* Delete methods are singular not plural
* glBufferData -> buffer_data_u8_slice
* buffer_sub_data_u8_slice
* Update more glow method wrapper names found by reviewing glow native platform
* Remove unused multi_draw_elements, can be replaced by draw_elements in a loop and it has no WebGL equivalent
* glow implements glMapBufferRange
* Remove unused read_buffer
* glow's deletes automatically pass 1 and take no reference
* shader_source() accepts &str directly; removes last of std::ptr
* Pass uniform Option<u32>
* Fix bool passing normalized parameter
* Fix draw_buffers parameter
* Stop unnecessarily returning context from gl::init
* Getting shader info is unsafe 
* Unwrapping static mut is unsafe
* Use unsafe raw pointers for global mutable context
* Fix initializing GL objects wrappers from glow wrappers
* Unbinding framebuffers uses None
* Uppercase global to fix warning
* Shaders return Some instead of None
* Unbox the context to a raw pointer
* Use tex_image_2d_multisample added in glow fork 
* Implement uniform_location, fixing unwrap None failed
* Add tex_sub_image_3d, using PixelUnpackData::Slice
* set_matrix4: transmute the Matrix4 since it is repr(C)
* get_pixels -> get_tex_image -> glGetTexImage, with PixelPackData::Slice
* Wrap sub_image_2d (glTexSubImage2D) and fix warnings
* Implement set_float_multi_raw and set_matrix4_multi, using from_raw_parts
2020-12-25 10:00:22 -08:00
..
console Add missing default implementations (new_without_default) 2020-06-29 18:42:07 -07:00
ecs Use add(x) instead of offset(x as isize), fixes ptr_offset_with_cast 2020-06-30 18:56:08 -07:00
entity Use += to fix assign_op_pattern 2020-06-30 19:03:59 -07:00
gl Use glow, GL on Whatever (#262) 2020-12-25 10:00:22 -08:00
model Use `matches!` for bool match (clippy match_like_matches_macro) 2020-10-10 16:22:46 -07:00
render Use glow, GL on Whatever (#262) 2020-12-25 10:00:22 -08:00
screen server_list: implement server deletion, fixes #355 (#361) 2020-07-04 17:42:17 -07:00
server 1.16.4 (754) / 1.16.3 (753) / 1.16.2 (751) protocol (#390) 2020-11-24 19:01:57 -08:00
ui Fix unnecessary use of match with if let (single_match) 2020-07-02 17:22:24 -07:00
world 1.16.4 (754) / 1.16.3 (753) / 1.16.2 (751) protocol (#390) 2020-11-24 19:01:57 -08:00
auth.rs Update to use crate:: for current crate, for Rust 2018 edition 2018-11-04 12:06:00 -08:00
chunk_builder.rs Fix redundant clones 2020-06-29 18:48:07 -07:00
main.rs Update to glutin 0.26.0 + winit 0.24.0 (#334) 2020-12-20 08:18:39 -08:00
resources.rs Use more descriptive name to fix blacklisted_name 'bar' (as in foobar) 2020-07-02 17:17:51 -07:00
settings.rs Reformat all source with cargo fmt (#335) 2020-06-21 12:17:24 -07:00