OtterFramework 1.0.4
dotnet add package OtterFramework --version 1.0.4
NuGet\Install-Package OtterFramework -Version 1.0.4
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="OtterFramework" Version="1.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OtterFramework" Version="1.0.4" />
<PackageReference Include="OtterFramework" />
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 OtterFramework --version 1.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: OtterFramework, 1.0.4"
#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 OtterFramework@1.0.4
#: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=OtterFramework&version=1.0.4
#tool nuget:?package=OtterFramework&version=1.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Otter Framework
Direct2D/DirectWrite 图形框架,支持毛玻璃和液态玻璃效果。
功能
- 2D 图形渲染(形状、文本、位图)
- 毛玻璃效果(高斯模糊 + 半透明)
- 液态玻璃效果(动态扭曲 + 镜面反射)
- 渐变、变换、裁剪等高级功能
使用方法
#include <Otter/Otter2D.h>
Otter::Graphics2D::Renderer renderer;
renderer.Initialize(hwnd, width, height);
renderer.BeginFrame();
renderer.DrawFrostedGlass(x, y, w, h, 10.0f);
renderer.DrawLiquidGlass(x, y, w, h, 0.5f);
renderer.EndFrame();
依赖
- Direct2D, Direct3D 11, DirectWrite
- nlohmann.json
- Microsoft WIL
- WebView2
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| native | native is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
native 0.0
- Microsoft.Web.WebView2 (>= 1.0.3800.47)
- Microsoft.Windows.ImplementationLibrary (>= 1.0.260126.7)
- nlohmann.json (>= 3.12.0)
- WebView2.Runtime.X64 (>= 145.0.3800.82)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.