The main class of the program.

Sys is a singleton class, its only instance is accessible from everywhere with sys.

Because of this, methods that should be accessible from everywhere, like print or exit, are defined in Sys. Moreover, unless there is an ambiguity with self, the receiver of a call to these methods is implicitly sys. Basically it means that the two following instructions are equivalent.

print "Hello World"
sys.print "Hello World"

Methods Implicitly Defined in Sys

Sys is the class where are defined top-level methods, i.e. those defined outside of any class like in a procedural language. Basically it means that

redef class Sys
   fun foo do print "hello"
end

is equivalent with

fun foo print "hello"

As a corollary, in a top-level method, self (the current receiver) is always sys.

Introduced properties

fun active_actors: SynchronizedCounter

core :: Sys :: active_actors

Number of active actors
protected fun active_actors=(active_actors: SynchronizedCounter)

core :: Sys :: active_actors=

Number of active actors
fun add_history(data: String)

core :: Sys :: add_history

Adds the data String to the history no matter what it contains
fun all_root_textures: TextureSet

core :: Sys :: all_root_textures

All declared root textures
protected fun all_root_textures=(all_root_textures: TextureSet)

core :: Sys :: all_root_textures=

All declared root textures
fun alpha_comparator: Comparator

core :: Sys :: alpha_comparator

Stateless comparator that naively use to_s to compare things.
fun android_r_layout_simple_list_item_1: Int

core :: Sys :: android_r_layout_simple_list_item_1

Java getter: android.R$layout.simple_list_item_1
fun android_r_layout_simple_list_item_2: Int

core :: Sys :: android_r_layout_simple_list_item_2

Java getter: android.R$layout.simple_list_item_2
fun android_r_layout_simple_list_item_activated_1: Int

core :: Sys :: android_r_layout_simple_list_item_activated_1

Java getter: android.R$layout.simple_list_item_activated_1
fun android_r_layout_simple_list_item_activated_2: Int

core :: Sys :: android_r_layout_simple_list_item_activated_2

Java getter: android.R$layout.simple_list_item_activated_2
fun android_r_layout_simple_list_item_checked: Int

core :: Sys :: android_r_layout_simple_list_item_checked

Java getter: android.R$layout.simple_list_item_checked
fun android_r_layout_simple_list_item_multiple_choice: Int

core :: Sys :: android_r_layout_simple_list_item_multiple_choice

Java getter: android.R$layout.simple_list_item_multiple_choice
fun android_r_layout_simple_list_item_single_choice: Int

core :: Sys :: android_r_layout_simple_list_item_single_choice

Java getter: android.R$layout.simple_list_item_single_choice
fun android_r_layout_simple_selectable_list_item: Int

core :: Sys :: android_r_layout_simple_selectable_list_item

Java getter: android.R$layout.simple_selectable_list_item
fun android_r_style_text_appearance_large: Int

core :: Sys :: android_r_style_text_appearance_large

Java getter: android.R$style.TextAppearance_Large
fun android_r_style_text_appearance_medium: Int

core :: Sys :: android_r_style_text_appearance_medium

Java getter: android.R$style.TextAppearance_Medium
fun android_r_style_text_appearance_small: Int

core :: Sys :: android_r_style_text_appearance_small

Java getter: android.R$style.TextAppearance_Small
fun android_view_key_event_keycode_back: Int

core :: Sys :: android_view_key_event_keycode_back

Java getter: android.view.KeyEvent.KEYCODE_BACK
fun android_widget_adapter_ignore_item_view_type: Int

core :: Sys :: android_widget_adapter_ignore_item_view_type

Java getter: android.widget.Adapter.IGNORE_ITEM_VIEW_TYPE
fun android_widget_adapter_no_selection: Int

core :: Sys :: android_widget_adapter_no_selection

Java getter: android.widget.Adapter.NO_SELECTION
fun app: App

core :: Sys :: app

The running App
fun args: Sequence[String]

core :: Sys :: args

The arguments of the program as given by the OS
fun arr_len: Counter[Int]

core :: Sys :: arr_len

Keeps the average length of an Array when calling to_s
protected fun arr_len=(arr_len: Counter[Int])

core :: Sys :: arr_len=

Keeps the average length of an Array when calling to_s
fun arr_s_len: Counter[Int]

core :: Sys :: arr_s_len

Tracks the average length of the Strings of an array when calling to_s
protected fun arr_s_len=(arr_s_len: Counter[Int])

core :: Sys :: arr_s_len=

Tracks the average length of the Strings of an array when calling to_s
fun asciiflatstr_allocations: Int

core :: Sys :: asciiflatstr_allocations

Counts the number of allocations of ASCIIFlatString
protected fun asciiflatstr_allocations=(asciiflatstr_allocations: Int)

core :: Sys :: asciiflatstr_allocations=

Counts the number of allocations of ASCIIFlatString
fun asset_textures_by_name: Map[String, TextureAsset]

core :: Sys :: asset_textures_by_name

Textures loaded from .mtl files for models
protected fun asset_textures_by_name=(asset_textures_by_name: Map[String, TextureAsset])

core :: Sys :: asset_textures_by_name=

Textures loaded from .mtl files for models
fun atan2(y: Float, x: Float): Float

core :: Sys :: atan2

Computes the arc tangent given y and x.
protected fun atomic=(atomic: AtomicInt)

core :: Sys :: atomic=

fun auto_hash_display: Bool

core :: Sys :: auto_hash_display

Activate the automatic call of show_hash_stats at the end of programs
fun auto_hash_display=(auto_hash_display: Bool)

core :: Sys :: auto_hash_display=

Activate the automatic call of show_hash_stats at the end of programs
fun avg_arr_len: Float

core :: Sys :: avg_arr_len

Compute the average array length.
fun avg_s_len: Float

core :: Sys :: avg_s_len

Compute the average string length.
fun bar(i: Int, s: String): Threadedbar

core :: Sys :: bar

Parameterized threaded method, same as foo, but with parameters
fun baz(i: Int, j: Int): Threadedbaz

core :: Sys :: baz

Parameterized threaded method with a return type
fun bev_event_connected: Int

core :: Sys :: bev_event_connected

connect operation finished.
fun bev_event_eof: Int

core :: Sys :: bev_event_eof

eof file reached
fun bev_event_error: Int

core :: Sys :: bev_event_error

unrecoverable error encountered
fun bev_event_reading: Int

core :: Sys :: bev_event_reading

error encountered while reading
fun bev_event_timeout: Int

core :: Sys :: bev_event_timeout

user-specified timeout reached
fun bev_event_writing: Int

core :: Sys :: bev_event_writing

error encountered while writing
fun bev_opt_close_on_free: Int

core :: Sys :: bev_opt_close_on_free

Close the underlying file descriptor/bufferevent/whatever when this bufferevent is freed.
fun bev_opt_defer_callbacks: Int

core :: Sys :: bev_opt_defer_callbacks

Run callbacks deferred in the event loop.
fun bev_opt_threadsafe: Int

core :: Sys :: bev_opt_threadsafe

If threading is enabled, protect the operations on this bufferevent with a lock.
fun bev_opt_unlock_callbacks: Int

core :: Sys :: bev_opt_unlock_callbacks

If set, callbacks are executed without locks being held on the bufferevent.
fun bind_screen_framebuffer(fbo: Int)

core :: Sys :: bind_screen_framebuffer

Portable indirection to glBindFramebuffer(gl_FRAMEBUFFER, fbo)
fun bindtextdomain(domain: String, dir: String)

core :: Sys :: bindtextdomain

Gettext bindtextdomain, SEE gettext manual for further info
fun blue: Int

core :: Sys :: blue

fun bound_platform: String

core :: Sys :: bound_platform

Platform bound at compilation (by importation or -m)
fun buffer_mode_full: Int

core :: Sys :: buffer_mode_full

Enumeration for buffer mode full (flushes when buffer is full)
fun buffer_mode_line: Int

core :: Sys :: buffer_mode_line

Enumeration for buffer mode line (flushes when a \n is encountered)
fun buffer_mode_none: Int

core :: Sys :: buffer_mode_none

Enumeration for buffer mode none (flushes ASAP when something is written)
fun byte_length_call: Counter[String]

core :: Sys :: byte_length_call

Counter of the times byte_length is called on FlatString
protected fun byte_length_call=(byte_length_call: Counter[String])

core :: Sys :: byte_length_call=

Counter of the times byte_length is called on FlatString
fun bytepos_call: Counter[String]

core :: Sys :: bytepos_call

Counter of the times bytepos is called on each type of receiver
protected fun bytepos_call=(bytepos_call: Counter[String])

core :: Sys :: bytepos_call=

Counter of the times bytepos is called on each type of receiver
fun check_error(loc: String)

core :: Sys :: check_error

Check for an error, then print and clear it
fun check_signals: Bool

core :: Sys :: check_signals

Check signals for safe operation
protected fun chk_sums=(chk_sums: Array[Int])

core :: Sys :: chk_sums=

fun chunk_sz: Int

core :: Sys :: chunk_sz

protected fun chunk_sz=(chunk_sz: Int)

core :: Sys :: chunk_sz=

fun cib: Array[Float]

core :: Sys :: cib

protected fun cib=(cib: Array[Float])

core :: Sys :: cib=

abstract fun class_inheritance_metamodel: POSet[String]

core :: Sys :: class_inheritance_metamodel

Class inheritance graph, implemented by the json package
protected fun class_inheritance_metamodel=(class_inheritance_metamodel: POSet[String])

core :: Sys :: class_inheritance_metamodel=

fun clear_hash_stats

core :: Sys :: clear_hash_stats

Reset the hash statistics to 0
fun clock_agent=(clock_agent: ClockAgent)

core :: Sys :: clock_agent=

fun colors: Array[String]

core :: Sys :: colors

protected fun colors=(colors: Array[String])

core :: Sys :: colors=

fun comm_world: Comm

core :: Sys :: comm_world

Shortcut to the world communicator (same as new Comm.world)
fun complements: Array[Array[Int]]

core :: Sys :: complements

Matrix for complementing colors
protected fun complements=(complements: Array[Array[Int]])

core :: Sys :: complements=

Matrix for complementing colors
fun concat_allocations: Int

core :: Sys :: concat_allocations

Counts the number of allocations of Concat
protected fun concat_allocations=(concat_allocations: Int)

core :: Sys :: concat_allocations=

Counts the number of allocations of Concat
fun concat_cache_miss: Int

core :: Sys :: concat_cache_miss

Count the number of times that an indexed access
protected fun concat_cache_miss=(concat_cache_miss: Int)

core :: Sys :: concat_cache_miss=

Count the number of times that an indexed access
fun convex_hull(points: Array[Point[Float]]): ConvexPolygon

core :: Sys :: convex_hull

Get the convex hull of the set of points
fun crb: Array[Float]

core :: Sys :: crb

protected fun crb=(crb: Array[Float])

core :: Sys :: crb=

protected fun create_default_jvm

core :: Sys :: create_default_jvm

Called by jvm and jni_env to instantiate a Java Virtual Machine.
fun data: Array[Array[Int]]

core :: Sys :: data

protected fun data=(data: Array[Array[Int]])

core :: Sys :: data=

fun debug_gamnit: Bool

core :: Sys :: debug_gamnit

Should Gamnit be more verbose?
fun debug_level: Int

core :: Sys :: debug_level

Debug severity level
protected fun debug_level=(debug_level: Int)

core :: Sys :: debug_level=

Debug severity level
fun default_comparator: DefaultComparator

core :: Sys :: default_comparator

Easy-to-use general stateless default comparator that uses <=> to compare things.
fun default_reverse_comparator: DefaultReverseComparator

core :: Sys :: default_reverse_comparator

Easy-to-use general stateless default reverse comparator.
fun discover_local_servers(timeout: nullable Float): Array[RemoteServerConfig]

core :: Sys :: discover_local_servers

Discover local servers responding on UDP discovery_port
fun discovery_port: Int

core :: Sys :: discovery_port

Server port listening for discovery requests
fun div(n: Int, d: Int): String

core :: Sys :: div

Helper function to display n/d and handle division by 0
fun egid: Int

core :: Sys :: egid

The effective group id of this process
fun egid=(gid: Int): Bool

core :: Sys :: egid=

Set the effective group id of this process
fun egl_default_display: Pointer

core :: Sys :: egl_default_display

Handle to the default display to use with EGL
fun en_count: Int

core :: Sys :: en_count

Number of calls of HashCollection::enlarge
protected fun en_count=(en_count: Int)

core :: Sys :: en_count=

Number of calls of HashCollection::enlarge
fun en_tot_cap: Int

core :: Sys :: en_tot_cap

Total capacity of hash collections receiver HashCollection::enlarge
protected fun en_tot_cap=(en_tot_cap: Int)

core :: Sys :: en_tot_cap=

Total capacity of hash collections receiver HashCollection::enlarge
fun en_tot_length: Int

core :: Sys :: en_tot_length

Total length of hash collections receiver of HashCollection::enlarge
protected fun en_tot_length=(en_tot_length: Int)

core :: Sys :: en_tot_length=

Total length of hash collections receiver of HashCollection::enlarge
fun enable_debug_mode

core :: Sys :: enable_debug_mode

Enable some relatively expensive debugging checks that would normally be turned off
fun english_freqs: HashMap[Char, Float]

core :: Sys :: english_freqs

English letter frequency map
protected fun english_freqs=(english_freqs: HashMap[Char, Float])

core :: Sys :: english_freqs=

English letter frequency map
fun errno: Int

core :: Sys :: errno

Number of the last error
fun error_level: Int

core :: Sys :: error_level

Error severity level
protected fun error_level=(error_level: Int)

core :: Sys :: error_level=

Error severity level
fun euid: Int

core :: Sys :: euid

The effective user id of this process
fun euid=(uid: Int): Bool

core :: Sys :: euid=

Set the effective user id of this process
fun ev_read: Int

core :: Sys :: ev_read

Read operation
fun ev_write: Int

core :: Sys :: ev_write

Write operation
fun evutil_socket_error: Int

core :: Sys :: evutil_socket_error

Global error code for the last socket operation on the calling thread
fun evutil_socket_error_to_string(error_code: Int): CString

core :: Sys :: evutil_socket_error_to_string

Convert an error code from evutil_socket_error to a string
intern fun exit(exit_value: Int)

core :: Sys :: exit

Quit the program with a specific return code
fun exit_thread(value: nullable Object)

core :: Sys :: exit_thread

Exit current thread and return value to caller of Thread::join
fun fact: Array[Int]

core :: Sys :: fact

protected fun fact=(fact: Array[Int])

core :: Sys :: fact=

fun fatal_level: Int

core :: Sys :: fatal_level

Fatal severity level
protected fun fatal_level=(fatal_level: Int)

core :: Sys :: fatal_level=

Fatal severity level
fun file_open(path: String): ForAbuser[FileReader]

core :: Sys :: file_open

Open and read a file through a for abuse.
fun first_byte_call: Int

core :: Sys :: first_byte_call

Calls to the first_byte property of a FlatString
protected fun first_byte_call=(first_byte_call: Int)

core :: Sys :: first_byte_call=

Calls to the first_byte property of a FlatString
fun flatbuf_allocations: Int

core :: Sys :: flatbuf_allocations

Counts the number of allocations of FlatBuffer
protected fun flatbuf_allocations=(flatbuf_allocations: Int)

core :: Sys :: flatbuf_allocations=

Counts the number of allocations of FlatBuffer
fun foo: Threadedfoo

core :: Sys :: foo

the is threaded annotation makes this method run on an other thread
fun force_console_colors: Bool

core :: Sys :: force_console_colors

Force coloring terminal output, even if stdout is not a TTY?
fun force_console_colors=(force_console_colors: Bool)

core :: Sys :: force_console_colors=

Force coloring terminal output, even if stdout is not a TTY?
intern fun force_garbage_collection

core :: Sys :: force_garbage_collection

Initiate a garbage collection
fun fun_to_s: Function[Object, String]

core :: Sys :: fun_to_s

Stateless singleton that reify to the to_s method.
fun gdk_threads_add_idle(task: Task): Int

core :: Sys :: gdk_threads_add_idle

Add a callback to execute whenever there are no higher priority events pending
fun gen_generics(nargs: Int): Array[String]

core :: Sys :: gen_generics

Generates of an array of formal type as strings.
fun generate_functypes(n: Int, writer: Writer)

core :: Sys :: generate_functypes

Writes all functional types
fun generate_token(length: nullable Int, force_rand: nullable Bool): String

core :: Sys :: generate_token

Generate a random token of length chars long
fun get_github_oauth: String

core :: Sys :: get_github_oauth

Gets the Github token from git configuration
fun get_microtime: Int

core :: Sys :: get_microtime

The number of microseconds elapsed since January 1, 1970
fun get_millitime: Int

core :: Sys :: get_millitime

The number of milliseconds elapsed since January 1, 1970
fun get_time: Int

core :: Sys :: get_time

The number of seconds elapsed since January 1, 1970
fun getc: Char

core :: Sys :: getc

Read a character from the standard input (stdin).
fun getcwd: String

core :: Sys :: getcwd

Return the working (current) directory
fun gethostbyname(name: CString): NativeSocketHostent

core :: Sys :: gethostbyname

Get network host entry
fun gets: String

core :: Sys :: gets

Read a line from the standard input (stdin).
fun gid: Int

core :: Sys :: gid

Current real group id of this process
fun gid=(gid: Int): Bool

core :: Sys :: gid=

Set the current real group id of this process
fun gl: GLES

core :: Sys :: gl

Entry points to OpenGL ES 2.0 services
fun glActiveTexture(texture: GLTextureUnit)

core :: Sys :: glActiveTexture

Select server-side active texture unit
fun glAttachShader(program: GLProgram, shader: GLShader)

core :: Sys :: glAttachShader

Attach a shader to program
fun glBindBuffer(target: GLArrayBuffer, buffer: Int)

core :: Sys :: glBindBuffer

Bind the named buffer object
fun glBindFramebuffer(target: GLFramebufferTarget, framebuffer: Int)

core :: Sys :: glBindFramebuffer

Bind framebuffer to a framebuffer target
fun glBindRenderbuffer(target: GLRenderbufferTarget, renderbuffer: Int)

core :: Sys :: glBindRenderbuffer

Bind renderbuffer to a renderbuffer target
fun glBindTexture(target: GLTextureTarget, texture: Int)

core :: Sys :: glBindTexture

Bind the named texture to a target
fun glBlendFunc(src_factor: GLBlendFactor, dst_factor: GLBlendFactor)

core :: Sys :: glBlendFunc

Set the pixel arithmetic for the blending operations
fun glBufferData(target: GLArrayBuffer, size: Int, data: Pointer, usage: GLBufferUsage)

core :: Sys :: glBufferData

Create and initialize a buffer object's data store
fun glBufferSubData(target: GLArrayBuffer, offset: Int, size: Int, data: Pointer)

core :: Sys :: glBufferSubData

Update a subset of a buffer object's data store
fun glCheckFramebufferStatus(target: GLFramebufferTarget): GLFramebufferStatus

core :: Sys :: glCheckFramebufferStatus

Completeness status of a framebuffer object
fun glClear

core :: Sys :: glClear

fun glClear(buffer: GLBuffer)

core :: Sys :: glClear

Clear the buffer
fun glClearColor(red: Float, green: Float, blue: Float, alpha: Float)

core :: Sys :: glClearColor

Specify the clear values for the color buffer, default values are at 0.0
fun glClearDepthf(value: Float)

core :: Sys :: glClearDepthf

Specify the clear value for the depth buffer, default at 1.0
fun glClearStencil(value: Int)

core :: Sys :: glClearStencil

Specify the clear value for the stencil buffer, default at 0
fun glColorMask(red: Bool, green: Bool, blue: Bool, alpha: Bool)

core :: Sys :: glColorMask

Enable and disable writing of frame buffer color components
fun glCompileShader(shader: GLShader)

core :: Sys :: glCompileShader

Compile the shader object
fun glCopyTexImage2D(target: GLTextureTarget, level: Int, internalformat: GLPixelFormat, x: Int, y: Int, width: Int, height: Int, border: Int)

core :: Sys :: glCopyTexImage2D

Copy pixels into a 2D texture image
fun glCopyTexSubImage2D(target: GLTextureTarget, level: Int, xoffset: Int, yoffset: Int, x: Int, y: Int, width: Int, height: Int)

core :: Sys :: glCopyTexSubImage2D

Copy a two-dimensional texture subimage
fun glCreateProgram: GLProgram

core :: Sys :: glCreateProgram

Create a program object
fun glCreateShader(shader_type: GLShaderType): GLShader

core :: Sys :: glCreateShader

Create a shader object of the shader_type
fun glCullFace(mode: GLCullFaceMode)

core :: Sys :: glCullFace

Specify whether front- or back-facing polygons can be culled, default is back only
fun glDeleteBuffers(buffers: SequenceRead[Int])

core :: Sys :: glDeleteBuffers

Delete named buffer objects
fun glDeleteFramebuffers(framebuffers: SequenceRead[Int])

core :: Sys :: glDeleteFramebuffers

Delete named framebuffer objects
fun glDeleteProgram(program: GLProgram)

core :: Sys :: glDeleteProgram

Delete the program object
fun glDeleteRenderbuffers(renderbuffers: SequenceRead[Int])

core :: Sys :: glDeleteRenderbuffers

Delete named renderbuffer objects
fun glDeleteShader(shader: GLShader)

core :: Sys :: glDeleteShader

Delete the shader object
fun glDeleteTextures(textures: SequenceRead[Int])

core :: Sys :: glDeleteTextures

Delete named textures
fun glDepthFunc(func: GLDepthFunc)

core :: Sys :: glDepthFunc

Specify the value used for depth buffer comparisons
fun glDepthMask(value: Bool)

core :: Sys :: glDepthMask

Enable or disable writing into the depth buffer
fun glDepthRangef(near: Float, far: Float)

core :: Sys :: glDepthRangef

Specify mapping of depth values from normalized device coordinates to window coordinates
fun glDetachShader(program: GLProgram, shader: GLShader)

core :: Sys :: glDetachShader

Detach shader from program
fun glDisableVertexAttribArray(index: Int)

core :: Sys :: glDisableVertexAttribArray

Disable the generic vertex attribute array at index
fun glDrawArrays(mode: GLDrawMode, from: Int, count: Int)

core :: Sys :: glDrawArrays

Render primitives from array data
fun glDrawElements(mode: GLDrawMode, count: Int, typ: GLDataType, indices: Pointer)

core :: Sys :: glDrawElements

Render primitives from array data by their index listed in indices
fun glDrawElementsi(mode: GLDrawMode, count: Int, typ: GLDataType, offset: Int)

core :: Sys :: glDrawElementsi

Render primitives from array data, at offset in the element buffer
fun glEnable

core :: Sys :: glEnable

fun glEnableVertexAttribArray(index: Int)

core :: Sys :: glEnableVertexAttribArray

Enable the generic vertex attribute array at index
fun glFinish

core :: Sys :: glFinish

Block until all GL execution is complete
fun glFinish

core :: Sys :: glFinish

fun glFlush

core :: Sys :: glFlush

fun glFlush

core :: Sys :: glFlush

Force execution of GL commands in finite time
fun glFramebufferRenderbuffer(target: GLFramebufferTarget, attachment: GLAttachment, renderbuffertarget: GLRenderbufferTarget, renderbuffer: Int)

core :: Sys :: glFramebufferRenderbuffer

Attach a renderbuffer object to a framebuffer object
fun glFramebufferTexture2D(target: GLFramebufferTarget, attachment: GLAttachment, texture_target: GLTextureTarget, texture: Int, level: Int)

core :: Sys :: glFramebufferTexture2D

Attach a level of a texture object as a logical buffer to the currently bound framebuffer object
fun glFrontFace(mode: GLFrontFaceMode)

core :: Sys :: glFrontFace

Define front- and back-facing polygons, gc_CCW by default
fun glGenBuffers(n: Int): Array[Int]

core :: Sys :: glGenBuffers

Generate n buffer names
fun glGenFramebuffers(n: Int): Array[Int]

core :: Sys :: glGenFramebuffers

Generate n framebuffer object names
fun glGenRenderbuffers(n: Int): Array[Int]

core :: Sys :: glGenRenderbuffers

Generate n renderbuffer object names
fun glGenTextures(n: Int): Array[Int]

core :: Sys :: glGenTextures

Generate n texture names
fun glGenerateMipmap(target: GLTextureTarget)

core :: Sys :: glGenerateMipmap

Generate and fill set of mipmaps for the texture object target
fun glGetBooleanv(pname: GLGetParameterName, offset: Int): Bool

core :: Sys :: glGetBooleanv

Get the value of the parameter pname at offset
fun glGetError: GLError

core :: Sys :: glGetError

Error information
fun glGetFloatv(pname: GLGetParameterName, offset: Int): Float

core :: Sys :: glGetFloatv

Get the value of the parameter pname at offset
fun glGetIntegerv(pname: GLGetParameterName, offset: Int): Int

core :: Sys :: glGetIntegerv

Get the value of the parameter pname at offset
fun glGetProgramInfoLog(program: GLProgram): String

core :: Sys :: glGetProgramInfoLog

The information log for the program object
fun glGetProgramiv(program: GLProgram, pname: GLGetParameterName): Int

core :: Sys :: glGetProgramiv

Parameter value from a program object
fun glGetShaderInfoLog(shader: GLShader): String

core :: Sys :: glGetShaderInfoLog

The information log for the shader object
fun glGetShaderiv(shader: GLShader, pname: GLGetParameterName): Int

core :: Sys :: glGetShaderiv

Get a parameter value from a shader object
fun glGetString(name: GLEnum): String

core :: Sys :: glGetString

Return a string describing the current GL configuration
fun glHint(target: GLHintTarget, mode: GLHintMode)

core :: Sys :: glHint

Specify implementation specific hints
fun glHint

core :: Sys :: glHint

fun glIsBuffer(name: Int): Bool

core :: Sys :: glIsBuffer

Does name corresponds to a buffer object?
fun glIsFramebuffer(name: Int): Bool

core :: Sys :: glIsFramebuffer

Does name corresponds to a framebuffer object?
fun glIsProgram(name: GLProgram): Bool

core :: Sys :: glIsProgram

Does name corresponds to a program object?
fun glIsRenderbuffer(name: Int): Bool

core :: Sys :: glIsRenderbuffer

Does name corresponds to a renderbuffer object?
fun glIsShader(name: GLShader): Bool

core :: Sys :: glIsShader

Does name corresponds to a shader object?
fun glIsTexture(name: Int): Bool

core :: Sys :: glIsTexture

Does name corresponds to a texture?
fun glLineWidth(width: Float)

core :: Sys :: glLineWidth

Specify the width of rasterized lines
fun glLinkProgram(program: GLProgram)

core :: Sys :: glLinkProgram

Link the program object
fun glPixelStorei(parameter: GLPack, val: Int)

core :: Sys :: glPixelStorei

Set pixel storage modes
fun glPolygonOffset(factor: Float, units: Float)

core :: Sys :: glPolygonOffset

Set the scale and units used to calculate depth values
fun glReadPixels(x: Int, y: Int, width: Int, height: Int, format: GLPixelFormat, typ: GLDataType, data: Pointer)

core :: Sys :: glReadPixels

Copy a block of pixels from the framebuffer of fomat and typ at data
fun glRenderbufferStorage(target: GLRenderbufferTarget, format: GLRenderbufferFormat, width: Int, height: Int)

core :: Sys :: glRenderbufferStorage

Establish data storage, format and dimensions of the target renderbuffer object's image
fun glShaderSource(shader: GLShader, code: CString)

core :: Sys :: glShaderSource

Replace the source code in the shader object with code
fun glTexImage2D(target: GLTextureTarget, level: Int, internalformat: GLPixelFormat, width: Int, height: Int, border: Int, format: GLPixelFormat, typ: GLDataType, data: Pointer)

core :: Sys :: glTexImage2D

Specify a two-dimensional texture image
fun glTexParameteri(target: GLTextureTarget, pname: GLTexParameteriName, param: GLTexParameteri)

core :: Sys :: glTexParameteri

Set texture parameters
fun glTexSubImage2D(target: GLTextureTarget, level: Int, xoffset: Int, yoffset: Int, width: Int, height: Int, border: Int, format: GLPixelFormat, typ: GLDataType, data: Pointer)

core :: Sys :: glTexSubImage2D

Specify a two-dimensional texture subimage
fun glUniform1f(index: Int, x: Float)

core :: Sys :: glUniform1f

Specify the value of a uniform variable for the current program object
fun glUniform1i(index: Int, x: Int)

core :: Sys :: glUniform1i

Specify the value of a uniform variable for the current program object
fun glUniform2f(index: Int, x: Float, y: Float)

core :: Sys :: glUniform2f

Specify the value of a uniform variable for the current program object
fun glUniform2i(index: Int, x: Int, y: Int)

core :: Sys :: glUniform2i

Specify the value of a uniform variable for the current program object
fun glUniform3f(index: Int, x: Float, y: Float, z: Float)

core :: Sys :: glUniform3f

Specify the value of a uniform variable for the current program object
fun glUniform3i(index: Int, x: Int, y: Int, z: Int)

core :: Sys :: glUniform3i

Specify the value of a uniform variable for the current program object
fun glUniform4f(index: Int, x: Float, y: Float, z: Float, w: Float)

core :: Sys :: glUniform4f

Specify the value of a uniform variable for the current program object
fun glUniform4i(index: Int, x: Int, y: Int, z: Int, w: Int)

core :: Sys :: glUniform4i

Specify the value of a uniform variable for the current program object
fun glUseProgram(program: GLProgram)

core :: Sys :: glUseProgram

Install the program as part of current rendering state
fun glValidateProgram(program: GLProgram)

core :: Sys :: glValidateProgram

Validate the program object
fun glVertexAttrib1f(index: Int, x: Float)

core :: Sys :: glVertexAttrib1f

Specify the value of a generic vertex attribute
fun glVertexAttrib2f(index: Int, x: Float, y: Float)

core :: Sys :: glVertexAttrib2f

Specify the value of a generic vertex attribute
fun glVertexAttrib3f(index: Int, x: Float, y: Float, z: Float)

core :: Sys :: glVertexAttrib3f

Specify the value of a generic vertex attribute
fun glVertexAttrib4f(index: Int, x: Float, y: Float, z: Float, w: Float)

core :: Sys :: glVertexAttrib4f

Specify the value of a generic vertex attribute
fun glVertexAttribPointer(index: Int, size: Int, typ: GLDataType, normalized: Bool, stride: Int, array: NativeGLfloatArray)

core :: Sys :: glVertexAttribPointer

Define an array of generic vertex attribute data
fun glVertexAttribPointeri(index: Int, size: Int, typ: GLDataType, normalized: Bool, stride: Int, offset: Int)

core :: Sys :: glVertexAttribPointeri

Define an array of generic vertex attribute data, at offset in the array buffer
fun glViewport(x: Int, y: Int, width: Int, height: Int)

core :: Sys :: glViewport

Set the viewport
fun gl_ALPHA: Int

core :: Sys :: gl_ALPHA

fun gl_ARRAY_BUFFER: GLArrayBuffer

core :: Sys :: gl_ARRAY_BUFFER

Array buffer target
fun gl_BACK: Int

core :: Sys :: gl_BACK

fun gl_BLEND: Int

core :: Sys :: gl_BLEND

fun gl_BOOL: Int

core :: Sys :: gl_BOOL

fun gl_BYTE: Int

core :: Sys :: gl_BYTE

fun gl_CCW: Int

core :: Sys :: gl_CCW

fun gl_COLOR_ATTACHMENT0: GLAttachment

core :: Sys :: gl_COLOR_ATTACHMENT0

First color attachment point
fun gl_CW: Int

core :: Sys :: gl_CW

fun gl_DECR: Int

core :: Sys :: gl_DECR

fun gl_DEPTH_ATTACHMENT: GLAttachment

core :: Sys :: gl_DEPTH_ATTACHMENT

Depth attachment point
fun gl_DONT_CARE: GLHintMode

core :: Sys :: gl_DONT_CARE

No preference
fun gl_DYNAMIC_DRAW: GLBufferUsage

core :: Sys :: gl_DYNAMIC_DRAW

Data will be modified repeatedly and used many times
fun gl_EQUAL: Int

core :: Sys :: gl_EQUAL

fun gl_EXTENSIONS: GLEnum

core :: Sys :: gl_EXTENSIONS

Space-separated list of supported extensions to GL
fun gl_FALSE: Int

core :: Sys :: gl_FALSE

fun gl_FASTEST: GLHintMode

core :: Sys :: gl_FASTEST

The most efficient option should be chosen
fun gl_FIXED: Int

core :: Sys :: gl_FIXED

fun gl_FLOAT: Int

core :: Sys :: gl_FLOAT

fun gl_FRAMEBUFFER: GLFramebufferTarget

core :: Sys :: gl_FRAMEBUFFER

Target both reading and writing on the framebuffer with glBindFramebuffer
fun gl_FRAMEBUFFER_INCOMPLETE_ATTACHMENT: GLFramebufferStatus

core :: Sys :: gl_FRAMEBUFFER_INCOMPLETE_ATTACHMENT

Not all framebuffer attachment points are framebuffer attachment complete
fun gl_FRAMEBUFFER_INCOMPLETE_DIMENSIONS: GLFramebufferStatus

core :: Sys :: gl_FRAMEBUFFER_INCOMPLETE_DIMENSIONS

Not all attached images have the same width and height
fun gl_FRAMEBUFFER_UNSUPPORTED: GLFramebufferStatus

core :: Sys :: gl_FRAMEBUFFER_UNSUPPORTED

The combination of internal formats of the attached images violates an implementation-dependent set of restrictions
fun gl_FRONT: Int

core :: Sys :: gl_FRONT

fun gl_GENERATE_MIPMAP_HINT: GLHintTarget

core :: Sys :: gl_GENERATE_MIPMAP_HINT

Indicates the quality of filtering when generating mipmap images
fun gl_INCR: Int

core :: Sys :: gl_INCR

fun gl_INT: Int

core :: Sys :: gl_INT

fun gl_KEEP: Int

core :: Sys :: gl_KEEP

fun gl_LESS: Int

core :: Sys :: gl_LESS

fun gl_LINES: Int

core :: Sys :: gl_LINES

fun gl_NEVER: Int

core :: Sys :: gl_NEVER

fun gl_NICEST: GLHintMode

core :: Sys :: gl_NICEST

The most correct, or highest quality, option should be chosen
fun gl_NONE: Int

core :: Sys :: gl_NONE

fun gl_ONE: Int

core :: Sys :: gl_ONE

fun gl_PACK_ALIGNEMENT: GLPack

core :: Sys :: gl_PACK_ALIGNEMENT

Parameter to specify the alignment requirements for the start of each pixel row in memory
fun gl_RENDERBUFFER: GLRenderbufferTarget

core :: Sys :: gl_RENDERBUFFER

Target a renderbuffer with glBindRenderbuffer
fun gl_RENDERER: GLEnum

core :: Sys :: gl_RENDERER

Name of the renderer, typically specific to a particular configuration of the hardware platform
fun gl_RGB: Int

core :: Sys :: gl_RGB

fun gl_RGB565: GLRenderbufferFormat

core :: Sys :: gl_RGB565

5 red, 6 green, 5 blue bits format
fun gl_RGB5_A1: GLRenderbufferFormat

core :: Sys :: gl_RGB5_A1

5 red, 5 green, 5 blue, 1 alpha bits format
fun gl_RGBA: Int

core :: Sys :: gl_RGBA

fun gl_RGBA4: Int

core :: Sys :: gl_RGBA4

fun gl_RGBA4: GLRenderbufferFormat

core :: Sys :: gl_RGBA4

4 red, 4 green, 4 blue, 4 alpha bits format
fun gl_SHADING_LANGUAGE_VERSION: GLEnum

core :: Sys :: gl_SHADING_LANGUAGE_VERSION

Version or release number for the shading language of the form
fun gl_SHORT: Int

core :: Sys :: gl_SHORT

fun gl_STATIC_DRAW: GLBufferUsage

core :: Sys :: gl_STATIC_DRAW

Data will be modified once and used many times
fun gl_STREAM_DRAW: GLBufferUsage

core :: Sys :: gl_STREAM_DRAW

Data will be modified once and used a few times
fun gl_TEXTURE(offset: Int): GLTextureUnit

core :: Sys :: gl_TEXTURE

Texture unit at offset after gl_TEXTURE0
fun gl_TEXTURE_2D: GLTextureTarget

core :: Sys :: gl_TEXTURE_2D

Two-dimensional texture
fun gl_TRUE: Int

core :: Sys :: gl_TRUE

fun gl_UNPACK_ALIGNEMENT: GLPack

core :: Sys :: gl_UNPACK_ALIGNEMENT

Parameter to specify the alignment requirements for the start of each pixel row in memory
fun gl_VENDOR: GLEnum

core :: Sys :: gl_VENDOR

Company responsible for this GL implementation
fun gl_VERSION: GLEnum

core :: Sys :: gl_VERSION

Version or release number
fun gl_ZERO: Int

core :: Sys :: gl_ZERO

fun gt_coll: Int

core :: Sys :: gt_coll

Number of calls of HashCollection::node_at_idx that collided
protected fun gt_coll=(gt_coll: Int)

core :: Sys :: gt_coll=

Number of calls of HashCollection::node_at_idx that collided
fun gt_count: Int

core :: Sys :: gt_count

Number of calls of HashCollection::node_at_idx
protected fun gt_count=(gt_count: Int)

core :: Sys :: gt_count=

Number of calls of HashCollection::node_at_idx
fun gt_tot_cap: Int

core :: Sys :: gt_tot_cap

Total capacity of hash collections receiver HashCollection::node_at_idx
protected fun gt_tot_cap=(gt_tot_cap: Int)

core :: Sys :: gt_tot_cap=

Total capacity of hash collections receiver HashCollection::node_at_idx
fun gt_tot_coll: Int

core :: Sys :: gt_tot_coll

Total length of collisions on calls of HashCollection::node_at_idx that collided
protected fun gt_tot_coll=(gt_tot_coll: Int)

core :: Sys :: gt_tot_coll=

Total length of collisions on calls of HashCollection::node_at_idx that collided
fun gt_tot_length: Int

core :: Sys :: gt_tot_length

Total length of hash collections receiver of HashCollection::node_at_idx
protected fun gt_tot_length=(gt_tot_length: Int)

core :: Sys :: gt_tot_length=

Total length of hash collections receiver of HashCollection::node_at_idx
fun gtk_init

core :: Sys :: gtk_init

Initialize the GTK system
fun gtk_main

core :: Sys :: gtk_main

Hand over control to the GTK event loop
fun gtk_main_iteration: Bool

core :: Sys :: gtk_main_iteration

Run a single iteration of the main loop, block until an event is noticed
fun gtk_main_iteration_do(blocking: Bool): Bool

core :: Sys :: gtk_main_iteration_do

Run a single iteration of the main loop, only block until an event is noticed if blocking
fun gtk_main_quit

core :: Sys :: gtk_main_quit

Quit the GTK event loop and clean up the system
fun gtk_window_width_request: Int

core :: Sys :: gtk_window_width_request

Request width of the GTK window for an app.nit application
fun h_errno: HErrno

core :: Sys :: h_errno

Last error raised by gethostbyname
fun handshake_app_name: String

core :: Sys :: handshake_app_name

Unique name of the application to use in the handshake
fun handshake_app_version: String

core :: Sys :: handshake_app_version

Version of the communication protocol to use in the handshake
fun hello_world

core :: Sys :: hello_world

Print "Hello world!" to the log
fun host_re: Regex

core :: Sys :: host_re

protected fun host_re=(host_re: Regex)

core :: Sys :: host_re=

fun http_status_codes: HttpStatusCodes

core :: Sys :: http_status_codes

Get the default instance of HttpStatusCodes
fun id_int: IdFn[Int]

core :: Sys :: id_int

fun id_str: IdFn[String]

core :: Sys :: id_str

fun iface: String

core :: Sys :: iface

protected fun iface=(iface: String)

core :: Sys :: iface=

fun