@Namespace(value="ale") @NoOffset @Properties(inherit=ale.class) public class ALEScreen extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
ALEScreen(ALEScreen rhs) |
ALEScreen(int h,
int w) |
ALEScreen(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
arraySize()
Returns the size of the underlying array
|
boolean |
equals(ALEScreen rhs)
Returns whether two screens are equal
|
byte |
get(int r,
int c)
pixel accessors, (row, column)-ordered
|
BytePointer |
getArray()
Access the whole array
|
BytePointer |
getRow(int r)
Access a whole row
|
long |
height()
Dimensionality information
|
BytePointer |
pixel(int r,
int c) |
ALEScreen |
put(ALEScreen rhs) |
long |
width() |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public ALEScreen(Pointer p)
Pointer(Pointer)
.public ALEScreen(int h, int w)
@Cast(value="ale::pixel_t") public byte get(int r, int c)
@Cast(value="ale::pixel_t*") public BytePointer pixel(int r, int c)
@Cast(value="ale::pixel_t*") public BytePointer getRow(int r)
@Cast(value="ale::pixel_t*") public BytePointer getArray()
Copyright © 2022. All rights reserved.