Commit Graph

51 Commits

Author SHA1 Message Date
Patrick Walton 3e64e29fb2 Rename `BuiltSVG` to `SVGScene` 2020-06-24 17:35:43 -07:00
Patrick Walton 794dd55038 Add some implicit conversions between scalars and vectors where appropriate 2020-04-01 17:20:32 -07:00
Patrick Walton 93f5fbc6d2 Add convenience constructors: `vec2f`, `vec2i`, `Vector2F::zero()`,
`Vector2I::zero()`
2020-03-31 11:29:21 -07:00
Patrick Walton 9723fa441b Update `image`, `glutin`, and `jni` crates.
From #277.
2020-03-27 15:49:26 -07:00
Patrick Walton 0f35d9c817 Add an embedded resource loader that places resources directly in the binary.
This is useful for WebGL and for downstream crates.io use.
2020-02-28 17:10:53 -08:00
Adam Nemecek 3d39c5e9b7 trimmed whitespace 2020-02-27 08:13:14 -08:00
Emmanuel Gil Peyrot 6ce416e77c Bump all outdated dependencies
I’m pleasantly surprised that none of these required any (visible) code
change, but tests pass so let’s go with that. :)
2020-02-06 09:39:50 +01:00
Patrick Walton 2db43797c3 Split colors out into their own crate.
A lot of downstream consumers of `pathfinder_gpu` want to use colors without
the path stuff.
2020-01-31 09:17:04 +01:00
Sebastian K e38e2d800f update usvg to 0.8 2019-12-28 11:46:31 +03:00
Patrick Walton bcac119324 Rename `Transform2DF` to `Transform2F` and `Transform3DF` to `Transform4F` 2019-07-11 14:59:10 -07:00
Patrick Walton 431dcf3d2e Rename `pathfinder_geometry::basic` to simply `pathfinder_geometry`, and move
the remaining code in that crate to a new crate, `pathfinder_content`

The old hierarchy was confusing.
2019-06-21 10:06:19 -07:00
Patrick Walton 010bc66073 Upgrade `resvg` to 0.7 2019-06-20 17:13:15 -07:00
Patrick Walton 487577a11b Add Metal support.
This commit substantially reworks the `pathfinder_gpu` API to better support
modern APIs like Metal. It should open the door to `gfx-rs`, `wgpu`, Vulkan,
and D3D12 backends relatively straightforwardly.

A new example, `canvas_metal_minimal`, has been added.

Note that the new Metal shaders require a patched version of `spirv-cross` to
build properly. An upstream patch is forthcoming.
2019-06-20 11:47:22 -07:00
Alan Jeffrey 3c91c1cc97 Better error handling of magicleap demo args 2019-06-07 10:15:34 -05:00
Alan Jeffrey d877ca1d3a Fix the magicleap app to work in LuminOS 0.96 2019-06-06 12:36:32 -05:00
Alan Jeffrey 9c641f6ce3 Renamed Point2D to Vector2 2019-06-03 17:58:34 -05:00
Alan Jeffrey c71a20805f Removed some unused imports 2019-06-03 17:52:18 -05:00
Alan Jeffrey 848234ef61 Updated magicleap demo for new pathfinder API 2019-06-03 17:52:18 -05:00
Alan Jeffrey 3d81bf170f Updated to latest pf3 API 2019-04-22 11:57:24 -05:00
Alan Jeffrey c549bdec7a Explicitly set the linker flavor for the magicleap demo 2019-04-22 11:54:42 -05:00
Josh Matthews 214ad9de72 Replace readme directions with makefile targets. 2019-04-15 14:16:40 -04:00
Josh Matthews 8b3bf7d064 Use linker directly to to avoid linker errors. 2019-04-15 14:16:40 -04:00
Josh Matthews bf55026a71 Add basic travis CI for native and magicleap demos. 2019-04-15 14:16:40 -04:00
Alan Jeffrey 7cd8452ffc Update magicleap README for SDK 0.20.0 2019-04-15 13:29:32 -04:00
Alan Jeffrey f20a023ba7 Rearranged magicleap demo svgs 2019-04-15 13:29:32 -04:00
Alan Jeffrey 6b19234a44 Removed stats from magicleap demo 2019-04-15 13:29:32 -04:00
Alan Jeffrey 24a7801820 The magicleap demo library is a shared library 2019-04-15 13:29:32 -04:00
Alan Jeffrey 3603324437 Added copyright statement to magicleap demo files 2019-04-15 13:29:32 -04:00
Alan Jeffrey 1605a47956 Updated to new PF3 API 2019-04-15 13:29:32 -04:00
Alan Jeffrey 8d5b44140b Magicleap demo is less chatty 2019-04-15 12:43:41 -04:00
Alan Jeffrey bc89d88222 Dead code elimination 2019-04-15 12:43:41 -04:00
Alan Jeffrey 06b5e3330d Get the pathfinder magicleap demo to compile with v0.20.0 of the SDK 2019-04-15 12:43:41 -04:00
Alan Jeffrey 0f0062351d Make pathfinder_immersive_demo a shared library. 2019-04-15 12:43:41 -04:00
Alan Jeffrey 41dc655967 Update for current Window interface 2019-04-15 12:43:41 -04:00
Alan Jeffrey bd70cb0135 Changed some of the magicleap demo SVGs 2019-04-15 12:43:41 -04:00
Alan Jeffrey 1c1eaf20d1 Get the magicleap immersive demo to respond to new file name arguments 2019-04-15 12:43:41 -04:00
Alan Jeffrey 3bd825196e Get the magicleap immersive mode demo to take a filename argument 2019-04-15 12:43:41 -04:00
Alan Jeffrey 6f5a72229c Add focusing to the magicleap demo cube 2019-04-15 12:43:41 -04:00
Alan Jeffrey 9fd479d604 Expose a C API for getting pathfinder to render to an EGL surface 2019-04-15 12:43:41 -04:00
Alan Jeffrey 29ef8b57e0 Use pathfinder directly for magicleap demo cube faces rather than using pathfinder_demo 2019-04-15 12:43:41 -04:00
Alan Jeffrey 685651c119 Wire up magicleap landscape demo cube faces to pathfinder demo 2019-04-15 12:43:41 -04:00
Alan Jeffrey 1aedbec4d7 Get landscape app to respond to clicks 2019-04-15 12:43:41 -04:00
Alan Jeffrey 37c7457929 Add magicleap landscape demo 2019-04-15 12:43:41 -04:00
Alan Jeffrey 8ba56e5597 Pin the scene threads to CPUs 2019-04-15 12:43:41 -04:00
Alan Jeffrey 6642a2ce1e Lerp the initial cameras to get the initial transform 2019-04-15 12:43:41 -04:00
Alan Jeffrey 463ea6519b Move a magic number into a constant declaration 2019-04-15 12:43:41 -04:00
Alan Jeffrey cf6032416c Predict next frame pose 2019-04-15 12:43:41 -04:00
Alan Jeffrey 8de4b952be Change initial camera transform 2019-04-15 12:43:41 -04:00
Alan Jeffrey daeee1305c Set rayon thread pool size to be 2 in magicleap demo 2019-04-15 12:43:41 -04:00
Alan Jeffrey dd0283d848 Reenable jemallocator 2019-04-15 12:43:41 -04:00
Alan Jeffrey 838bf684fb Add magicleap demo 2019-04-15 12:43:41 -04:00