iterami/Docs.htm/common HTM Projects/webgl.js
Draw Modes
LINES
LINE_LOOP
LINE_STRIP
POINTS
TRIANGLES
TRIANGLE_FAN
TRIANGLE_STRIP
Globals Default Type
webgl 0 placeholder, WebGL2RenderingContext
webgl_attributes {} object
webgl_character_count 0 number
webgl_character_base_entities [] array of objects
webgl_character_base_properties {} object
webgl_character_id '_me' string ID
webgl_characters {} object
webgl_context_valid true boolean
webgl_default_texture 'default.png' string
webgl_paths {} object
webgl_properties {} object
webgl_shader_active false boolean false or string ID
webgl_shaders {} object
webgl_textures {} object
webgl_textures_animated {} object
WebGL_Properties Default Type
ambient-blue 1 number
ambient-green 1 number
ambient-red 1 number
camera-zoom-max 50 number
camera-zoom-min 0 number
clearcolor-blue 0 number
clearcolor-green 0 number
clearcolor-red 0 number
cursor 'pointer' string
directional-blue 1 number
directional-green 1 number
directional-red 1 number
directional-state true boolean
directional-vector [0, 1, 0,] array of numbers
fog-density .0001 number
fog-state false boolean
draw-range false boolean false or number
gravity-acceleration -.05 number
gravity-damage false boolean
gravity-max -2 number
lock {} object
paused false boolean
pointerlock false boolean
spawn-path-id '' string ID
spawn-rotate-x 0 number
spawn-rotate-y 0 number
spawn-rotate-z 0 number
spawn-translate-x 0 number
spawn-translate-y 0 number
spawn-translate-z 0 number
title false boolean false or string
y-min false boolean false or number
Character Properties Default Type
automove false boolean
camera-lock true boolean
camera-rotate-x 0 number
camera-rotate-y 0 number
camera-rotate-z 0 number
camera-x 0 number
camera-y 0 number
camera-z 0 number
camera-zoom 50 number
change-rotate-x 0 number
change-rotate-y 0 number
change-rotate-z 0 number
change-x 0 number
change-y 0 number
change-z 0 number
collide-range-xz 2 number
collide-range-y 3 number
collides false boolean
controls '' string
gravity 0 number
id webgl_character_id string ID
jump-allow false boolean
jump-height 1 number
level -2 number
level-xp 0 number
life 0 number
life-max 0 number
lives -1 number
lock {} object
normals [] array of numbers
path-direction 1 number
path-end '' string
path-id '' string ID
path-point 0 number
reticle '#fff' string
rotate-x 0 number
rotate-y 0 number
rotate-z 0 number
speed 1 number
translate-x 0 number
translate-y 0 number
translate-z 0 number
turn-speed 5 number
vehicle false boolean false or string ID
vehicle-stats false boolean false or object
Entity Properties Default Type
alpha 1 number
attach-to false boolean false or string ID
attach-type 'entity_entities' 'entity_entities' or 'webgl_characters'
attach-x 0 number
attach-y 0 number
attach-z 0 number
billboard false boolean false or string of axes
change-rotate-x 0 number
change-rotate-y 0 number
change-rotate-z 0 number
collide-range-xz 2 number
collide-range-y 3 number
collision true boolean
draw true boolean
draw-mode 'TRIANGLE_FAN' string
draw-range false boolean false or number
event-limit boolean false or number
event-range false boolean false or number
event-todo [] array of objects
normals [] array of numbers
particle false boolean false or string ID
picking false boolean
point-size 500 number
rotate-x 0 number
rotate-y 0 number
rotate-z 0 number
scale-x 1 number
scale-y 1 number
scale-z 1 number
texture webgl_default_texture string ID
texture-align [1, 1, 0, 1, 0, 0, 1, 0,] array of numbers
texture-animated false boolean
texture-x 1 number
texture-y 1 number
translate-x 0 number
translate-y 0 number
translate-z 0 number
vertices-length 0 number
visible true boolean
Vehicle Properties Default Type
character false boolean false or string ID
lock 0
  1. unlocked
  2. cannot enter
  3. cannot exit
  4. cannot enter or exit
speed 0 number
speed-acceleration .1 number
speed-deceleration -.1 number
speed-max 1 number