Package com.raylib
Class Shader
java.lang.Object
com.raylib.Shader
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal MemorySegment
The native FFI MemorySegment that holds the data this object wraps. -
Constructor Summary
ConstructorsConstructorDescriptionShader()
Construct with auto memory allocator and fields initialized to zero.Construct with auto memory allocator and fields initialized as specifiedShader
(MemorySegment memorySegment) Construct by wrapping around an already allocated MemorySegment, perhaps from another objectShader
(SegmentAllocator arena) Construct with your owm memory allocator and fields not initializedShader
(SegmentAllocator arena, int id, IntBuffer locs) Construct with your own memory allocator and fields initialized as specified -
Method Summary
Modifier and TypeMethodDescriptionstatic Shader
allocateArray
(long elementCount) Allocate an array of Shaderstatic Shader
allocateArray
(long elementCount, SegmentAllocator allocator) Allocate an array of Shaderboolean
Equality is tested on basis of both wrapper objects must refer to same native memory location to be considered equalgetArrayElement
(int index) int
getId()
Shader program idgetLocs()
Shader locations array (RL_MAX_SHADER_LOCATIONS)int
hashCode()
setId
(int value) Shader program idShader locations array (RL_MAX_SHADER_LOCATIONS)
-
Field Details
-
Constructor Details
-
Shader
public Shader()Construct with auto memory allocator and fields initialized to zero. -
Shader
Construct with your owm memory allocator and fields not initialized -
Shader
Construct by wrapping around an already allocated MemorySegment, perhaps from another object -
Shader
Construct with auto memory allocator and fields initialized as specified- Parameters:
id
- Shader program idlocs
- Shader locations array (RL_MAX_SHADER_LOCATIONS)
-
Shader
Construct with your own memory allocator and fields initialized as specified- Parameters:
id
- Shader program idlocs
- Shader locations array (RL_MAX_SHADER_LOCATIONS)
-
-
Method Details