Beispiel #1
0
        public void SetAttribute(string name, float value)
        {
            EnsureNotDisposed();

            var loc = SDL_gpu.GPU_GetAttributeLocation(ProgramHandle, name);

            if (loc == -1)
            {
                _log.Warning($"Float attribute '{name}' does not exist.");
                return;
            }

            SDL_gpu.GPU_SetAttributef(loc, value);
        }