Example #1
0
        public gfx_element(device_palette_interface palette, gfx_layout gl, ListBytesPointer srcdata, /*const u8 *srcdata,*/ u32 xormask, u32 total_colors, u32 color_base)
        {
            m_palette              = palette;
            m_width                = 0;
            m_height               = 0;
            m_startx               = 0;
            m_starty               = 0;
            m_origwidth            = 0;
            m_origheight           = 0;
            m_total_elements       = 0;
            m_color_base           = color_base;
            m_color_depth          = 0;
            m_color_granularity    = 0;
            m_total_colors         = total_colors;
            m_line_modulo          = 0;
            m_char_modulo          = 0;
            m_srcdata              = null;
            m_dirtyseq             = 1;
            m_gfxdata              = null;
            m_layout_is_raw        = false;
            m_layout_planes        = 0;
            m_layout_xormask       = xormask;
            m_layout_charincrement = 0;


            // set the layout
            set_layout(gl, srcdata);
        }
Example #2
0
        std.vector <u32> m_layout_yoffset     = new std.vector <u32>(); // Y offsets


        // construction/destruction
        //-------------------------------------------------
        //  gfx_element - constructor
        //-------------------------------------------------
        public gfx_element(device_palette_interface palette, ListBytesPointer base_, /*u8 *base,*/ u16 width, u16 height, u32 rowbytes, u32 total_colors, u32 color_base, u32 color_granularity)
        {
            m_palette              = palette;
            m_width                = width;
            m_height               = height;
            m_startx               = 0;
            m_starty               = 0;
            m_origwidth            = width;
            m_origheight           = height;
            m_total_elements       = 1;
            m_color_base           = color_base;
            m_color_depth          = (UInt16)color_granularity;
            m_color_granularity    = (UInt16)color_granularity;
            m_total_colors         = (total_colors - color_base) / color_granularity;
            m_line_modulo          = rowbytes;
            m_char_modulo          = 0;
            m_srcdata              = base_;
            m_dirtyseq             = 1;
            m_gfxdata              = base_;
            m_layout_is_raw        = true;
            m_layout_planes        = 0;
            m_layout_xormask       = 0;
            m_layout_charincrement = 0;
        }