Class RenderTexture

java.lang.Object
com.raylib.RenderTexture

public class RenderTexture extends Object
RenderTexture, fbo for texture rendering
  • Field Details

    • memorySegment

      public final MemorySegment 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

      public RenderTexture(SegmentAllocator arena)
      Construct with your owm memory allocator and fields not initialized
    • RenderTexture

      public RenderTexture(MemorySegment memorySegment)
      Construct by wrapping around an already allocated MemorySegment, perhaps from another object
    • RenderTexture

      public RenderTexture(int id, Texture texture, Texture depth)
      Construct with auto memory allocator and fields initialized as specified
      Parameters:
      id - OpenGL framebuffer object id
      texture - Color buffer attachment texture
      depth - Depth buffer attachment texture
    • RenderTexture

      public RenderTexture(SegmentAllocator arena, int id, Texture texture, Texture depth)
      Construct with your own memory allocator and fields initialized as specified
      Parameters:
      id - OpenGL framebuffer object id
      texture - Color buffer attachment texture
      depth - Depth buffer attachment texture
  • Method Details

    • equals

      public boolean equals(Object o)
      Equality is tested on basis of both wrapper objects must refer to same native memory location to be considered equal
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getArrayElement

      public RenderTexture getArrayElement(int index)
    • allocateArray

      public static RenderTexture allocateArray(long elementCount, SegmentAllocator allocator)
      Allocate an array of RenderTexture
    • allocateArray

      public static RenderTexture allocateArray(long elementCount)
      Allocate an array of RenderTexture
    • getId

      public int getId()
      OpenGL framebuffer object id
    • setId

      public void setId(int value)
      OpenGL framebuffer object id
    • id

      public int id()
      OpenGL framebuffer object id
    • id

      public RenderTexture id(int value)
      OpenGL framebuffer object id
    • getTexture

      public Texture getTexture()
      Color buffer attachment texture
    • setTexture

      public void setTexture(Texture value)
      Color buffer attachment texture
    • texture

      public Texture texture()
      Color buffer attachment texture
    • texture

      public RenderTexture texture(Texture value)
      Color buffer attachment texture
    • getDepth

      public Texture getDepth()
      Depth buffer attachment texture
    • setDepth

      public void setDepth(Texture value)
      Depth buffer attachment texture
    • depth

      public Texture depth()
      Depth buffer attachment texture
    • depth

      public RenderTexture depth(Texture value)
      Depth buffer attachment texture