struct Gloop::Uniforms

Overview

Access to uniforms from the program currently in use.

NOTE If the active program is changed, existing references to uniforms will change to the new program, which may not exist.

Included Modules

Defined in:

gloop/uniforms.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(context : Gloop::Context) #

Creates a resource associated with a context.


[View source]

Instance Method Detail

def [](location : Int32) : UniformLocation #

References a uniform in the current program by its location.


[View source]