// Format - see enum e {}; // FlipY - true if you want to have the Y-axis flipped vertically. public PlatformSupportAbstract(PixelFormats format, PlatformSupportAbstract.ERenderOrigin RenderOrigin) { m_format = format; m_bpp = GetBitDepthForPixelFormat(format); m_RenderOrigin = RenderOrigin; m_initial_width = 10; m_initial_height = 10; m_resize_mtx = Affine.NewIdentity(); m_rbuf_img = new List <RasterBuffer>(); }
//------------------------------------------------------------------------ public PlatformSupport(PixelFormats format, PlatformSupportAbstract.ERenderOrigin RenderOrigin) : base(format, RenderOrigin) { m_specific = new PlatformSpecificWindow(this, format, RenderOrigin); m_format = format; //m_bpp(m_specific->m_bpp), //m_window_flags(0), m_wait_mode = true; m_RenderOrigin = RenderOrigin; m_initial_width = 10; m_initial_height = 10; Caption = "Anti-Grain Geometry Application"; Focus(); }
public TeselateTestApplication(PixelFormats format, PlatformSupportAbstract.ERenderOrigin RenderOrigin) : base(format, RenderOrigin) { }
// Format - see enum e {}; // FlipY - true if you want to have the Y-axis flipped vertically. public PlatformSupportAbstract(PixelFormats format, PlatformSupportAbstract.ERenderOrigin RenderOrigin) { m_format = format; m_bpp = GetBitDepthForPixelFormat(format); m_RenderOrigin = RenderOrigin; m_initial_width = 10; m_initial_height = 10; m_resize_mtx = Affine.NewIdentity(); m_rbuf_img = new List<RasterBuffer>(); }
public PlatformSpecificWindow(PlatformSupportAbstract app, PlatformSupportAbstract.PixelFormats format, PlatformSupportAbstract.ERenderOrigin RenderOrigin) { m_app = app; m_format = format; m_sys_format = PlatformSupportAbstract.PixelFormats.Undefined; m_RenderOrigin = RenderOrigin; m_WindowContentNeedsRedraw = true; m_StopWatch = new Stopwatch(); switch (m_format) { case PlatformSupportAbstract.PixelFormats.BlackWhite: m_sys_format = PlatformSupportAbstract.PixelFormats.BlackWhite; break; case PlatformSupportAbstract.PixelFormats.Gray8: m_sys_format = PlatformSupportAbstract.PixelFormats.Gray8; break; case PlatformSupportAbstract.PixelFormats.Gray16: m_sys_format = PlatformSupportAbstract.PixelFormats.Gray16; break; case PlatformSupportAbstract.PixelFormats.Rgb565: case PlatformSupportAbstract.PixelFormats.Rgb555: m_sys_format = PlatformSupportAbstract.PixelFormats.Rgb555; break; case PlatformSupportAbstract.PixelFormats.RgbAAA: case PlatformSupportAbstract.PixelFormats.BgrAAA: case PlatformSupportAbstract.PixelFormats.RgbBBA: case PlatformSupportAbstract.PixelFormats.BgrABB: m_sys_format = PlatformSupportAbstract.PixelFormats.Bgr24; break; case PlatformSupportAbstract.PixelFormats.Rgb24: m_sys_format = PlatformSupportAbstract.PixelFormats.Rgb24; break; case PlatformSupportAbstract.PixelFormats.Bgr24: m_sys_format = PlatformSupportAbstract.PixelFormats.Bgr24; break; case PlatformSupportAbstract.PixelFormats.Rgb48: case PlatformSupportAbstract.PixelFormats.Bgr48: m_sys_format = PlatformSupportAbstract.PixelFormats.Bgr24; break; case PlatformSupportAbstract.PixelFormats.Bgra32: m_sys_format = PlatformSupportAbstract.PixelFormats.Bgra32; break; case PlatformSupportAbstract.PixelFormats.Abgr32: m_sys_format = PlatformSupportAbstract.PixelFormats.Abgr32; break; case PlatformSupportAbstract.PixelFormats.Argb32: m_sys_format = PlatformSupportAbstract.PixelFormats.Argb32; break; case PlatformSupportAbstract.PixelFormats.Rgba32: m_sys_format = PlatformSupportAbstract.PixelFormats.Rgba32; break; case PlatformSupportAbstract.PixelFormats.Bgra64: case PlatformSupportAbstract.PixelFormats.Abgr64: case PlatformSupportAbstract.PixelFormats.Argb64: case PlatformSupportAbstract.PixelFormats.Rgba64: m_sys_format = PlatformSupportAbstract.PixelFormats.Bgra32; break; } m_StopWatch.Reset(); m_StopWatch.Start(); }