Example #1
0
        //palette_device(const machine_config &mconfig, const char *tag, device_t *owner, black_t, u32 entries = 0U);
        //palette_device(const machine_config &mconfig, const char *tag, device_t *owner, mono_t);
        //palette_device(const machine_config &mconfig, const char *tag, device_t *owner, mono_inv_t);
        //palette_device(const machine_config &mconfig, const char *tag, device_t *owner, mono_hi_t);
        //palette_device(const machine_config &mconfig, const char *tag, device_t *owner, rgb_3b_t);
        //palette_device(const machine_config &mconfig, const char *tag, device_t *owner, rbg_3b_t);
        //palette_device(const machine_config &mconfig, const char *tag, device_t *owner, grb_3b_t);
        //palette_device(const machine_config &mconfig, const char *tag, device_t *owner, gbr_3b_t);
        //palette_device(const machine_config &mconfig, const char *tag, device_t *owner, brg_3b_t);
        //palette_device(const machine_config &mconfig, const char *tag, device_t *owner, bgr_3b_t);
        //palette_device(const machine_config &mconfig, const char *tag, device_t *owner, rgb_555_t);
        //palette_device(const machine_config &mconfig, const char *tag, device_t *owner, grb_555_t);
        //palette_device(const machine_config &mconfig, const char *tag, device_t *owner, bgr_555_t);
        //palette_device(const machine_config &mconfig, const char *tag, device_t *owner, rgb_565_t);
        //palette_device(const machine_config &mconfig, const char *tag, device_t *owner, bgr_565_t);

        public palette_device(machine_config mconfig, string tag, device_t owner, u32 clock = 0)
            : base(mconfig, PALETTE, tag, owner, 0)
        {
            m_class_interfaces.Add(new device_palette_interface_palette_device(mconfig, this));  //device_palette_interface(mconfig, *this),


            m_dipalette = GetClassInterface <device_palette_interface_palette_device>();


            m_entries             = 0;
            m_indirect_entries    = 0;
            m_enable_shadows      = false;
            m_enable_hilights     = false;
            m_membits             = 0;
            m_membits_supplied    = false;
            m_endianness          = ENDIANNESS_BIG;
            m_endianness_supplied = false;
            m_prom_region         = new optional_memory_region(this, finder_base.DUMMY_TAG);
            m_init       = null;
            m_raw_to_rgb = null;
        }
Example #2
0
        }                                                                                   //template <typename... T> palette_device &set_init(T &&... args) { m_init.set(std::forward<T>(args)...); return *this; }

        palette_device set_format(raw_to_rgb_converter raw_to_rgb)
        {
            m_raw_to_rgb = raw_to_rgb; return(this);
        }