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 ShaderShader.allocateArray(long elementCount) Allocate an array of Shaderstatic ShaderShader.allocateArray(long elementCount, SegmentAllocator allocator) Allocate an array of ShaderShader.getArrayElement(int index) Material.getShader()Material shaderShader.id(int value) Shader program idstatic ShaderRaylib.loadShader(Arena arena, String vsFileName, String fsFileName) Load shader from files and bind default locationsstatic ShaderRaylib.loadShader(String vsFileName, String fsFileName) Load shader from files and bind default locationsstatic ShaderRaylib.loadShaderFromMemory(Arena arena, String vsCode, String fsCode) Load shader from code strings and bind default locationsstatic ShaderRaylib.loadShaderFromMemory(String vsCode, String fsCode) Load shader from code strings and bind default locationsShader locations array (RL_MAX_SHADER_LOCATIONS)Material.shader()Material shaderMethods in com.raylib with parameters of type ShaderModifier and TypeMethodDescriptionstatic voidRaylib.beginShaderMode(Shader shader) Begin custom shader drawingstatic intRaylib.getShaderLocation(Shader shader, String uniformName) Get shader uniform locationstatic intRaylib.getShaderLocationAttrib(Shader shader, String attribName) Get shader attribute locationstatic booleanRaylib.isShaderValid(Shader shader) Check if a shader is valid (loaded on GPU)voidMaterial shaderstatic voidRaylib.setShaderValue(Shader shader, int locIndex, MemorySegment value, int uniformType) Set shader uniform valuestatic voidRaylib.setShaderValueMatrix(Shader shader, int locIndex, Matrix mat) Set shader uniform value (matrix 4x4)static voidRaylib.setShaderValueTexture(Shader shader, int locIndex, Texture texture) Set shader uniform value for texture (sampler2d)static voidRaylib.setShaderValueV(Shader shader, int locIndex, MemorySegment value, int uniformType, int count) Set shader uniform value vectorMaterial shaderstatic voidRaylib.unloadShader(Shader shader) Unload shader from GPU memory (VRAM)Constructors in com.raylib with parameters of type ShaderModifierConstructorDescriptionMaterial(Shader shader, MaterialMap maps, float[] params) Construct with auto memory allocator and fields initialized as specifiedMaterial(SegmentAllocator arena, Shader shader, MaterialMap maps, float[] params) Construct with your own memory allocator and fields initialized as specified