mirror of
https://github.com/antopilo/Nuake.git
synced 2026-01-04 22:10:34 +03:00
Depth of field no unit accurate
This commit is contained in:
31
NuakeNet/src/Environment.cs
Normal file
31
NuakeNet/src/Environment.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using Coral.Managed.Interop;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Nuake.Net
|
||||
{
|
||||
public class Environment
|
||||
{
|
||||
internal static unsafe delegate*<float, void> SetFocusDistanceIcall;
|
||||
internal static unsafe delegate*<float> GetFocusDistanceIcall;
|
||||
|
||||
public static void SetFocusDistance(float distance)
|
||||
{
|
||||
unsafe
|
||||
{
|
||||
SetFocusDistanceIcall(distance);
|
||||
}
|
||||
}
|
||||
|
||||
public static float GetFocusDistance()
|
||||
{
|
||||
unsafe
|
||||
{
|
||||
return GetFocusDistanceIcall();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user