Esempio n. 1
0
 public SceneManager(Platform platform, Engine engine, Scene startScene)
 {
     this.platform = platform;
     this.engine = engine;
     nextScene = startScene;
     sceneRenderer = new SceneRenderer(platform);
 }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        void Init(Platform platform, Engine engine)
        {
            Console.WriteLine (fntUvData);

            s = new SpritePrimitive (engine.PrimitiveRenderer, fntTex);
            s.SetBlendMode (BlendMode.Default);
        }
Esempio n. 4
0
 public SpriteFont(Platform platform, Engine engine, String fntUvData, Texture fntTex)
 {
     this.fntUvData = fntUvData;
     this.fntTex = fntTex;
     Init (platform, engine);
 }
Esempio n. 5
0
 public SpriteFont(Platform platform, Engine engine, TextAsset fntUvAsset, TextureAsset fntTexAsset)
 {
     fntUvData = fntUvAsset.Text;
     fntTex = platform.Graphics.CreateTexture (fntTexAsset);
     Init (platform, engine);
 }
Esempio n. 6
0
 /// <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);
 }
Esempio n. 7
0
        // ===================== //
        // 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();
        }
Esempio n. 8
0
        // 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;
        }