GLDisplay class, available in: Framsticks TheaterOpenGL display for the Framsticks Theater application.This class has 39 members:
sdleiF
int active RO0 .. 1 (false/true)graphics display is active
string back_actionBack button actionNot implemented in the old Framsticks Theater application.
string bannerBanner
int bgcolor0 .. 16777215
default=16777215
Background colorNot implemented in the old Framsticks Theater application.
float desiredsimspeed0 .. 999999
default=0.0
Desired simulation speedDesired simulation speed in steps/second. 0 = simulation is disabled.
int dustcolor0 .. 16777215
default=15126952
Dust colorNot implemented in the old Framsticks Theater application.
XYZ envmap_probe_positionEnvmap probe positionUsed to generate the environment texture map for reflective materials.
Not implemented in the old Framsticks Theater application.
string envmap_skyboxEnvmap skyboxAlternative skybox used for the environment texture map generation. The default empty value means using the same 'envmap' as displayed in the world.
Not implemented in the old Framsticks Theater application.
float fps ROFPSFrames Per Second (measured)
int fpsvisible0 .. 1 (false/true)Display the FPS meter?
int has_screen_timeout RO0 .. 1 (false/true)Has screen timeoutNot implemented in the old Framsticks Theater application.
int maxfps1 .. 100
default=30
Maximum fps
string menu_groupParam group displayed in toplevel menuDefault empty value means all groups. Groups can be also displayed as submenus by adding action parameters having ids of "showgroup_TheNameOfTheGroupToShow".
Not implemented in the old Framsticks Theater application.
string menu_stateCurrently displayed menu itemNot implemented in the old Framsticks Theater application.
int menu_visible0 .. 1 (false/true)Show menuNot implemented in the old Framsticks Theater application.
int messagesVisible0 .. 1 (false/true)Show log
object messagesWindow ROGet the log windowget window object (class Window)
int minfps1 .. 100
default=5
Minimum fps
int mode0 .. 2
  • 0 = Normal
  • 1 = VR
  • 2 = AR
  • Display modeNot implemented in the old Framsticks Theater application.
    int screen_timeout_enabled0 .. 1 (false/true)
    default=1
    Screen timeout enabledNot implemented in the old Framsticks Theater application.
    int simsteps0 .. 999999
    default=0
    Simulation steps per frame0 = simulation is disabled. In most cases you should use desiredsimspeed as it ensures automatic throttle control.
    int size_x RODisplay width
    int size_y RODisplay height
    string skyboxWorld panoramaTraditionally, all visualization aspects belonged to the *.style file, which is not yet implemented in mobi version. But actually, changing some (or even all) aspects of the world directly in the show might be highly desirable in many "interactive" scripts. So this is the forerunner.
    Skybox name can be a list of 6 cube face textures (separated by slash), single name with _ placeholder (will be replaced by 1-6 for 6 cube faces) or a regular name (the same texture on all 6 faces).
    Not implemented in the old Framsticks Theater application.
    int supported_modes RO0 .. 7Supported display modesBitmask of supported display modes.Not implemented in the old Framsticks Theater application.
    int user_interaction0 .. 255
    default=127
    Selection of allowed user actionsBit field:
    1 - menu access
    2 - rotate camera
    4 - use manupulator
    8 - select creatures
    16 - change ShowManager options in menu (including switching shows)
    32 - change display mode (normal/VR/AR)
    64 - extract genotype
    128 - change display mode buttons visibility
    Bits 2-128 are not implemented in the old Framsticks Theater application.
    float userspeed0 .. 100
    default=1.0
    simspeed user adjustmentUser interface sets this property to adjust simulation speed.
    Obj3D world3d ROWorld 3D objectsNot implemented in the old Framsticks Theater application.
    int world_visibility0 .. 31
    default=31
    Selection of world display componentsBit field:
    1 - background/panorama
    2 - environment
    4 - creatures
    8 - dust (particles)
    16 - energy transfers (particles)
    Not implemented in the old Framsticks Theater application.
    snoitcnuF
    function clearMessages()Clear the log window
    function createWindow(int style, string title, object client)returns WindowCreate a Windowcreate and return the new window object.
    function deleteWindow(Window)doesn't return a valueDelete a Window
    function draw()draw
    function newCreatureCharts()Create CreatureChartsManager
    function newSimStatsCharts()Create SimStatsChartsManager
    function project3D(untyped object, XYZ point)returns XYZproject 3D coordinatesReturns 2D position of the 3D point in world or modelviewer coordinates, 'object' can be Obj3D or GUIElement/Model
    Not implemented in the old Framsticks Theater application.
    function quit()quit
    function resume()resume
    function stop()stop
    Global context>>Experiment definition>>Command line interface>>Framsticks Theater