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

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