Globals

NovoScript provides several Global functions. Here's a list of them:

Builtin Functions

TypeNameDescriptionSignature

function

milliTime

Time in milliseconds since JVM startup

long()

function

nanoTime

Time in nanoseconds since JVM startup

long()

function

currentMillisTime

Time in milliseconds since the Unix epoch

long()

Macros

TypeNameDescriptionSignature

function

rgb

Converts red, green, blue values to hex

int(int, int, int)

function

rgba

Converts red, green, blue, alpha values to hex

int(int, int, int, int)

function

Timer

Utility object that allows you to check, if a specific delay has been passed

Timer

Timer delay is set when the Timer object is initialized.

TypeNameDescriptionSignature

function

hasPassed

Whether a specific delay has been passed since the last reset

boolean(int)

function

reset

Resets the timer

void()

Imported Render APIs

Several LWJGL APIs are already imported for you, so you don't have to all Java.type on most of them. Here's the list of the imported APIs:

TypeNameDescriptionSignature

field

GL11

OpenGL 1.1 API

field

GL13

OpenGL 1.3 API

field

GL14

OpenGL 1.4 API

field

GL20

OpenGL 2.0 API

field

Display

OpenGL Window

field

Mouse

LWJGL Mouse Interface

field

Keyboard

LWJGL Keyboard Interface

field

ARBShaderObjects

LWJGL Shader API

field

ARBVertexShader

LWJGL Vertex Shader Interface

field

ARBFragmentShader

LWJGL Fragment Shader Interface

Last updated