コード例 #1
0
        void createCache()
        {
            this.Dispose();

            selectionMap = new byte[CacheSize.Width * CacheSize.Height * 4];

            cacheQuad       = new QuadVAO(0, 0, 1, 1, 0, 0, 1, 1);
            cacheShader.MVP = Matrix4.CreateOrthographicOffCenter
                                  (0, 1, 1, 0, 0, 1);

            initGridFbo();
        }
コード例 #2
0
        void createCache()
        {
            selectionMap = new byte[ClientRectangle.Width * ClientRectangle.Height * 4];

            if (cacheQuad != null)
            {
                cacheQuad.Dispose();
            }
            cacheQuad       = new QuadVAO(0, 0, ClientRectangle.Width, ClientRectangle.Height, 0, 1, 1, -1);
            cacheProjection = Matrix4.CreateOrthographicOffCenter
                                  (0, ClientRectangle.Width, 0, ClientRectangle.Height, 0, 1);
            initGridFbo();
        }
コード例 #3
0
ファイル: Terrain.cs プロジェクト: jpbruyere/Ottd3D
        void createCache()
        {
            this.Dispose();

            selectionMap = new byte[CacheSize.Width * CacheSize.Height*4];

            cacheQuad = new QuadVAO (0, 0, 1, 1, 0, 0, 1, 1);
            cacheShader.MVP = Matrix4.CreateOrthographicOffCenter
                (0, 1, 1, 0, 0, 1);

            initGridFbo ();
        }
コード例 #4
0
		void createCache(){
			selectionMap = new byte[ClientRectangle.Width*ClientRectangle.Height*4];

			if (cacheQuad != null)
				cacheQuad.Dispose ();
			cacheQuad = new QuadVAO (0, 0, ClientRectangle.Width, ClientRectangle.Height, 0, 1, 1, -1);
			cacheProjection = Matrix4.CreateOrthographicOffCenter 
				(0, ClientRectangle.Width, 0, ClientRectangle.Height, 0, 1);
			initGridFbo ();
		}