Package com.raylib
Class RenderTexture
java.lang.Object
com.raylib.RenderTexture
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal MemorySegment
The native FFI MemorySegment that holds the data this object wraps. -
Constructor Summary
ConstructorsConstructorDescriptionConstruct with auto memory allocator and fields initialized to zero.RenderTexture
(int id, Texture texture, Texture depth) Construct with auto memory allocator and fields initialized as specifiedRenderTexture
(MemorySegment memorySegment) Construct by wrapping around an already allocated MemorySegment, perhaps from another objectRenderTexture
(SegmentAllocator arena) Construct with your owm memory allocator and fields not initializedRenderTexture
(SegmentAllocator arena, int id, Texture texture, Texture depth) Construct with your own memory allocator and fields initialized as specified -
Method Summary
Modifier and TypeMethodDescriptionstatic RenderTexture
allocateArray
(long elementCount) Allocate an array of RenderTexturestatic RenderTexture
allocateArray
(long elementCount, SegmentAllocator allocator) Allocate an array of RenderTextureboolean
Equality is tested on basis of both wrapper objects must refer to same native memory location to be considered equalgetArrayElement
(int index) getDepth()
Depth buffer attachment textureint
getId()
OpenGL framebuffer object idColor buffer attachment textureint
hashCode()
Depth buffer attachment texturesetId
(int value) OpenGL framebuffer object idsetTexture
(Texture value) Color buffer attachment texture
-
Field Details
-
memorySegment
The native FFI MemorySegment that holds the data this object wraps.
-
-
Constructor Details
-
RenderTexture
public RenderTexture()Construct with auto memory allocator and fields initialized to zero. -
RenderTexture
Construct with your owm memory allocator and fields not initialized -
RenderTexture
Construct by wrapping around an already allocated MemorySegment, perhaps from another object -
RenderTexture
-
RenderTexture
Construct with your own memory allocator and fields initialized as specified- Parameters:
id
- OpenGL framebuffer object idtexture
- Color buffer attachment texturedepth
- Depth buffer attachment texture
-
-
Method Details
-
equals
-
hashCode
-
getArrayElement
-
allocateArray
Allocate an array of RenderTexture -
allocateArray
Allocate an array of RenderTexture -
getId
public int getId()OpenGL framebuffer object id -
setId
OpenGL framebuffer object id -
getTexture
Color buffer attachment texture -
setTexture
Color buffer attachment texture -
getDepth
Depth buffer attachment texture -
setDepth
Depth buffer attachment texture
-