class Gsk::ShaderArgsBuilder

Overview

An object to build the uniforms data for a Gsk::GLShader.

Defined in:

lib/gi-crystal/src/auto/gsk-4.0/shader_args_builder.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(pointer : Pointer(Void), transfer : GICrystal::Transfer) #

def self.new(shader : Gsk::GLShader, initial_values : GLib::Bytes?) : self #

Class Method Detail

def self.g_type : UInt64 #

Returns the type id (GType) registered in GLib type system.


Instance Method Detail

def finalize #


def set_bool(idx : Int32, value : Bool) : Nil #

def set_float(idx : Int32, value : Float32) : Nil #

def set_int(idx : Int32, value : Int32) : Nil #

def set_uint(idx : Int32, value : UInt32) : Nil #

def set_vec2(idx : Int32, value : Graphene::Vec2) : Nil #

def set_vec3(idx : Int32, value : Graphene::Vec3) : Nil #

def set_vec4(idx : Int32, value : Graphene::Vec4) : Nil #

def to_args : GLib::Bytes #

def to_unsafe : Pointer(Void) #

def unref : Nil #