@Namespace(value="ale::stella") @NoOffset @Properties(inherit=ale.class) public class OSystem extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
OSystem()
Create a new OSystem abstract class
|
OSystem(long size)
Native array allocator.
|
OSystem(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
attach(Settings settings)
Adds the specified settings object to the system.
|
ColourPalette |
colourPalette() |
Console |
console()
Get the console of the system.
|
boolean |
create()
Create all child objects which belong to this OSystem
|
boolean |
createConsole() |
boolean |
createConsole(BytePointer romfile)
Creates a new game console from the specified romfile.
|
boolean |
createConsole(String romfile) |
void |
deleteConsole()
Deletes the currently defined console, if it exists.
|
Event |
event()
//ALE
Get the event object of the system
|
int |
frameRate()
Get the current framerate for the video system.
|
OSystem |
getPointer(long i) |
boolean |
openROM(BytePointer rom,
BytePointer md5,
byte[] image,
int[] size) |
boolean |
openROM(BytePointer rom,
BytePointer md5,
ByteBuffer image,
IntBuffer size) |
boolean |
openROM(BytePointer rom,
BytePointer md5,
BytePointer image,
IntPointer size) |
boolean |
openROM(BytePointer rom,
BytePointer md5,
PointerPointer image,
IntPointer size)
Open the given ROM and return an array containing its contents.
|
boolean |
openROM(String rom,
BytePointer md5,
byte[] image,
int[] size) |
boolean |
openROM(String rom,
BytePointer md5,
ByteBuffer image,
IntBuffer size) |
boolean |
openROM(String rom,
BytePointer md5,
BytePointer image,
IntPointer size) |
OSystem |
position(long position) |
BytePointer |
romFile()
This method should be called to get the full path of the currently
loaded ROM.
|
Screen |
screen()
Get the screen object of the system
|
void |
setFramerate(int framerate)
Set the framerate for the video system.
|
Settings |
settings()
Get the settings object of the system
|
Sound |
sound()
Get the sound object of the system
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public OSystem(Pointer p)
Pointer(Pointer)
.public OSystem(long size)
Pointer.position(long)
.public OSystem()
public OSystem getPointer(long i)
getPointer
in class Pointer
@Cast(value="bool") public boolean create()
public void attach(Settings settings)
settings
- The settings object to addpublic Event event()
@ByRef public Settings settings()
public void setFramerate(@Cast(value="uint32_t") int framerate)
framerate
- The video framerate to use@Cast(value="uint32_t") public int frameRate()
@StdString public BytePointer romFile()
@Cast(value="bool") public boolean createConsole(@Cast(value="const char*") BytePointer romfile)
romfile
- The full pathname of the ROM to usepublic void deleteConsole()
@Cast(value="bool") public boolean openROM(@Cast(value="const char*") BytePointer rom, @StdString @ByRef BytePointer md5, @Cast(value="uint8_t**") PointerPointer image, IntPointer size)
rom
- The absolute pathname of the ROM filemd5
- The md5 calculated from the ROM fileimage
- A pointer to store the ROM data
Note, the calling method is responsible for deleting thissize
- The amount of data read into the image array@Cast(value="bool") public boolean openROM(@Cast(value="const char*") BytePointer rom, @StdString @ByRef BytePointer md5, @Cast(value="uint8_t**") @ByPtrPtr BytePointer image, IntPointer size)
@Cast(value="bool") public boolean openROM(String rom, @StdString @ByRef BytePointer md5, @Cast(value="uint8_t**") @ByPtrPtr ByteBuffer image, IntBuffer size)
@Cast(value="bool") public boolean openROM(@Cast(value="const char*") BytePointer rom, @StdString @ByRef BytePointer md5, @Cast(value="uint8_t**") @ByPtrPtr byte[] image, int[] size)
@Cast(value="bool") public boolean openROM(String rom, @StdString @ByRef BytePointer md5, @Cast(value="uint8_t**") @ByPtrPtr BytePointer image, IntPointer size)
@Cast(value="bool") public boolean openROM(@Cast(value="const char*") BytePointer rom, @StdString @ByRef BytePointer md5, @Cast(value="uint8_t**") @ByPtrPtr ByteBuffer image, IntBuffer size)
@Cast(value="bool") public boolean openROM(String rom, @StdString @ByRef BytePointer md5, @Cast(value="uint8_t**") @ByPtrPtr byte[] image, int[] size)
@ByRef public ColourPalette colourPalette()
Copyright © 2022. All rights reserved.