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(); }
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(); }
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 (); }
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 (); }