public GLScene() { Observer = new GLObj("observer"); Objects = new List <GLObj>(); TexturesDirectory = "tex"; ObjectsDirectory = "obj"; _FullScreenSetTime = DateTime.Now.AddSeconds(-60); State = AutoPilotStateEnum.Stoppped; }
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); } }
public void LoadFromAndroidAsset(Context context, string name) { var xmlDoc = GLObj.GetAssetXML(context, name); LoadFromXmlDocument(context, xmlDoc); }