https://github.com/stereokit/stereokit.desktopmirror
A small library for duplicating your desktop window within a StereoKit application on Windows.
https://github.com/stereokit/stereokit.desktopmirror
Last synced: 4 months ago
JSON representation
A small library for duplicating your desktop window within a StereoKit application on Windows.
- Host: GitHub
- URL: https://github.com/stereokit/stereokit.desktopmirror
- Owner: StereoKit
- License: mit
- Created: 2024-05-24T05:35:13.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-22T00:05:01.000Z (over 1 year ago)
- Last Synced: 2025-02-22T00:26:43.642Z (over 1 year ago)
- Language: C#
- Size: 47.9 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# StereoKit.DesktopMirror
A small library for duplicating your desktop window within a [StereoKit](https://stereokit.net) application on Windows.
To use this library, you do _not_ need to clone this repository, simply add the StereoKit.DesktopMirror NuGet package to your project! You can do this via Visual Studio's NuGet package manager UI, or via CLI like so:
```bat
dotnet add package StereoKit.DesktopMirror
```
## Usage
To use this functionality in your project, the simplest thing to do is add the `DesktopMirror` `IStepper` once, anytime in your StereoKit project.
```csharp
SK.AddStepper();
```
For more advanced usage, for example if you would like to apply the desktop texture to some other surface in your project, you can use the `DesktopMaterial` directly:
```csharp
DesktopMaterial desktop = new DesktopMaterial();
desktop.Start();
SK.Run(() => {
desktop.Step();
Mesh.Cube.Draw(desktop.Material, Matrix.TS(0,0,-0.5f, 0.2f));
});
```
## Contributing
If you wish to contribute changes or improvements to DesktopMirror, you can clone and modify the package source at https://github.com/StereoKit/StereoKit.DesktopMirror.