Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ousttrue/rectray
Gizmo Library to Project Ray to Rectangle
https://github.com/ousttrue/rectray
Last synced: about 19 hours ago
JSON representation
Gizmo Library to Project Ray to Rectangle
- Host: GitHub
- URL: https://github.com/ousttrue/rectray
- Owner: ousttrue
- License: mit
- Created: 2023-07-22T16:34:02.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-07-27T02:05:48.000Z (over 1 year ago)
- Last Synced: 2024-10-13T18:06:54.159Z (about 1 month ago)
- Language: C
- Homepage: https://ousttrue.github.io/RectRay/
- Size: 1.98 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RectRay
Gizmo Library to Project Ray to Rectangle
## dependencies
- DirectXMath
## TODO
- Camera
- view matrix
- projection matrix
- fovY
- near, far
- viewport(aspect ratio)
- world position
- Mouse
- cursor x, y
- button left, right, middle
- wheel
- Ray
- ray triangle test
- Gizmo
- Translate
- Rotate
- Scale## build
### Desktop
```
> meson setup builddir --prefix $(pwd)/prefix
> meson install -C builddir
```### Emscripten
```
setup emscripten
> source ~/emsdk/emsdk_env.sh> meson setup builddir_em
> meson compile -C builddir_em# created:
# rectray_glfw_imgui.wasm
# rectray_glfw_imgui.js
# rectray_glfw_imgui.html> cd builddir_em/examples/glfw_imgui
> python3 -m http.server 8000
# open webbrowser: `rectray_glfw_imgui.html`
```