예제 #1
0
 public SceneManager(Platform platform, Engine engine, Scene startScene)
 {
     this.platform = platform;
     this.engine = engine;
     nextScene = startScene;
     sceneRenderer = new SceneRenderer(platform);
 }
예제 #2
0
파일: Demo.cs 프로젝트: dreamsxin/engine-1
        public static void Create(Platform platform, Engine engine)
        {
            var unlitShaderAsset = engine.Assets.Load<ShaderAsset>("assets/unlit.bba");
            var vertexLitShaderAsset = engine.Assets.Load<ShaderAsset>("assets/vertex_lit.bba");
            var pixelLitShaderAsset = engine.Assets.Load<ShaderAsset>("assets/pixel_lit.bba");

            UnlitShader = platform.Graphics.CreateShader (unlitShaderAsset);
            VertexLitShader = platform.Graphics.CreateShader (vertexLitShaderAsset);
            PixelLitShader = platform.Graphics.CreateShader (pixelLitShaderAsset);
        }
예제 #3
0
        void Init(Platform platform, Engine engine)
        {
            Console.WriteLine (fntUvData);

            s = new SpritePrimitive (engine.PrimitiveRenderer, fntTex);
            s.SetBlendMode (BlendMode.Default);
        }
예제 #4
0
 public SpriteFont(Platform platform, Engine engine, String fntUvData, Texture fntTex)
 {
     this.fntUvData = fntUvData;
     this.fntTex = fntTex;
     Init (platform, engine);
 }
예제 #5
0
 public SpriteFont(Platform platform, Engine engine, TextAsset fntUvAsset, TextureAsset fntTexAsset)
 {
     fntUvData = fntUvAsset.Text;
     fntTex = platform.Graphics.CreateTexture (fntTexAsset);
     Init (platform, engine);
 }
예제 #6
0
파일: App.cs 프로젝트: gitter-badger/blimey
 /// <summary>
 /// Blimey's initilisation rountine.
 /// </summary>
 public virtual void Start(Platform platform)
 {
     fps = new FpsHelper();
     frameBuffer = new FrameBufferHelper(platform.Graphics);
     engine = new Engine (platform);
     sceneManager = new SceneManager(platform, engine, startScene);
 }
예제 #7
0
파일: Scene.cs 프로젝트: dreamsxin/engine-1
        // ===================== //
        // Blimey internal calls //
        // ===================== //
        internal void Initialize(Platform platform, Engine engine)
        {
            this.platform = platform;
            this.engine = engine;
            this.sceneGraph = new SceneSceneGraph (this);
            this.cameraManager = new CameraManager(this);

            this.Start();
        }
예제 #8
0
파일: Trait.cs 프로젝트: dreamsxin/engine-1
        // INTERNAL METHODS
        // called after constructor and before awake
        internal void Initilise(Platform platform, Engine engine, Entity parent)
        {
            Platform = platform;
            Engine = engine;
            Parent = parent;

            Active = true;
        }