Exemplo n.º 1
0
        public void DisposeTex(ref ICustomTexture texture)
        {
            if (texture == null)
            {
                return;
            }

            MyCustomTexture textureInternal = (MyCustomTexture)texture;

            if (m_isDeviceInit)
            {
                textureInternal.OnDeviceEnd();
            }

            m_objectsPool.Deallocate(textureInternal);
        }
Exemplo n.º 2
0
 public void Init(MyCustomTexture owner, Format format)
 {
     m_owner  = owner;
     m_format = format;
 }