-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9ca1781
commit 5ce149e
Showing
207 changed files
with
431 additions
and
754 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"/><meta content="width=device-width, initial-scale=1.0" name="viewport"/><meta content="ie=edge" httpEquiv="X-UA-Compatible"/><meta content="camera reference page. Originating from camera.h in lu5 source. lu5 is a Lua interpreter for Creative Coding. lu5 serves as a tool for creating games, simulations and art. It is designed to render 2D and 3D graphics, and provides a simple and expressive API similar to p5.js. " name="description"/><meta content="Lua, Creative Coding, p5.js, OpenGL, Lua Interpreter, programming, coding, learn code" name="keywords"/><meta content="Matias Vazquez-Levi" name="author"/><meta property="og:title" content="camera"/><meta property="og:description" content="camera reference page. Originating from camera.h in lu5 source. lu5 is a Lua interpreter for Creative Coding. lu5 serves as a tool for creating games, simulations and art. It is designed to render 2D and 3D graphics, and provides a simple and expressive API similar to p5.js. "/><meta property="og:image" content="https://matiasvlevi.github.io/lu5/assets/lu5_thumbnail.png"/><meta property="og:url" content="https://matiasvlevi.github.io/lu5"/><meta content="summary_large_image" name="twitter:card"/><meta content="camera" name="twitter:title"/><meta content="camera reference page. Originating from camera.h in lu5 source. lu5 is a Lua interpreter for Creative Coding. lu5 serves as a tool for creating games, simulations and art. It is designed to render 2D and 3D graphics, and provides a simple and expressive API similar to p5.js. " name="twitter:description"/><meta content="https://matiasvlevi.github.io/lu5/assets/lu5_thumbnail.png" name="twitter:image"/><link rel="stylesheet" href="../../assets/style.css"/><script src="../../assets/search.js" type="text/javascript"></script><script src="../../assets/menu.js" type="text/javascript"></script><script>window.onload = function (e) {set_nav_menu();set_search("../../v0.1.7/");};</script><script lib src="../../assets/lu5-wasm.min.js"></script><script src="../../assets/lu5-console.min.js"></script><link rel="canonical" href="https://matiasvlevi.github.io/lu5/latest/camera"/><link rel="stylesheet" href="../../assets/lu5-hljs-theme.css"/><script src="https://unpkg.com/@highlightjs/[email protected]/highlight.min.js"></script><script src="https://unpkg.com/@highlightjs/[email protected]/languages/lua.min.js"></script><script src="https://unpkg.com/@highlightjs/[email protected]/languages/html.min.js"></script><script>document.addEventListener("DOMContentLoaded", function (e) {hljs.configure({ noHighlightRe: /^no-hljs$/i });hljs.highlightAll();});</script><script async src="https://www.googletagmanager.com/gtag/js?id=G-CYFGDF41F4"></script><script>window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);};gtag("js", new Date());gtag("config", "G-CYFGDF41F4");</script><link type="image/svg" rel="icon" href="../../assets/favicon.png"/><title>camera</title></head><body><div class="content flex flex-grow"><div class="nav" id="menu"><br/><ul><li class="btn"><a class="light" href=".././window/"><h4>window</h4></a></li><li class="btn"><a class="light" href=".././typography/"><h4>typography</h4></a></li><li class="btn"><a class="light" href=".././transform/"><h4>transform</h4></a></li><li class="btn"><a class="light" href=".././shapes3D/"><h4>3D Shapes</h4></a></li><li class="btn"><a class="light" href=".././shapes/"><h4>2D Shapes</h4></a></li><li class="btn"><a class="light" href=".././setting/"><h4>setting</h4></a></li><li class="btn"><a class="light" href=".././mouse/"><h4>mouse</h4></a></li><li class="btn"><a class="light" href=".././models/"><h4>models</h4></a></li><li class="btn"><a class="light" href=".././vector/"><h4>vector</h4></a></li><li class="btn"><a class="light" href=".././math/"><h4>math</h4></a></li><li class="btn"><a class="light" href=".././keyboard/"><h4>keyboard</h4></a></li><li class="btn"><a class="light" href=".././io/"><h4>io</h4></a></li><li class="btn"><a class="light" href=".././image/"><h4>image</h4></a></li><li class="btn"><a class="light" href=".././classes/"><h4>classes</h4></a></li><li class="btn"><a class="light" href=".././camera/"><h4>camera</h4></a></li></ul></div><main><header><div class="wrap"><a href="../"><img class="logo" src="../../assets/logo.svg"/></a><h1 class="module" style="font-size: 26pt">camera</h1><button class="menuBtn" onclick="toggleMenu()"><img class="menuIcon" src="../../assets/arrow_left.svg" width="40px"/></button><span class="text version">v0.1.7</span></div><div class="space-between items-center gap-1 search-section" style="display: none;"><svg width="24px" height="24px" viewBox="0 0 50 50" xmlns="http://www.w3.org/2000/svg"><path stroke="currentColor" d="M 21 3 C 11.601563 3 4 10.601563 4 20 C 4 29.398438 11.601563 37 21 37 C 24.355469 37 27.460938 36.015625 30.09375 34.34375 L 42.375 46.625 L 46.625 42.375 L 34.5 30.28125 C 36.679688 27.421875 38 23.878906 38 20 C 38 10.601563 30.398438 3 21 3 Z M 21 7 C 28.199219 7 34 12.800781 34 20 C 34 27.199219 28.199219 33 21 33 C 13.800781 33 8 27.199219 8 20 C 8 12.800781 13.800781 7 21 7 Z" fill="currentColor"></path></svg><div class="search-wrap flex-col" style="position: relative;"><input type="text" style="z-index: 5;" id="search" autocomplete="off" placeholder="Search"/><div class="search-box flex-col"></div></div></div></header><div class="method" id="orbitControl"><div class="methodDeclaration"><code>orbitControl();</code></div><p>Helpful utility for controlling the camera around the origin.<br/>Enables quick camera controls without much of an implementation.</p><div class="params"></div><p></p><div class="method-example flex items-center"><pre class="example-code"><code class="language-lua">function setup() | ||
<!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><meta httpEquiv="X-UA-Compatible" content="ie=edge"/><meta name="description" content="camera reference page. Originating from camera.h in lu5 source. lu5 is a Lua interpreter for Creative Coding. lu5 serves as a tool for creating games, simulations and art. It is designed to render 2D and 3D graphics, and provides a simple and expressive API similar to p5.js. "/><meta name="keywords" content="Lua, Creative Coding, p5.js, OpenGL, Lua Interpreter, programming, coding, learn code"/><meta name="author" content="Matias Vazquez-Levi"/><meta property="og:title" content="camera"/><meta property="og:description" content="camera reference page. Originating from camera.h in lu5 source. lu5 is a Lua interpreter for Creative Coding. lu5 serves as a tool for creating games, simulations and art. It is designed to render 2D and 3D graphics, and provides a simple and expressive API similar to p5.js. "/><meta property="og:image" content="https://matiasvlevi.github.io/lu5/assets/lu5_thumbnail.png"/><meta property="og:url" content="https://matiasvlevi.github.io/lu5"/><meta name="twitter:card" content="summary_large_image"/><meta name="twitter:title" content="camera"/><meta name="twitter:description" content="camera reference page. Originating from camera.h in lu5 source. lu5 is a Lua interpreter for Creative Coding. lu5 serves as a tool for creating games, simulations and art. It is designed to render 2D and 3D graphics, and provides a simple and expressive API similar to p5.js. "/><meta name="twitter:image" content="https://matiasvlevi.github.io/lu5/assets/lu5_thumbnail.png"/><link href="../../assets/style.css" rel="stylesheet"/><script src="../../assets/search.js" type="text/javascript"></script><script src="../../assets/menu.js" type="text/javascript"></script><script>window.onload = function (e) {set_nav_menu();set_search("../../v0.1.7/");};</script><link href="../../assets/lu5-hljs-theme.css" rel="stylesheet"/><script src="https://unpkg.com/@highlightjs/[email protected]/highlight.min.js"></script><script>document.addEventListener("DOMContentLoaded", function (e) {hljs.configure({ noHighlightRe: /^no-hljs$/i });hljs.highlightAll();});</script><script src="https://unpkg.com/@highlightjs/[email protected]/languages/lua.min.js"></script><script src="../../assets/lu5-wasm.min.js" lib></script><script src="../../assets/lu5-console.min.js"></script><link href="https://matiasvlevi.github.io/lu5/latest/camera" rel="canonical"/><script async src="https://www.googletagmanager.com/gtag/js?id=G-CYFGDF41F4"></script><script>window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);};gtag("js", new Date());gtag("config", "G-CYFGDF41F4");</script><link href="../../assets/favicon.png" rel="icon" type="image/svg"/><title>camera</title></head><body><div class="content flex flex-grow"><div id="menu" class="nav"><br/><ul><li class="btn"><a href=".././window/" class="light"><h4>window</h4></a></li><li class="btn"><a href=".././typography/" class="light"><h4>typography</h4></a></li><li class="btn"><a href=".././transform/" class="light"><h4>transform</h4></a></li><li class="btn"><a href=".././shapes3D/" class="light"><h4>3D Shapes</h4></a></li><li class="btn"><a href=".././shapes/" class="light"><h4>2D Shapes</h4></a></li><li class="btn"><a href=".././setting/" class="light"><h4>setting</h4></a></li><li class="btn"><a href=".././mouse/" class="light"><h4>mouse</h4></a></li><li class="btn"><a href=".././models/" class="light"><h4>models</h4></a></li><li class="btn"><a href=".././vector/" class="light"><h4>vector</h4></a></li><li class="btn"><a href=".././math/" class="light"><h4>math</h4></a></li><li class="btn"><a href=".././keyboard/" class="light"><h4>keyboard</h4></a></li><li class="btn"><a href=".././io/" class="light"><h4>io</h4></a></li><li class="btn"><a href=".././image/" class="light"><h4>image</h4></a></li><li class="btn"><a href=".././classes/" class="light"><h4>classes</h4></a></li><li class="btn"><a href=".././camera/" class="light"><h4>camera</h4></a></li></ul></div><main><header><div class="wrap"><a href="../"><img src="../../assets/logo.svg" class="logo"/></a><h1 style="font-size: 26pt" class="module">camera</h1><button onclick="toggleMenu()" class="menuBtn"><img src="../../assets/arrow_left.svg" width="40px" class="menuIcon"/></button><span class="text version">v0.1.7</span></div><div style="display: none;" class="space-between items-center gap-1 search-section"><svg viewBox="0 0 50 50" height="24px" width="24px" xmlns="http://www.w3.org/2000/svg"><path d="M 21 3 C 11.601563 3 4 10.601563 4 20 C 4 29.398438 11.601563 37 21 37 C 24.355469 37 27.460938 36.015625 30.09375 34.34375 L 42.375 46.625 L 46.625 42.375 L 34.5 30.28125 C 36.679688 27.421875 38 23.878906 38 20 C 38 10.601563 30.398438 3 21 3 Z M 21 7 C 28.199219 7 34 12.800781 34 20 C 34 27.199219 28.199219 33 21 33 C 13.800781 33 8 27.199219 8 20 C 8 12.800781 13.800781 7 21 7 Z" stroke="currentColor" fill="currentColor"></path></svg><div style="position: relative;" class="search-wrap flex-col"><input placeholder="Search" type="text" autocomplete="off" style="z-index: 5;" id="search"/><div class="search-box flex-col"></div></div></div></header><div id="orbitControl" class="method"><div class="methodDeclaration"><code>orbitControl();</code></div><p>Helpful utility for controlling the camera around the origin.<br/>Enables quick camera controls without much of an implementation.</p><div class="params"></div><p></p><div class="method-example flex items-center"><pre class="example-code"><code class="language-lua">function setup() | ||
createWindow(800, 800, GL3D); | ||
end | ||
|
||
|
@@ -13,4 +13,4 @@ | |
strokeWeight(4); | ||
|
||
box(60); | ||
end</code></pre></div><span class="text small underline"><a href="https://github.com/matiasvlevi/lu5/blob/master/src/bindings/camera.h#L22C0-L46C0" target="_blank">See orbitControl in camera.h</a></span></div></main></div><footer class="flex-col space-between"><div class="socials"><a class="flex items-center" href="https://github.com/matiasvlevi/lu5" style="gap: 0.5rem; color: #fff;"><img src="../../assets/github.svg"/><span class="small dark underline">matiasvlevi/lu5</span></a></div><div class="license-note"><span class="smaller dark">This project is licensed under the MIT License.</span><br/><span class="smaller dark">It also includes the FreeType font engine, which is licensed under the FreeType License (FTL).</span></div></footer></body></html> | ||
end</code></pre></div><span class="text small underline"><a target="_blank" href="https://github.com/matiasvlevi/lu5/blob/master/src/bindings/camera.h#L22C0-L46C0">See orbitControl in camera.h</a></span></div></main></div><footer class="flex-col space-between"><div class="socials"><a href="https://github.com/matiasvlevi/lu5" style="gap: 0.5rem; color: #fff;" class="flex items-center"><img src="../../assets/github.svg"/><span class="small dark underline">matiasvlevi/lu5</span></a></div><div class="license-note"><span class="smaller dark">This project is licensed under the MIT License.</span><br/><span class="smaller dark">It also includes the FreeType font engine, which is licensed under the FreeType License (FTL).</span></div></footer></body></html> |
Oops, something went wrong.