Class Shader
java.lang.Object
com.raylib.Shader
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal MemorySegmentThe 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 ShaderallocateArray(long elementCount) Allocate an array of Shaderstatic ShaderallocateArray(long elementCount, SegmentAllocator allocator) Allocate an array of ShaderbooleanEquality is tested on basis of both wrapper objects must refer to same native memory location to be considered equalgetArrayElement(int index) intgetId()Shader program idgetLocs()Shader locations array (RL_MAX_SHADER_LOCATIONS)inthashCode()intid()Shader program idid(int value) Shader program idlocs()Shader locations array (RL_MAX_SHADER_LOCATIONS)Shader locations array (RL_MAX_SHADER_LOCATIONS)voidsetId(int value) Shader program idvoidShader locations array (RL_MAX_SHADER_LOCATIONS)
-
Field Details
-
memorySegment
The native FFI MemorySegment that holds the data this object wraps.
-
-
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
-
equals
-
hashCode
-
getArrayElement
-
allocateArray
Allocate an array of Shader -
allocateArray
Allocate an array of Shader -
getId
public int getId()Shader program id -
setId
public void setId(int value) Shader program id -
id
public int id()Shader program id -
id
Shader program id -
getLocs
Shader locations array (RL_MAX_SHADER_LOCATIONS) -
setLocs
Shader locations array (RL_MAX_SHADER_LOCATIONS) -
locs
Shader locations array (RL_MAX_SHADER_LOCATIONS) -
locs
-