本文整理汇总了C#中OpenTK类的典型用法代码示例。如果您正苦于以下问题:C# OpenTK类的具体用法?C# OpenTK怎么用?C# OpenTK使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
OpenTK类属于命名空间,在下文中一共展示了OpenTK类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: LocalGetSupportingVertexWithoutMargin
public unsafe static OpenTK.Vector3 LocalGetSupportingVertexWithoutMargin(this TriangleMeshShape obj, ref OpenTK.Vector3 vec)
{
fixed (OpenTK.Vector3* vecPtr = &vec)
{
return obj.LocalGetSupportingVertexWithoutMargin(ref *(BulletSharp.Math.Vector3*)vecPtr).ToOpenTK();
}
}
示例2: SetGravity
public unsafe static void SetGravity(this DynamicsWorld obj, ref OpenTK.Vector3 value)
{
fixed (OpenTK.Vector3* valuePtr = &value)
{
obj.Gravity = *(BulletSharp.Math.Vector3*)valuePtr;
}
}
示例3: GetAnchor
public unsafe static void GetAnchor(this Hinge2Constraint obj, out OpenTK.Vector3 value)
{
fixed (OpenTK.Vector3* valuePtr = &value)
{
*(BulletSharp.Math.Vector3*)valuePtr = obj.Anchor;
}
}
示例4: Init
public static void Init(OpenTK.Graphics.IGraphicsContext context, OpenTK.Platform.IWindowInfo wininf)
{
Graphics.context = context;
Graphics.windowInfo = wininf;
init = true;
}
示例5: SetAppliedForceBodyB
public unsafe static void SetAppliedForceBodyB(this JointFeedback obj, ref OpenTK.Vector3 value)
{
fixed (OpenTK.Vector3* valuePtr = &value)
{
obj.AppliedForceBodyB = *(BulletSharp.Math.Vector3*)valuePtr;
}
}
示例6: GetPreferredPenetrationDirection
public unsafe static void GetPreferredPenetrationDirection(this ConvexShape obj, int index, out OpenTK.Vector3 penetrationVector)
{
fixed (OpenTK.Vector3* penetrationVectorPtr = &penetrationVector)
{
obj.GetPreferredPenetrationDirection(index, out *(BulletSharp.Math.Vector3*)penetrationVectorPtr);
}
}
示例7: LocalGetSupportVertexWithoutMarginNonVirtual
public unsafe static OpenTK.Vector3 LocalGetSupportVertexWithoutMarginNonVirtual(this ConvexShape obj, ref OpenTK.Vector3 vec)
{
fixed (OpenTK.Vector3* vecPtr = &vec)
{
return obj.LocalGetSupportVertexWithoutMarginNonVirtual(ref *(BulletSharp.Math.Vector3*)vecPtr).ToOpenTK();
}
}
示例8: OnRenderFrame
public override void OnRenderFrame(OpenTK.FrameEventArgs e)
{
bg.draw(e);
txt.draw(e);
base.OnRenderFrame(e);
}
示例9: GetPivotInB
public unsafe static void GetPivotInB(this Point2PointConstraint obj, out OpenTK.Vector3 value)
{
fixed (OpenTK.Vector3* valuePtr = &value)
{
*(BulletSharp.Math.Vector3*)valuePtr = obj.PivotInB;
}
}
示例10: SetHitPointInWorld
public unsafe static void SetHitPointInWorld(this VehicleRaycasterResult obj, ref OpenTK.Vector3 value)
{
fixed (OpenTK.Vector3* valuePtr = &value)
{
obj.HitPointInWorld = *(BulletSharp.Math.Vector3*)valuePtr;
}
}
示例11: GetHitNormalInWorld
public unsafe static void GetHitNormalInWorld(this VehicleRaycasterResult obj, out OpenTK.Vector3 value)
{
fixed (OpenTK.Vector3* valuePtr = &value)
{
*(BulletSharp.Math.Vector3*)valuePtr = obj.HitNormalInWorld;
}
}
示例12: GetCachedSeparatingAxis
public unsafe static void GetCachedSeparatingAxis(this GjkPairDetector obj, out OpenTK.Vector3 value)
{
fixed (OpenTK.Vector3* valuePtr = &value)
{
*(BulletSharp.Math.Vector3*)valuePtr = obj.CachedSeparatingAxis;
}
}
示例13: SetCachedSeparatingAxis
public unsafe static void SetCachedSeparatingAxis(this GjkPairDetector obj, ref OpenTK.Vector3 seperatingAxis)
{
fixed (OpenTK.Vector3* seperatingAxisPtr = &seperatingAxis)
{
obj.CachedSeparatingAxis = *(BulletSharp.Math.Vector3*)seperatingAxisPtr;
}
}
示例14: GetLocalAabbMax
public unsafe static void GetLocalAabbMax(this TriangleMeshShape obj, out OpenTK.Vector3 value)
{
fixed (OpenTK.Vector3* valuePtr = &value)
{
*(BulletSharp.Math.Vector3*)valuePtr = obj.LocalAabbMax;
}
}
示例15: IsInside
public unsafe static bool IsInside(this PolyhedralConvexShape obj, ref OpenTK.Vector3 pt, float tolerance)
{
fixed (OpenTK.Vector3* ptPtr = &pt)
{
return obj.IsInside(ref *(BulletSharp.Math.Vector3*)ptPtr, tolerance);
}
}