Exemplo n.º 1
0
        void __GetValues()
        {
            //probably not the best way of doing things but it should do the trick,
            //this isn't something that should be called often anyways.
            unsafe
            {
                Glfw_HelperFunctions.__GetGammaRampValues(Handle, out ushort *r, out ushort *g, out ushort *b, out uint size);
                red   = new ushort[size];
                green = new ushort[size];
                blue  = new ushort[size];

                for (int i = 0; i < this.size; i++)
                {
                    red[i]   = r[i];
                    green[i] = g[i];
                    blue[i]  = b[i];
                }
            }
        }