* make `pixels::Color` have a stable representation (`repr(C)`)
this allows for faster code and is also needed for SDL_RenderGeometry
* add binding for SDL_RenderGeometryRaw
* add example of advanced use of `Canvas::render_geometry`
* update unsafe trait docs to include a needed guarantee
and refer to one doc comment instead of duplicating similar ones
* rework almost everything
- the macro was very hard to get sound, auto deref has to be prevented somehow
- the unsafe traits could not be implemented for types defined in other crates
the unsafety must be kept simple, users now only need to provide the
right offsets, which core::mem::offset_of does
update example
* add convenience impls for &Vec<_> to VertexIndices
* update example to use 2 ways of using render_geometry_raw, and use render_geometry
* mention alignment in safety comments in render_geometry example
* fix and improve docs
* update changelog
Something happened that broke the `vcpkg.exe install` invocation for
sdl2 on Windows when using github actions with `windows-latest`.
I have not been able to determine what is actually causing the break,
however updating to a more recent version of vcpkg seems to have fixed
the issue, so that is what is proposed here.
The commit selected is current top of tree.
Original report: https://github.com/mcgoo/cargo-vcpkg/issues/9
vcpkg has been updated to fix the link ordering of the brotli libraries.
This means that vcpkg rev can now point at upstream again. Version
a267ab1 is current HEAD.
* Remove WindowWrapper since wgpu now uses raw-window-handle correctly
on OSX which also lets us remove the objc dependency
* Add futures dependency to handle parts of the wgpu API that are now
asynchronous
* Flip y coords in vertex shader to keep triangle oriented the same way
since wgpu flipped their y-axis
* Fix various other errors resulting from breaking API changes in wgpu