Exemple #1
0
        public static void ReleaseAll()
        {
            if (temp != null)
            {
                temp.Release();
                temp = null;
            }

            if (colorBuff != null)
            {
                colorBuff.Release();
                colorBuff = null;
            }

            if (renderQuad != null)
            {
                renderQuad.Release();
                renderQuad = null;
            }

            if (renderBuff != null)
            {
                renderBuff.Release();
                renderBuff = null;
            }

            if (frameBuff != null)
            {
                frameBuff.Release();
                frameBuff = null;
            }
        }
Exemple #2
0
 public static void ReleaseAll()
 {
     if (colorBuff != null)
     {
         colorBuff.Release();
     }
     if (renderQuad != null)
     {
         renderQuad.Release();
     }
     if (renderBuff != null)
     {
         renderBuff.Release();
     }
     if (frameBuff != null)
     {
         frameBuff.Release();
     }
 }
Exemple #3
0
        public override void Release()
        {
            if (frame != null)
            {
                frame.Release();
                frame = null;
            }

            if (depth != null)
            {
                depth.Release();
                depth = null;
            }

            if (color != null)
            {
                for (int i = 0; i < color.Length; ++i)
                {
                    color[i].Release();
                }

                color = null;
            }
        }