• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# OpenTK类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中OpenTK的典型用法代码示例。如果您正苦于以下问题:C# OpenTK类的具体用法?C# OpenTK怎么用?C# OpenTK使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



OpenTK类属于命名空间,在下文中一共展示了OpenTK类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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();
			}
		}
开发者ID:sinkingsugar,项目名称:BulletSharpPInvoke,代码行数:7,代码来源:TriangleMeshShapeExtensions.cs


示例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;
			}
		}
开发者ID:sinkingsugar,项目名称:BulletSharpPInvoke,代码行数:7,代码来源:DynamicsWorldExtensions.cs


示例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;
			}
		}
开发者ID:sinkingsugar,项目名称:BulletSharpPInvoke,代码行数:7,代码来源:Hinge2ConstraintExtensions.cs


示例4: Init

        public static void Init(OpenTK.Graphics.IGraphicsContext context, OpenTK.Platform.IWindowInfo wininf)
        {
            Graphics.context = context;
            Graphics.windowInfo = wininf;

            init = true;
        }
开发者ID:merlish,项目名称:ventis,代码行数:7,代码来源:Graphics.cs


示例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;
			}
		}
开发者ID:sinkingsugar,项目名称:BulletSharpPInvoke,代码行数:7,代码来源:TypedConstraintExtensions.cs


示例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);
			}
		}
开发者ID:sinkingsugar,项目名称:BulletSharpPInvoke,代码行数:7,代码来源:ConvexShapeExtensions.cs


示例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();
			}
		}
开发者ID:sinkingsugar,项目名称:BulletSharpPInvoke,代码行数:7,代码来源:ConvexShapeExtensions.cs


示例8: OnRenderFrame

        public override void OnRenderFrame(OpenTK.FrameEventArgs e)
        {
            bg.draw(e);
            txt.draw(e);

            base.OnRenderFrame(e);
        }
开发者ID:Zhangerr,项目名称:pulse,代码行数:7,代码来源:Marquee.cs


示例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;
			}
		}
开发者ID:sinkingsugar,项目名称:BulletSharpPInvoke,代码行数:7,代码来源:Point2PointConstraintExtensions.cs


示例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;
			}
		}
开发者ID:sinkingsugar,项目名称:BulletSharpPInvoke,代码行数:7,代码来源:VehicleRaycasterExtensions.cs


示例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;
			}
		}
开发者ID:sinkingsugar,项目名称:BulletSharpPInvoke,代码行数:7,代码来源:VehicleRaycasterExtensions.cs


示例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;
			}
		}
开发者ID:sinkingsugar,项目名称:BulletSharpPInvoke,代码行数:7,代码来源:GjkPairDetectorExtensions.cs


示例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;
			}
		}
开发者ID:sinkingsugar,项目名称:BulletSharpPInvoke,代码行数:7,代码来源:GjkPairDetectorExtensions.cs


示例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;
			}
		}
开发者ID:sinkingsugar,项目名称:BulletSharpPInvoke,代码行数:7,代码来源:TriangleMeshShapeExtensions.cs


示例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);
			}
		}
开发者ID:sinkingsugar,项目名称:BulletSharpPInvoke,代码行数:7,代码来源:PolyhedralConvexShapeExtensions.cs


示例16: SetPivotB

		public unsafe static void SetPivotB(this Point2PointConstraint obj, ref OpenTK.Vector3 pivotB)
		{
			fixed (OpenTK.Vector3* pivotBPtr = &pivotB)
			{
				obj.PivotInB = *(BulletSharp.Math.Vector3*)pivotBPtr;
			}
		}
开发者ID:sinkingsugar,项目名称:BulletSharpPInvoke,代码行数:7,代码来源:Point2PointConstraintExtensions.cs


示例17: GetPolarCoords

 /// <summary>
 /// x = distance |
 /// y = theta   
 /// </summary>
 /// <param name="coords"></param>
 /// <returns></returns>
 public static OpenTK.Vector2 GetPolarCoords(OpenTK.Vector2 value)
 {
     OpenTK.Vector2 vector = new OpenTK.Vector2(value.Length,(value.X != 0 ? (float)Math.Atan(value.Y / value.X) : (value.Y < 0 ? (float)Math.PI : 0))
         + (GetSign(value.X) == 1 ? 1.5f : 0.5f) * (float)Math.PI);//fix errors
     //fix errors
     return vector;
 }
开发者ID:nothinggood87,项目名称:RPGSimAlpha_,代码行数:13,代码来源:Helper.cs


示例18: LoadModel

        public override ModelBase LoadModel(OpenTK.Vector3 scale)
        {
            XmlDocument doc = new XmlDocument();
            doc.Load(m_ICAName);

            XmlNode node_anm_info = doc.SelectSingleNode("/ica/body/node_anm_info");
            ReadNodeAnmInfo(node_anm_info);

            XmlNode node_scale_data = doc.SelectSingleNode("/ica/body/node_scale_data");
            this.node_scale_data = ReadNodeTransformationData(node_scale_data);

            XmlNode node_rotate_data = doc.SelectSingleNode("/ica/body/node_rotate_data");
            this.node_rotate_data = ReadNodeTransformationData(node_rotate_data);
            ConvertRotateDataToRadians();

            XmlNode node_translate_data = doc.SelectSingleNode("/ica/body/node_translate_data");
            this.node_translate_data = ReadNodeTransformationData(node_translate_data);

            XmlNode node_anm_array = doc.SelectSingleNode("/ica/body/node_anm_array");
            ReadNodeAnimations(node_anm_array);

            m_Model.ScaleAnimations(scale);

            return m_Model;
        }
开发者ID:RicoPlays,项目名称:sm64dse,代码行数:25,代码来源:NITROIntermediateCharacterAnimationLoader.cs


示例19: LocalGetSupportingVertex

		public unsafe static OpenTK.Vector3 LocalGetSupportingVertex(this ConvexShape obj, ref OpenTK.Vector3 vec)
		{
			fixed (OpenTK.Vector3* vecPtr = &vec)
			{
				return obj.LocalGetSupportingVertex(ref *(BulletSharp.Math.Vector3*)vecPtr).ToOpenTK();
			}
		}
开发者ID:sinkingsugar,项目名称:BulletSharpPInvoke,代码行数:7,代码来源:ConvexShapeExtensions.cs


示例20: GetFrameOffsetB

		public unsafe static void GetFrameOffsetB(this ConeTwistConstraint obj, out OpenTK.Matrix4 value)
		{
			fixed (OpenTK.Matrix4* valuePtr = &value)
			{
				*(BulletSharp.Math.Matrix*)valuePtr = obj.FrameOffsetB;
			}
		}
开发者ID:sinkingsugar,项目名称:BulletSharpPInvoke,代码行数:7,代码来源:ConeTwistConstraintExtensions.cs



注:本文中的OpenTK类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# OpenTKBlackberry类代码示例发布时间:2022-05-24
下一篇:
C# Interfaces.GridRegion类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap