test_init_sk!() { /* proc-macro */ }
Expand description
StereoKit-rust renames this macro to test_init_sk!
.
Initialize sk (and eventually event_loop) for a test.
If you intend to run a main loop, with test_screenshot!(...)
or test_steps!(...)
here some variables you may use:
number_of_steps
- Default is 3, you can change this value before the main loop.token
- the MainThreadToken you need to draw in the main_loop.iter
- The step number in the main_loop. [0..number_of_steps + 2].
If you intend to take a screenshot with test_screenshot!(...)
there is also those variables to change before the
main loop:
width_scr
- width of the screenshot (default is 200)height_scr
- height of the screenshot (default is 200)fov_scr
- fov of the screenshot (default is 99.0)from_scr
- Position of the camera (default is Vec3::Z)at_scr
- Point looked at by the camera (default is Vec3::ZERO)
most of the examples of this doc use this macro.