Class: window

The graphics window luxinia runs in. Setters only have effect after update is called. Do not call setters without ever calling update.

Methods:

Method overview:


bpp ([int])
returns: (int)
returns or sets bits per pixel (16,24,32)
colorbits ()
returns: (int r,g,b,a)
returns actual bits used for each channel
depthbits ([int])
returns: (int)
returns or sets depthbits. After update this reflects the actual window value
fullscreen ([boolean])
returns: ([boolean])
gets or sets if window will be fullscreen
height ([int])
returns: (int)
returns or sets height
minsize ([int w,h])
returns: ([int w,h])
returns or sets minimum size of window. Only has effect in windowed mode.
multisamples ([int])
returns: (int)
returns or sets samples for fullscreen anti-aliasing. After update this reflects the actual window value
ontop ([boolean])
returns: ([boolean])
returns or sets if window is always on top
pos (x,y)
returns: ()
sets window position
readcolor (float x,y)
returns: (float r,g,b,a)
returns color value at window coordinate (in refsystem)
readdepth (float x,y)
returns: (float)
returns depth value at window coordinate (in refsystem)
readstencil (float x,y)
returns: (int)
returns stencil value at window coordinate (in refsystem)
refsize ([int w,h])
returns: ([int w,h])
sets reference size of screen (default=640,480). Reference size is mostly important for list2d rendering.
res ([int])
returns: ([int])
sets window resolution 0 = 640x480x16, 1 = 800x600x16, 2 = 1024x768x16, 3 = 640x480x32, 4 = 800x600x32, 5 = 1024x768x32
resizemode ([int mode])
returns: ([int])
allows to get or set how the window should be resized if a user changes window size in windowed mode. 0 means size is not changed (default), 1 means size is changed, 2 size is changed and refsize is also changed to new window size.
resstring ([string])
returns: ([string])
gets or sets window resolution string=WIDTHxHEIGHTxBPP:DEPTH:STENCIL:FSAASAMPLES BPP should be 16,24 or 32. Only 32 has forced alpha buffer support. You can check colorbits what kind of bits per pixel are used.
size ([int w,h])
returns: ([int w,h])
returns or sets size of window. Needs window.update to show effect
stencilbits ([int])
returns: (int)
returns or sets stencilbits. After update this reflects the actual window value
texmatrix ()
returns: (matrix16)
returns texture matrix for 'fullwindow' textures.
title (string)
returns: ()
Set the title of the window
update ()
returns: ()
if you have changed resolution or fullscreen state this function makes changes active
width ([int])
returns: (int)
returns or sets width