예제 #1
0
        //~bitmap_t()
        //{
        //    // delete any existing stuff
        //    reset();
        //}


        // allocation/deallocation

        /**
         * @fn  void bitmap_t::reset()
         *
         * @brief   -------------------------------------------------
         *            reset -- reset to an invalid bitmap, deleting all allocated stuff
         *          -------------------------------------------------.
         */
        public void reset()
        {
            // delete any existing stuff
            set_palette(null);
            //delete[] m_alloc;
            m_alloc = null;
            m_base  = null;

            // reset all fields
            m_rowpixels = 0;
            m_width     = 0;
            m_height    = 0;
            m_cliprect.set(0, -1, 0, -1);
        }
예제 #2
0
 // invalidate cached rect list
 void invalidate_rect_list()
 {
     m_rect_list_bounds.set(0, -1, 0, -1);
 }