protected override void OnGLRender(object sender, EventArgs args)
        {
            _pcx.SmoothMode = SmoothMode.Smooth;
            _pcx.ClearColorBuffer();

            _painter.DrawImage(_chk_checked, 0, 0);
            _painter.DrawImage(_chk_unchecked, 20, 0);

            SwapBuffers();
        }
Exemple #2
0
        protected override void OnGLRender(object sender, EventArgs args)
        {
            _pcx.SmoothMode = SmoothMode.Smooth;
            _pcx.ClearColorBuffer();

            for (int y = 0; y < 10; ++y)
            {
                int x_pos = 0;
                for (int x = 0; x < 10; ++x)
                {
                    _painter.DrawImage(_chk_checked, x_pos, y * 20);
                    _painter.DrawImage(_chk_unchecked, x_pos + 20, y * 20);
                    x_pos += 40;
                }
            }


            SwapBuffers();
        }