public fragmentDepths clone() { fragmentDepths fd = new fragmentDepths(); fd.mDepths = new List <float>(mDepths.Count); for (int i = 0; i < mDepths.Count; i++) { fd.mDepths.Add(mDepths[i]); } return(fd); }
public void init(int width, int height) { mWidth = width; mHeight = height; loadShader(); initTextures(); mOC = new Query(BRenderDevice.getDevice(), QueryType.Occlusion); mDepthArray = new fragmentDepths[width, height]; for (int x = 0; x < width; x++) { for (int y = 0; y < height; y++) { mDepthArray[x, y] = new fragmentDepths(); mDepthArray[x, y].mDepths = new List <float>(); } } }