public class Visual
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
struct Visual {
void * ext_data;
VisualID visualid;
int class;
unsigned long red_mask;
unsigned long green_mask;
unsigned long blue_mask;
int bits_per_rgb;
int map_entries;
}| Modifier and Type | Class and Description |
|---|---|
static class |
Visual.Buffer
An array of
Visual structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BITS_PER_RGB
The struct member offsets.
|
static int |
BLUE_MASK
The struct member offsets.
|
static int |
CLASS
The struct member offsets.
|
static int |
EXT_DATA
The struct member offsets.
|
static int |
GREEN_MASK
The struct member offsets.
|
static int |
MAP_ENTRIES
The struct member offsets.
|
static int |
RED_MASK
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
VISUALID
The struct member offsets.
|
| Constructor and Description |
|---|
Visual(java.nio.ByteBuffer container)
Creates a
Visual instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
bits_per_rgb()
Returns the value of the
bits_per_rgb field. |
Visual |
bits_per_rgb(int value)
Sets the specified value to the
bits_per_rgb field. |
long |
blue_mask()
Returns the value of the
blue_mask field. |
Visual |
blue_mask(long value)
Sets the specified value to the
blue_mask field. |
static Visual |
calloc()
Returns a new
Visual instance allocated with memCalloc. |
static Visual.Buffer |
calloc(int capacity)
Returns a new
Visual.Buffer instance allocated with memCalloc. |
static Visual |
callocStack()
Returns a new
Visual instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static Visual.Buffer |
callocStack(int capacity)
Returns a new
Visual.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static Visual.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
Visual.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static Visual |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
Visual instance allocated on the specified MemoryStack and initializes all its bits to zero. |
int |
class$()
Returns the value of the
class field. |
Visual |
class$(int value)
Sets the specified value to the
class field. |
static Visual |
create()
Returns a new
Visual instance allocated with BufferUtils. |
static Visual.Buffer |
create(int capacity)
Returns a new
Visual.Buffer instance allocated with BufferUtils. |
static Visual |
create(long address)
Returns a new
Visual instance for the specified memory address. |
static Visual.Buffer |
create(long address,
int capacity)
Create a
Visual.Buffer instance at the specified memory. |
static Visual |
createSafe(long address)
|
static Visual.Buffer |
createSafe(long address,
int capacity)
|
long |
ext_data()
Returns the value of the
ext_data field. |
Visual |
ext_data(long value)
Sets the specified value to the
ext_data field. |
long |
green_mask()
Returns the value of the
green_mask field. |
Visual |
green_mask(long value)
Sets the specified value to the
green_mask field. |
static Visual |
malloc()
Returns a new
Visual instance allocated with memAlloc. |
static Visual.Buffer |
malloc(int capacity)
Returns a new
Visual.Buffer instance allocated with memAlloc. |
static Visual |
mallocStack()
Returns a new
Visual instance allocated on the thread-local MemoryStack. |
static Visual.Buffer |
mallocStack(int capacity)
Returns a new
Visual.Buffer instance allocated on the thread-local MemoryStack. |
static Visual.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
Visual.Buffer instance allocated on the specified MemoryStack. |
static Visual |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
Visual instance allocated on the specified MemoryStack. |
int |
map_entries()
Returns the value of the
map_entries field. |
Visual |
map_entries(int value)
Sets the specified value to the
map_entries field. |
static int |
nbits_per_rgb(long struct)
Unsafe version of
bits_per_rgb(). |
static void |
nbits_per_rgb(long struct,
int value)
Unsafe version of
bits_per_rgb. |
static long |
nblue_mask(long struct)
Unsafe version of
blue_mask(). |
static void |
nblue_mask(long struct,
long value)
Unsafe version of
blue_mask. |
static int |
nclass$(long struct)
Unsafe version of
class$(). |
static void |
nclass$(long struct,
int value)
Unsafe version of
class$. |
static long |
next_data(long struct)
Unsafe version of
ext_data(). |
static void |
next_data(long struct,
long value)
Unsafe version of
ext_data. |
static long |
ngreen_mask(long struct)
Unsafe version of
green_mask(). |
static void |
ngreen_mask(long struct,
long value)
Unsafe version of
green_mask. |
static int |
nmap_entries(long struct)
Unsafe version of
map_entries(). |
static void |
nmap_entries(long struct,
int value)
Unsafe version of
map_entries. |
static long |
nred_mask(long struct)
Unsafe version of
red_mask(). |
static void |
nred_mask(long struct,
long value)
Unsafe version of
red_mask. |
static long |
nvisualid(long struct)
Unsafe version of
visualid(). |
static void |
nvisualid(long struct,
long value)
Unsafe version of
visualid. |
long |
red_mask()
Returns the value of the
red_mask field. |
Visual |
red_mask(long value)
Sets the specified value to the
red_mask field. |
Visual |
set(long ext_data,
long visualid,
int class$,
long red_mask,
long green_mask,
long blue_mask,
int bits_per_rgb,
int map_entries)
Initializes this struct with the specified values.
|
Visual |
set(Visual src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
long |
visualid()
Returns the value of the
visualid field. |
Visual |
visualid(long value)
Sets the specified value to the
visualid field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int EXT_DATA
public static final int VISUALID
public static final int CLASS
public static final int RED_MASK
public static final int GREEN_MASK
public static final int BLUE_MASK
public static final int BITS_PER_RGB
public static final int MAP_ENTRIES
public Visual(java.nio.ByteBuffer container)
Visual instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic long ext_data()
ext_data field.public long visualid()
visualid field.public int class$()
class field.public long red_mask()
red_mask field.public long green_mask()
green_mask field.public long blue_mask()
blue_mask field.public int bits_per_rgb()
bits_per_rgb field.public int map_entries()
map_entries field.public Visual ext_data(long value)
ext_data field.public Visual visualid(long value)
visualid field.public Visual class$(int value)
class field.public Visual red_mask(long value)
red_mask field.public Visual green_mask(long value)
green_mask field.public Visual blue_mask(long value)
blue_mask field.public Visual bits_per_rgb(int value)
bits_per_rgb field.public Visual map_entries(int value)
map_entries field.public Visual set(long ext_data, long visualid, int class$, long red_mask, long green_mask, long blue_mask, int bits_per_rgb, int map_entries)
public Visual set(Visual src)
src - the source structpublic static Visual malloc()
Visual instance allocated with memAlloc. The instance must be explicitly freed.public static Visual calloc()
Visual instance allocated with memCalloc. The instance must be explicitly freed.public static Visual create()
Visual instance allocated with BufferUtils.public static Visual create(long address)
Visual instance for the specified memory address.@Nullable public static Visual createSafe(long address)
public static Visual.Buffer malloc(int capacity)
Visual.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static Visual.Buffer calloc(int capacity)
Visual.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static Visual.Buffer create(int capacity)
Visual.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static Visual.Buffer create(long address, int capacity)
Visual.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static Visual.Buffer createSafe(long address, int capacity)
public static Visual mallocStack()
Visual instance allocated on the thread-local MemoryStack.public static Visual callocStack()
Visual instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static Visual mallocStack(org.lwjgl.system.MemoryStack stack)
Visual instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static Visual callocStack(org.lwjgl.system.MemoryStack stack)
Visual instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static Visual.Buffer mallocStack(int capacity)
Visual.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static Visual.Buffer callocStack(int capacity)
Visual.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static Visual.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Visual.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static Visual.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Visual.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static long next_data(long struct)
ext_data().public static long nvisualid(long struct)
visualid().public static int nclass$(long struct)
class$().public static long nred_mask(long struct)
red_mask().public static long ngreen_mask(long struct)
green_mask().public static long nblue_mask(long struct)
blue_mask().public static int nbits_per_rgb(long struct)
bits_per_rgb().public static int nmap_entries(long struct)
map_entries().public static void next_data(long struct,
long value)
ext_data.public static void nvisualid(long struct,
long value)
visualid.public static void nclass$(long struct,
int value)
class$.public static void nred_mask(long struct,
long value)
red_mask.public static void ngreen_mask(long struct,
long value)
green_mask.public static void nblue_mask(long struct,
long value)
blue_mask.public static void nbits_per_rgb(long struct,
int value)
bits_per_rgb.public static void nmap_entries(long struct,
int value)
map_entries.Copyright LWJGL. All Rights Reserved. License terms.