Beispiel #1
0
        public bool TryGetUniformLocation(string uniformName, out UniformLocation location)
        {
            switch (Gl.GetUniformLocation(_handle, uniformName))
            {
            case -1: location = default; return(false);

            case int l:
                location = new UniformLocation((uint)l);
                return(true);
            }
        }
Beispiel #2
0
 internal unsafe void UniformMatrix4f(UniformLocation uniformLocation, bool transpose, in Matrix4x4 matrix)