Exemplo n.º 1
0
 public static void Clear()
 {
     if (Managed.Instance != null)
     {
         Managed.Clear();
     }
 }
Exemplo n.º 2
0
/*
 *      internal void Render(HDCamera hdCamera, CommandBuffer cmd)
 *      {
 *          if (hdCamera.camera.cameraType != CameraType.Game)
 *              return;
 *          cmd.DrawProcedural(Matrix4x4.identity, resources.textMaterial, 0, MeshTopology.Triangles, NumTextBoxesToDraw * 6, 1);
 *          cmd.DrawProcedural(Matrix4x4.identity, resources.graphMaterial, 0, MeshTopology.Triangles, NumGraphsToDraw * 6, 1);
 *      }
 *
 *      internal void Render3D(HDCamera hdCamera, CommandBuffer cmd)
 *      {
 *          cmd.DrawProcedural(Matrix4x4.identity, _lineMaterial, 0, MeshTopology.Lines, NumLinesToDraw, 1);
 *      }
 */

        public void Dispose()
        {
            _vertexBuffer?.Dispose();
            _vertexBuffer = null;
            // _colorBuffer?.Dispose();
            // _colorBuffer = null;

            Unmanaged.Instance.Data.Dispose();
            if (_instance == this)
            {
                _instance = null;
            }
        }