Пример #1
0
        public SampleBase()
        {
            name = GetType().Name;
            eCreateContextFlags flags = eCreateContextFlags.CacheCompiledShaders;

            if (preferVrmac2D)
            {
                flags |= eCreateContextFlags.PreferVrmac2D;
            }
            context = new Context(this, flags);
        }
Пример #2
0
 /// <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;
 }