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" />
                    
Directory.Packages.props
<PackageReference Include="OtterFramework" />
                    
Project file
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
                    
#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
                    
Install as a Cake Addin
#tool nuget:?package=OtterFramework&version=1.0.4
                    
Install as a Cake Tool

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 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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.4 412 3/5/2026
1.0.3 350 3/5/2026
1.0.2 360 3/5/2026
1.0.1 359 3/5/2026