Exemple #1
0
 public GLScene()
 {
     Observer           = new GLObj("observer");
     Objects            = new  List <GLObj>();
     TexturesDirectory  = "tex";
     ObjectsDirectory   = "obj";
     _FullScreenSetTime = DateTime.Now.AddSeconds(-60);
     State = AutoPilotStateEnum.Stoppped;
 }
Exemple #2
0
 public static double Distance(GLObj A, GLObj B)
 {
     if (A != null && B != null)
     {
         var vec = new GLVector(A.Position, B.Position);
         return(vec.Length);
     }
     else
     {
         return(0);
     }
 }
Exemple #3
0
        public void LoadFromAndroidAsset(Context context, string name)
        {
            var xmlDoc = GLObj.GetAssetXML(context, name);

            LoadFromXmlDocument(context, xmlDoc);
        }