OpenGL/Utah teapot: Difference between revisions

Content added Content deleted
No edit summary
(julia example)
Line 209: Line 209:
void
void
)</lang>
)</lang>

=={{header|Julia}}==
Makie implements OpenGL as part of its plotting functionality. The files are from the University of Utah site.
<lang Julia>using Makie, FileIO, InfoZIP

if stat("newll_teaset/teapot.obj").size == 0
download("https://www.cs.utah.edu/~natevm/newell_teaset/newell_teaset.zip", "newell_teaset.zip")
InfoZIP.unzip("newell_teaset.zip")
end

utah_teapot = FileIO.load("newell_teaset/teapot.obj")
print(size(utah_teapot))
scene = plot(utah_teapot; color = :aquamarine, shading=true, show_axis=false)
rotate!(scene, Quaternion(0.6, 0.2, 0.2, 4.0))
display(scene)
</lang>



=={{header|Kotlin}}==
=={{header|Kotlin}}==