private static void OnClose() { particleVertices.Dispose(); particleColors.Dispose(); particlePoints.Dispose(); program.DisposeChildren = true; program.Dispose(); fontProgram.DisposeChildren = true; fontProgram.Dispose(); font.FontTexture.Dispose(); information.Dispose(); }
private static void OnClose() { cube.Dispose(); cubeNormals.Dispose(); cubeUV.Dispose(); cubeTriangles.Dispose(); brickDiffuse.Dispose(); brickNormals.Dispose(); program.DisposeChildren = true; program.Dispose(); fontProgram.DisposeChildren = true; fontProgram.Dispose(); font.FontTexture.Dispose(); information.Dispose(); }