Uses of Class
com.raylib.Shader
Packages that use Shader
-
Uses of Shader in com.raylib
Methods in com.raylib that return ShaderModifier and TypeMethodDescriptionstatic Shader
Shader.allocateArray
(long elementCount) Allocate an array of Shaderstatic Shader
Shader.allocateArray
(long elementCount, SegmentAllocator allocator) Allocate an array of ShaderShader.getArrayElement
(int index) Material.getShader()
Material shaderstatic Shader
Raylib.loadShader
(Arena arena, String vsFileName, String fsFileName) Load shader from files and bind default locationsstatic Shader
Raylib.loadShader
(String vsFileName, String fsFileName) Load shader from files and bind default locationsstatic Shader
Raylib.loadShaderFromMemory
(Arena arena, String vsCode, String fsCode) Load shader from code strings and bind default locationsstatic Shader
Raylib.loadShaderFromMemory
(String vsCode, String fsCode) Load shader from code strings and bind default locationsShader.setId
(int value) Shader program idShader locations array (RL_MAX_SHADER_LOCATIONS)Methods in com.raylib with parameters of type ShaderModifier and TypeMethodDescriptionstatic void
Raylib.beginShaderMode
(Shader shader) Begin custom shader drawingstatic int
Raylib.getShaderLocation
(Shader shader, String uniformName) Get shader uniform locationstatic int
Raylib.getShaderLocationAttrib
(Shader shader, String attribName) Get shader attribute locationstatic boolean
Raylib.isShaderReady
(Shader shader) Check if a shader is readyMaterial shaderstatic void
Raylib.setShaderValue
(Shader shader, int locIndex, MemorySegment value, int uniformType) Set shader uniform valuestatic void
Raylib.setShaderValueMatrix
(Shader shader, int locIndex, Matrix mat) Set shader uniform value (matrix 4x4)static void
Raylib.setShaderValueTexture
(Shader shader, int locIndex, Texture texture) Set shader uniform value for texture (sampler2d)static void
Raylib.setShaderValueV
(Shader shader, int locIndex, MemorySegment value, int uniformType, int count) Set shader uniform value vectorstatic void
Raylib.unloadShader
(Shader shader) Unload shader from GPU memory (VRAM)Constructors in com.raylib with parameters of type ShaderModifierConstructorDescriptionMaterial
(Shader shader, MaterialMap maps, MemorySegment params) Construct with auto memory allocator and fields initialized as specifiedMaterial
(SegmentAllocator arena, Shader shader, MaterialMap maps, MemorySegment params) Construct with your own memory allocator and fields initialized as specified