Exemplo n.º 1
0
        public void Draw(RendererContext context)
        {
            if (!isInitialized)
            {
                return;
            }

            GDIHelper.SetDIBitsToDevice(handle, 0, 0, width, height, 0, 0, 0, height, ref context.Buffer[0], ref info, 0);
        }
Exemplo n.º 2
0
    public void EndRenderer()
    {
        for (int index = 0; index < Gizmos.currentPrimitive; index++)
        {
            Gizmos.primitives[index].Draw(worldViewMatrix, width, height, ref frame);
        }

        Gizmos.currentPrimitive = 0;

        GDIHelper.SetDIBitsToDevice(handle, 0, 0, width, height, 0, 0, 0, height, ref frame[0], ref info, 0);

        clear();
    }