Interface FlowRender
access this type via: ui.FlowRender (provides, requires or uses)
FlowRender is a direct rendering API, generally used by applications such as video games. All of the functions in this API must only be called from the main thread of your program.
Constants
byte CURSOR_DEFAULT
byte CURSOR_HIDDEN
byte CURSOR_CUSTOM
byte CURSOR_IBEAM
byte CURSOR_HAND
byte CURSOR_WAIT
byte CURSOR_SIZENS
byte CURSOR_SIZEWE
byte CURSOR_SIZENWSE
byte CURSOR_SIZENESW
byte CURSOR_SIZEALL
Functions
FlowRender(optional int framerate)
FlowEvent[] getEvents()
void setVisible(bool v)
void setResizable(bool v)
void setFullScreen(bool v)
void setTitle(char title[])
void setIcon(storePixelMap p)
void setPosition(int x, int y)
void setSize(int w, int h)
void setCursor(byte cursorType, optional Cursor c)
WH getResolution()
PixelMap getPixels()
void close()
void renderBegin()
void renderEnd()
void wait()
Constants
CURSOR_DEFAULT
CURSOR_HIDDEN
CURSOR_CUSTOM
CURSOR_IBEAM
CURSOR_HAND
CURSOR_WAIT
CURSOR_SIZENS
CURSOR_SIZEWE
CURSOR_SIZENWSE
CURSOR_SIZENESW
CURSOR_SIZEALL
FlowRender(optional int framerate)
Initialise a new direct rendering window, optionally specifying a target framerate.
FlowEvent[] getEvents()
Get the input events which have arrived since this function was last called.
void setVisible(bool v)
Hide/show the window.
void setResizable(bool v)
Set the window as user-resizeable or not.
void setFullScreen(bool v)
Set the window as full-screen or not.
void setTitle(char title[])
Set the title of the window.
void setIcon(storePixelMap p)
Set the image used for the icon of the window.
void setPosition(int x, int y)
Set the x/y position of the window on the screen.
void setSize(int w, int h)
Set the width and height of the window.
void setCursor(byte cursorType, optional Cursor c)
Set the current mouse cursor of the window.
WH getResolution()
Get the screen resolution of the display on which the window resides.
PixelMap getPixels()
Get the window's rendered content as a pixel map.
void close()
Close the window (other functions on this API will not work after this).
void renderBegin()
Begin a new render sequence to draw a scene. Call renderEnd() to finish that scene and present it.
void renderEnd()
Finish a render sequence to present a scene to the viewer.
void wait()
Wait for framerate synch, if a particular framerate was configured on instantiation of the renderer.