jit.pworld Reference

Display a Jitter GL context

jit.pworld

Description

Use jit.pworld to draw pixels or graphics within a patcher - it displays jit.matrix data as well as OpenGL 3D graphics.

Discussion

This object functions the same as a jit.pwindow and jit.gl.render combination. This allows you to display HD video using only a video object and jit.pworld, which reduces patching complexity. An internal jit.gl.videoplane object is used to display texture/matrix input without a matrix readback, which increases efficiency. It instantiates as enabled at 30fps, with a black "erase" color.

Arguments

None.

Attributes

depthbuffer [int]

Enable depth buffer

doublebuffer [int]

Enable double buffering

fsaa [int]

Full scene anti-aliasing enable

idlemouse [int] (default: 0)

Mouse idle events enable

name [symbol]

The name of the window. Jitter OpenGL objects attach to a rendering context through the window's name.

pickray [int] (default: 0)

Pickray

shared [int] (default: 1)

Set the window as a shared context

size [2 ints]

Window size

stereo [int]

Stereo buffer enable

sync [int]

The vertical sync flag sets the window to update synchronous to the monitor's refresh.

Common Box Attributes

Messages

bang

Output the currently stored matrix

jit_gl_texture

Arguments

texture-name [symbol]
Draw the texture to screen by first reading back the texture into a matrix.

jit_matrix

Arguments

matrix-name [symbol]
Draw the matrix to screen

(mouse)

Mouse events

sendrender

Arguments

message [symbol]
values [list]
Send messages to the internal jit.gl.render object.

sendvideoplane

Arguments

message [symbol]
values [list]
Send messages to the internal jit.gl.videoplane object.

See Also

Name Description
jit.pwindow
jit.gl.render
jit.world