class Glove::ShaderProgram

Defined in:

shader_program.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Class Method Detail

def self.from(vertex_shader_path : Path, fragment_shader_path : Path) #

[View source]
def self.from(vertex_shader_io : IO, fragment_shader_io : IO) #

[View source]
def self.from(vertex_shader_string : String, fragment_shader_string : String) #

[View source]

Instance Method Detail

def attach(shader) #

[View source]
def get_uniform_location_cached(name) #

[View source]
def link #

[View source]
def program_id : UInt32 #

[View source]
def set_uniform_1f(name, v0) #

[View source]
def set_uniform_1i(name, v0) #

[View source]
def set_uniform_4f(name, v0, v1, v2, v3) #

[View source]
def set_uniform_matrix_4f(name, transpose, data) #

[View source]
def use #

[View source]