Egodystonic.TinyFFR
0.8.1
dotnet add package Egodystonic.TinyFFR --version 0.8.1
NuGet\Install-Package Egodystonic.TinyFFR -Version 0.8.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Egodystonic.TinyFFR" Version="0.8.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Egodystonic.TinyFFR" Version="0.8.1" />
<PackageReference Include="Egodystonic.TinyFFR" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Egodystonic.TinyFFR --version 0.8.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Egodystonic.TinyFFR, 0.8.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Egodystonic.TinyFFR@0.8.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Egodystonic.TinyFFR&version=0.8.1
#tool nuget:?package=Egodystonic.TinyFFR&version=0.8.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
TinyFFR
A Tiny Fixed Function Rendering library for C#/.NET 9+.
- Delivered via NuGet
- Supports Windows, MacOS (Apple Silicon only), Linux (Debian/Ubuntu)
- Standalone or integrated with WPF, Avalonia, Winforms
- Free for commercial and non-commercial use (see license)
- Physically-based rendering (via filament)
- Asset loading (via assimp and stb_image)
- Window management and input handling (via SDL)
- Fully-abstracted math & geometry API - no pre-existing 3D or linear algebra knowledge required
- Zero-GC design
Manual
Manual is available at tinyffr.dev.
Repository / Discussion
For full source code and/or to report issues and ask questions, please visit TinyFFR's Github.
Hello Cube
// Tutorial: https://tinyffr.dev/tutorials/hello_cube/
using Egodystonic.TinyFFR;
using Egodystonic.TinyFFR.Factory.Local;
using Egodystonic.TinyFFR.Environment.Input;
using var factory = new LocalTinyFfrFactory();
using var cubeMesh = factory.MeshBuilder.CreateMesh(Cuboid.UnitCube);
using var cubeMaterial = factory.MaterialBuilder.CreateTestMaterial();
using var cube = factory.ObjectBuilder.CreateModelInstance(cubeMesh, cubeMaterial, initialPosition: (0f, 0f, 1.5f));
using var light = factory.LightBuilder.CreatePointLight(Location.Origin);
using var scene = factory.SceneBuilder.CreateScene();
scene.Add(cube);
scene.Add(light);
using var window = factory.WindowBuilder.CreateWindow(factory.DisplayDiscoverer.Primary!.Value);
using var camera = factory.CameraBuilder.CreateCamera(initialPosition: Location.Origin, initialViewDirection: Direction.Forward);
using var renderer = factory.RendererBuilder.CreateRenderer(scene, camera, window);
using var loop = factory.ApplicationLoopBuilder.CreateLoop(60);
while (!loop.Input.UserQuitRequested) {
var deltaTime = loop.IterateOnce().AsDeltaTime();
if (loop.Input.KeyboardAndMouse.KeyIsCurrentlyDown(KeyboardOrMouseKey.Space)) cube.RotateBy(90f % Direction.Down * deltaTime);
renderer.Render();
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- No dependencies.
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Egodystonic.TinyFFR:
| Package | Downloads |
|---|---|
|
Egodystonic.TinyFFR.Avalonia
A Tiny Fixed Function Rendering library for C#. Avalonia integration package. |
|
|
Egodystonic.TinyFFR.Wpf
A Tiny Fixed Function Rendering library for C#. WPF integration package. |
|
|
Egodystonic.TinyFFR.WinForms
A Tiny Fixed Function Rendering library for C#. Windows forms integration package. |
GitHub repositories
This package is not used by any popular GitHub repositories.