Shader - Factor Documentation

Shader


Vocabulary
raylib

Class description
Represents a graphics shader in Raylib. The size of locs depends on MAX_SHADER_LOCATIONS.

Warning
MAX_SHADER_LOCATIONS is set when raylib is compiled to a shared library. This cannot be changed from Factor.


Fields
id uint Shader program id
locs int * Shader locations array


Definition
USING: alien.c-types classes.struct ;

IN: raylib

STRUCT: Shader { id uint initial: 0 } { locs int* } ;


Methods
USING: classes.struct classes.struct.private kernel raylib ;

M: Shader clone clone-underlying \ Shader memory>struct ; inline


USING: accessors classes.struct combinators.smart raylib ;

M: Shader struct-slot-values
{ [ id>> ] [ locs>> ] } cleave>array ; inline

AltStyle によって変換されたページ (->オリジナル) /