Package org.lwjgl.util.tinyexr
Class EXRVersion
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.tinyexr.EXRVersion
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class EXRVersion extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Member documentation
version
– this must be 2tiled
– tile format imagelong_name
– long name attributenon_image
– deep image(EXR 2.0)multipart
– multi-part(EXR 2.0)
Layout
struct EXRVersion { int version; int tiled; int long_name; int non_image; int multipart; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EXRVersion.Buffer
An array ofEXRVersion
structs.
-
Constructor Summary
Constructors Constructor Description EXRVersion(java.nio.ByteBuffer container)
Creates aEXRVersion
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EXRVersion
calloc()
Returns a newEXRVersion
instance allocated withmemCalloc
.static EXRVersion.Buffer
calloc(int capacity)
Returns a newEXRVersion.Buffer
instance allocated withmemCalloc
.static EXRVersion
callocStack()
Returns a newEXRVersion
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static EXRVersion.Buffer
callocStack(int capacity)
Returns a newEXRVersion.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static EXRVersion.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newEXRVersion.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static EXRVersion
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newEXRVersion
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static EXRVersion
create()
Returns a newEXRVersion
instance allocated withBufferUtils
.static EXRVersion.Buffer
create(int capacity)
Returns a newEXRVersion.Buffer
instance allocated withBufferUtils
.static EXRVersion
create(long address)
Returns a newEXRVersion
instance for the specified memory address.static EXRVersion.Buffer
create(long address, int capacity)
Create aEXRVersion.Buffer
instance at the specified memory.static EXRVersion
createSafe(long address)
static EXRVersion.Buffer
createSafe(long address, int capacity)
boolean
long_name()
Returns the value of thelong_name
field.EXRVersion
long_name(boolean value)
Sets the specified value to thelong_name
field.static EXRVersion
malloc()
Returns a newEXRVersion
instance allocated withmemAlloc
.static EXRVersion.Buffer
malloc(int capacity)
Returns a newEXRVersion.Buffer
instance allocated withmemAlloc
.static EXRVersion
mallocStack()
Returns a newEXRVersion
instance allocated on the thread-localMemoryStack
.static EXRVersion.Buffer
mallocStack(int capacity)
Returns a newEXRVersion.Buffer
instance allocated on the thread-localMemoryStack
.static EXRVersion.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newEXRVersion.Buffer
instance allocated on the specifiedMemoryStack
.static EXRVersion
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newEXRVersion
instance allocated on the specifiedMemoryStack
.boolean
multipart()
Returns the value of themultipart
field.EXRVersion
multipart(boolean value)
Sets the specified value to themultipart
field.static int
nlong_name(long struct)
Unsafe version oflong_name()
.static void
nlong_name(long struct, int value)
Unsafe version oflong_name
.static int
nmultipart(long struct)
Unsafe version ofmultipart()
.static void
nmultipart(long struct, int value)
Unsafe version ofmultipart
.static int
nnon_image(long struct)
Unsafe version ofnon_image()
.static void
nnon_image(long struct, int value)
Unsafe version ofnon_image
.boolean
non_image()
Returns the value of thenon_image
field.EXRVersion
non_image(boolean value)
Sets the specified value to thenon_image
field.static int
ntiled(long struct)
Unsafe version oftiled()
.static void
ntiled(long struct, int value)
Unsafe version oftiled
.static int
nversion(long struct)
Unsafe version ofversion()
.static void
nversion(long struct, int value)
Unsafe version ofversion
.EXRVersion
set(int version, boolean tiled, boolean long_name, boolean non_image, boolean multipart)
Initializes this struct with the specified values.EXRVersion
set(EXRVersion src)
Copies the specified struct data to this struct.int
sizeof()
boolean
tiled()
Returns the value of thetiled
field.EXRVersion
tiled(boolean value)
Sets the specified value to thetiled
field.int
version()
Returns the value of theversion
field.EXRVersion
version(int value)
Sets the specified value to theversion
field.
-
-
-
Constructor Detail
-
EXRVersion
public EXRVersion(java.nio.ByteBuffer container)
Creates aEXRVersion
instance at the current position of the specifiedByteBuffer
container. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
version
public int version()
Returns the value of theversion
field.
-
tiled
public boolean tiled()
Returns the value of thetiled
field.
-
long_name
public boolean long_name()
Returns the value of thelong_name
field.
-
non_image
public boolean non_image()
Returns the value of thenon_image
field.
-
multipart
public boolean multipart()
Returns the value of themultipart
field.
-
version
public EXRVersion version(int value)
Sets the specified value to theversion
field.
-
tiled
public EXRVersion tiled(boolean value)
Sets the specified value to thetiled
field.
-
long_name
public EXRVersion long_name(boolean value)
Sets the specified value to thelong_name
field.
-
non_image
public EXRVersion non_image(boolean value)
Sets the specified value to thenon_image
field.
-
multipart
public EXRVersion multipart(boolean value)
Sets the specified value to themultipart
field.
-
set
public EXRVersion set(int version, boolean tiled, boolean long_name, boolean non_image, boolean multipart)
Initializes this struct with the specified values.
-
set
public EXRVersion set(EXRVersion src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static EXRVersion malloc()
Returns a newEXRVersion
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static EXRVersion calloc()
Returns a newEXRVersion
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static EXRVersion create()
Returns a newEXRVersion
instance allocated withBufferUtils
.
-
create
public static EXRVersion create(long address)
Returns a newEXRVersion
instance for the specified memory address.
-
createSafe
@Nullable public static EXRVersion createSafe(long address)
-
malloc
public static EXRVersion.Buffer malloc(int capacity)
Returns a newEXRVersion.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static EXRVersion.Buffer calloc(int capacity)
Returns a newEXRVersion.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static EXRVersion.Buffer create(int capacity)
Returns a newEXRVersion.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static EXRVersion.Buffer create(long address, int capacity)
Create aEXRVersion.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static EXRVersion.Buffer createSafe(long address, int capacity)
-
mallocStack
public static EXRVersion mallocStack()
Returns a newEXRVersion
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static EXRVersion callocStack()
Returns a newEXRVersion
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static EXRVersion mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newEXRVersion
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static EXRVersion callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newEXRVersion
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static EXRVersion.Buffer mallocStack(int capacity)
Returns a newEXRVersion.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static EXRVersion.Buffer callocStack(int capacity)
Returns a newEXRVersion.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static EXRVersion.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newEXRVersion.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static EXRVersion.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newEXRVersion.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nversion
public static int nversion(long struct)
Unsafe version ofversion()
.
-
ntiled
public static int ntiled(long struct)
Unsafe version oftiled()
.
-
nlong_name
public static int nlong_name(long struct)
Unsafe version oflong_name()
.
-
nnon_image
public static int nnon_image(long struct)
Unsafe version ofnon_image()
.
-
nmultipart
public static int nmultipart(long struct)
Unsafe version ofmultipart()
.
-
nversion
public static void nversion(long struct, int value)
Unsafe version ofversion
.
-
ntiled
public static void ntiled(long struct, int value)
Unsafe version oftiled
.
-
nlong_name
public static void nlong_name(long struct, int value)
Unsafe version oflong_name
.
-
nnon_image
public static void nnon_image(long struct, int value)
Unsafe version ofnon_image
.
-
nmultipart
public static void nmultipart(long struct, int value)
Unsafe version ofmultipart
.
-
-