Mistium / Origin-OS

originOS is a scratch desktop gui made by @Mistium
https://origin.mistium.com
24 stars 9 forks source link

[OSL] 3dr #138

Closed Mistium closed 3 weeks ago

Mistium commented 3 weeks ago
mesh = "url".3drUrlMesh()
// returns id for the mesh name
mesh = mesh.3drInherit()
// makes a new mesh that inherits

3dr "start" "perspective"/"orthographic" fov min max

mesh.3drPositionXY([x],[y])
mesh.3drPositionXYZ([x],[y],[Z])
mesh.3drTexturesUV([x],[y])

mainloop:

3dr "reset_transform"
3dr "rotate" "x"/"y"/"z" int
3dr "transform_xy" x y
3dr "transform_xyz" x y z
3dr "scale_xyz" x y z
3dr "mipmap" "off"/"smooth"/"sharp"
mesh.3drDraw()

onclose:
mesh.3drDelete()
Mistium commented 3 weeks ago

done