public SampleBase() { name = GetType().Name; eCreateContextFlags flags = eCreateContextFlags.CacheCompiledShaders; if (preferVrmac2D) { flags |= eCreateContextFlags.PreferVrmac2D; } context = new Context(this, flags); }
/// <summary>Construct the object</summary> /// <param name="scene">The scene to render.</param> /// <param name="flags">Miscellaneous flags</param> public Context(iScene scene, eCreateContextFlags flags = eCreateContextFlags.CacheCompiledShaders) { this.scene = scene; creationFlags = flags; }