Expand description
Many utility structs, enums and functions.
Modules§
Structs§
- Color32
- A 32 bit color struct! This is often directly used by StereoKit data structures, and so is often necessary for setting texture data, or mesh data. Note that the Color type implicitly converts to Color32, so you can use the static methods there to create Color32 values!
- Color128
- A color value stored as 4 floats with values that are generally between 0 and 1! Note that there’s also a Color32 structure, and that 4 floats is generally a lot more than you need. So, use this for calculating individual colors at quality, but maybe store them en-masse with Color32!
- Device
- This class describes the device that is running this application! It contains identifiers, capabilities, and a few adjustable settings here and there. https://stereokit.net/Pages/StereoKit/Device.html
- File
Filter - file extension to filter ie “.txt” “.gltf” https://stereokit.net/Pages/StereoKit/Platform.html
- FovInfo
- TODO: waiting for C# implementation https://stereokit.net/Pages/StereoKit/FovInfo.html
- Gradient
- A Gradient is a sparse collection of color keys that are used to represent a ramp of colors! This class is largely just storing colors and allowing you to sample between them.
- Gradient
Key - A color/position pair for Gradient values! https://stereokit.net/Pages/StereoKit/GradientKey.html
- Hash
- This class contains some tools for hashing data within StereoKit! Certain systems in StereoKit use string hashes instead of full strings for faster search and compare, like UI and Materials, so this class gives access to the code SK uses for hashing. StereoKit currently internally uses a 64 bit FNV hash, though this detail should be pretty transparent to developers
- Platform
- This class provides some platform related code that runs cross-platform. You might be able to do many of these things with rust or C#, but you might not be able to do them in as a portable manner as these methods do! https://stereokit.net/Pages/StereoKit/Platform.html
- SHLight
- A light source used for creating SphericalHarmonics data. https://stereokit.net/Pages/StereoKit/SHLight.html
- Spherical
Harmonics - Spherical Harmonics are kinda like Fourier, but on a sphere. That doesn’t mean terribly much to me, and could be wrong, but check out here for more details about how Spherical Harmonics work in this context!
- Time
- This class contains time information for the current session and frame! https://stereokit.net/Pages/StereoKit/Time.html
- _GradientT
- StereoKit internal type.
Enums§
- Device
Tracking - What type of user motion is the device capable of tracking? For the normal fully capable XR headset, this should be 6dof (rotation and translation), but more limited headsets may be restricted to 3dof (rotation) and flatscreen computers with the simulator off would be none. https://stereokit.net/Pages/StereoKit/DeviceTracking.html
- Display
Type - This describes a type of display hardware! https://stereokit.net/Pages/StereoKit/DisplayType.html
- Picker
Mode - TODO: UNSTABLE: When opening the Platform.FilePicker, this enum describes how the picker should look and behave. https://stereokit.net/Pages/StereoKit/PickerMode.html
Functions§
- color_
hsv ⚠ - color_
lab ⚠ - color_
to_ ⚠gamma - color_
to_ ⚠hsv - color_
to_ ⚠lab - color_
to_ ⚠linear - device_
display_ ⚠get_ blend - device_
display_ ⚠get_ fov - device_
display_ ⚠get_ height - device_
display_ ⚠get_ refresh_ rate - device_
display_ ⚠get_ type - device_
display_ ⚠get_ width - device_
display_ ⚠set_ blend - device_
display_ ⚠valid_ blend - device_
get_ ⚠gpu - device_
get_ ⚠name - device_
get_ ⚠runtime - device_
get_ ⚠tracking - device_
has_ ⚠eye_ gaze - device_
has_ ⚠hand_ tracking - gradient_
add ⚠ - gradient_
count ⚠ - gradient_
create ⚠ - gradient_
create_ ⚠keys - gradient_
destroy ⚠ - gradient_
get ⚠ - gradient_
get32 ⚠ - gradient_
remove ⚠ - gradient_
set ⚠ - hash_
int ⚠ - hash_
int_ ⚠with - hash_
string ⚠ - hash_
string_ ⚠with - platform_
file_ ⚠picker - platform_
file_ ⚠picker_ close - platform_
file_ ⚠picker_ sz - platform_
file_ ⚠picker_ visible - platform_
keyboard_ ⚠get_ force_ fallback - platform_
keyboard_ ⚠set_ force_ fallback - platform_
keyboard_ ⚠set_ layout - platform_
keyboard_ ⚠show - platform_
keyboard_ ⚠visible - platform_
read_ ⚠file - platform_
write_ ⚠file - platform_
write_ ⚠file_ text - sh_add⚠
- sh_
brightness ⚠ - sh_
create ⚠ - sh_
dominant_ ⚠dir - sh_
lookup ⚠ - time_
frame ⚠ - time_
scale ⚠ - time_
set_ ⚠time - time_
step ⚠ - time_
step_ ⚠unscaled - time_
stepf ⚠ - time_
stepf_ ⚠unscaled - time_
total ⚠ - time_
total_ ⚠raw - time_
total_ ⚠unscaled - time_
totalf ⚠ - time_
totalf_ ⚠unscaled
Type Aliases§
- GradientT
- StereoKit ffi type.