Skip to content

Commit

Permalink
Deploying to gh-pages from @ 32bae62 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
TypeDefinition committed Apr 20, 2024
1 parent 34e412d commit 8477bbc
Showing 1 changed file with 21 additions and 19 deletions.
40 changes: 21 additions & 19 deletions game__scene_8cpp_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; <a class="code" href="classmkr_1_1game__scene.html#a0293d7b459639bd10625482113ae8255">init_materials</a>();</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; <a class="code" href="classmkr_1_1game__scene.html#a51eec68d66a9d228f85b21909bcca1e1">init_levels</a>();</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; <a class="code" href="classmkr_1_1game__scene.html#a05d75be7a585cd8a303e63c3ef72f6fc">init_player</a>();</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; <span class="comment">// init_sphere_gallery();</span></div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; <span class="comment">// init_transparency_gallery();</span></div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; <a class="code" href="classmkr_1_1game__scene.html#a75c55ce0119314ad14331b5b54616193">init_shadow_gallery</a>();</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; <a class="code" href="classmkr_1_1game__scene.html#a115bfe8d85e3b71e6a65f2e51f76fe57">init_sphere_gallery</a>();</div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160; <a class="code" href="classmkr_1_1game__scene.html#a5d101ae8bee51ee64ad01729a92f2ff0">init_transparency_gallery</a>();</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160; <span class="comment">// init_shadow_gallery();</span></div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160; }</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160; </div>
<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="classmkr_1_1game__scene.html#a0ae81a85d44a4d92f07f819de9830c23"> 43</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classmkr_1_1game__scene.html#a0ae81a85d44a4d92f07f819de9830c23">game_scene::pre_update</a>() {</div>
Expand All @@ -122,7 +122,7 @@
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>&#160; }</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>&#160; </div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="classmkr_1_1game__scene.html#a1fc8d208025ecb9b82fffd4915536208"> 53</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classmkr_1_1game__scene.html#a1fc8d208025ecb9b82fffd4915536208">game_scene::init_input</a>() {</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; <span class="comment">// input_manager::instance().set_relative_mouse(true);</span></div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160; input_manager::instance().set_relative_mouse(<span class="keyword">true</span>);</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; </div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <span class="comment">// Register Buttons</span></div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>&#160; input_manager::instance().register_button(<a class="code" href="namespacemkr.html#ab05c359c1a465d51b6f0c9bece1f6e6caab1ebaa509ee17425f3ca063509aeab4">quit</a>, <a class="code" href="namespacemkr.html#a1674fd68b27dd1d2131c097eecec5f59a141e0d9f63d376c8991295e94d48753f">input_context_default</a>, <a class="code" href="namespacemkr.html#a0c7b7b769169190dbcc5f8c8937fe3fbaa6f57392a0e96c80d46067602eeb7ffb">controller_index_default</a>, <a class="code" href="namespacemkr.html#aabd1fc5a2bc5b532b7bc1fe7fd9232fbafcfa60b845f2c43fe05244a6046a0fa2">kc_escape</a>);</div>
Expand Down Expand Up @@ -413,19 +413,19 @@
<div class="line"><a name="l00342"></a><span class="lineno"> 342</span>&#160; }</div>
<div class="line"><a name="l00343"></a><span class="lineno"> 343</span>&#160; </div>
<div class="line"><a name="l00344"></a><span class="lineno"> 344</span>&#160; <span class="comment">// Directional Light</span></div>
<div class="line"><a name="l00345"></a><span class="lineno"> 345</span>&#160; <span class="comment">/*{</span></div>
<div class="line"><a name="l00346"></a><span class="lineno"> 346</span>&#160;<span class="comment"> transform light_trans;</span></div>
<div class="line"><a name="l00347"></a><span class="lineno"> 347</span>&#160;<span class="comment"> light_trans.set_position({0.0f, 0.0f, 0.0f});</span></div>
<div class="line"><a name="l00348"></a><span class="lineno"> 348</span>&#160;<span class="comment"> quaternion rotation_x, rotation_y;</span></div>
<div class="line"><a name="l00349"></a><span class="lineno"> 349</span>&#160;<span class="comment"> rotation_x.set_rotation(vector3::x_axis(), 45.0f * maths_util::deg2rad);</span></div>
<div class="line"><a name="l00350"></a><span class="lineno"> 350</span>&#160;<span class="comment"> // rotation_y.set_rotation(vector3::y_axis(), 45.0f * maths_util::deg2rad);</span></div>
<div class="line"><a name="l00351"></a><span class="lineno"> 351</span>&#160;<span class="comment"> light_trans.set_rotation(rotation_x * rotation_y);</span></div>
<div class="line"><a name="l00352"></a><span class="lineno"> 352</span>&#160;<span class="comment"> light lt;</span></div>
<div class="line"><a name="l00353"></a><span class="lineno"> 353</span>&#160;<span class="comment"> lt.set_shadow_distance(30.0f);</span></div>
<div class="line"><a name="l00354"></a><span class="lineno"> 354</span>&#160;<span class="comment"> lt.set_mode(light_mode::directional);</span></div>
<div class="line"><a name="l00355"></a><span class="lineno"> 355</span>&#160;<span class="comment"> lt.set_power(1.0f);</span></div>
<div class="line"><a name="l00356"></a><span class="lineno"> 356</span>&#160;<span class="comment"> world_.entity().set&lt;transform&gt;(light_trans).set&lt;light&gt;(lt).add&lt;local_to_world&gt;();</span></div>
<div class="line"><a name="l00357"></a><span class="lineno"> 357</span>&#160;<span class="comment"> }*/</span></div>
<div class="line"><a name="l00345"></a><span class="lineno"> 345</span>&#160; {</div>
<div class="line"><a name="l00346"></a><span class="lineno"> 346</span>&#160; <a class="code" href="classmkr_1_1transform.html">transform</a> light_trans;</div>
<div class="line"><a name="l00347"></a><span class="lineno"> 347</span>&#160; light_trans.<a class="code" href="classmkr_1_1transform.html#a25d6f47fd72bc54a76dbb89697d73a43">set_position</a>({0.0f, 0.0f, 0.0f});</div>
<div class="line"><a name="l00348"></a><span class="lineno"> 348</span>&#160; quaternion rotation_x, rotation_y;</div>
<div class="line"><a name="l00349"></a><span class="lineno"> 349</span>&#160; rotation_x.<a class="code" href="classmkr_1_1transform.html#a4f01332afe9f103dde2008956ddec32e">set_rotation</a>(vector3::x_axis(), 45.0f * maths_util::deg2rad);</div>
<div class="line"><a name="l00350"></a><span class="lineno"> 350</span>&#160; rotation_y.<a class="code" href="classmkr_1_1transform.html#a4f01332afe9f103dde2008956ddec32e">set_rotation</a>(vector3::y_axis(), 45.0f * maths_util::deg2rad);</div>
<div class="line"><a name="l00351"></a><span class="lineno"> 351</span>&#160; light_trans.<a class="code" href="classmkr_1_1transform.html#a4f01332afe9f103dde2008956ddec32e">set_rotation</a>(rotation_x * rotation_y);</div>
<div class="line"><a name="l00352"></a><span class="lineno"> 352</span>&#160; <a class="code" href="classmkr_1_1light.html">light</a> lt;</div>
<div class="line"><a name="l00353"></a><span class="lineno"> 353</span>&#160; lt.<a class="code" href="classmkr_1_1light.html#a4d930c5cfae7c23fd08371331b089bc9">set_shadow_distance</a>(30.0f);</div>
<div class="line"><a name="l00354"></a><span class="lineno"> 354</span>&#160; lt.<a class="code" href="classmkr_1_1light.html#aca70455e2d48fe8a0a05bf857bbf2a2c">set_mode</a>(<a class="code" href="namespacemkr.html#a898cbea13b10a6143c2faf35f4a0fbc2a291534b609849353584a7552c8a44335">light_mode::directional</a>);</div>
<div class="line"><a name="l00355"></a><span class="lineno"> 355</span>&#160; lt.<a class="code" href="classmkr_1_1light.html#aeab559ebaaeace55566eda0f1de164ba">set_power</a>(1.0f);</div>
<div class="line"><a name="l00356"></a><span class="lineno"> 356</span>&#160; <a class="code" href="classmkr_1_1scene.html#af5c07f4f0c6219bdf13fd456b6db04ae">world_</a>.entity().set&lt;<a class="code" href="classmkr_1_1transform.html">transform</a>&gt;(light_trans).set&lt;light&gt;(lt).add&lt;<a class="code" href="structmkr_1_1local__to__world.html">local_to_world</a>&gt;();</div>
<div class="line"><a name="l00357"></a><span class="lineno"> 357</span>&#160; }</div>
<div class="line"><a name="l00358"></a><span class="lineno"> 358</span>&#160; </div>
<div class="line"><a name="l00359"></a><span class="lineno"> 359</span>&#160; <span class="comment">// Point Light</span></div>
<div class="line"><a name="l00360"></a><span class="lineno"> 360</span>&#160; <span class="comment">/*{</span></div>
Expand Down Expand Up @@ -454,7 +454,7 @@
<div class="line"><a name="l00383"></a><span class="lineno"> 383</span>&#160; </div>
<div class="line"><a name="l00384"></a><span class="lineno"><a class="line" href="classmkr_1_1game__scene.html#a05d75be7a585cd8a303e63c3ef72f6fc"> 384</a></span>&#160; <span class="keywordtype">void</span> <a class="code" href="classmkr_1_1game__scene.html#a05d75be7a585cd8a303e63c3ef72f6fc">game_scene::init_player</a>() {</div>
<div class="line"><a name="l00385"></a><span class="lineno"> 385</span>&#160; <a class="code" href="classmkr_1_1transform.html">transform</a> head_trans;</div>
<div class="line"><a name="l00386"></a><span class="lineno"> 386</span>&#160; head_trans.<a class="code" href="classmkr_1_1transform.html#a25d6f47fd72bc54a76dbb89697d73a43">set_position</a>({0.0f, 4.0f, 0.0f});</div>
<div class="line"><a name="l00386"></a><span class="lineno"> 386</span>&#160; head_trans.<a class="code" href="classmkr_1_1transform.html#a25d6f47fd72bc54a76dbb89697d73a43">set_position</a>({0.0f, 1.7f, 0.0f});</div>
<div class="line"><a name="l00387"></a><span class="lineno"> 387</span>&#160; </div>
<div class="line"><a name="l00388"></a><span class="lineno"> 388</span>&#160; <a class="code" href="structmkr_1_1camera.html">camera</a> cam;</div>
<div class="line"><a name="l00389"></a><span class="lineno"> 389</span>&#160; cam.<a class="code" href="structmkr_1_1camera.html#a5ac592bb52d1b48096c938a7c0268ff0">skybox_</a>.<a class="code" href="classmkr_1_1skybox.html#a1000d3b9dd0012fc18c6f0ea77c07dde">shader_</a> = shader_manager::instance().get_shader(<span class="stringliteral">&quot;skybox&quot;</span>);</div>
Expand Down Expand Up @@ -497,7 +497,7 @@
<div class="line"><a name="l00426"></a><span class="lineno"> 426</span>&#160; <a class="code" href="structmkr_1_1render__mesh.html">render_mesh</a> rend{};</div>
<div class="line"><a name="l00427"></a><span class="lineno"> 427</span>&#160; rend.<a class="code" href="structmkr_1_1render__mesh.html#ab9d1be0feeb50be2713631c91cadc5ee">mesh_</a> = mesh_manager::instance().get_mesh(<span class="stringliteral">&quot;sphere&quot;</span>);</div>
<div class="line"><a name="l00428"></a><span class="lineno"> 428</span>&#160; rend.material_ = material_manager::instance().get_material(<span class="stringliteral">&quot;pavement&quot;</span>);</div>
<div class="line"><a name="l00429"></a><span class="lineno"> 429</span>&#160; <a class="code" href="classmkr_1_1scene.html#af5c07f4f0c6219bdf13fd456b6db04ae">world_</a>.entity().set&lt;<a class="code" href="classmkr_1_1transform.html">transform</a>&gt;(trans).set&lt;render_mesh&gt;(rend).add&lt;<a class="code" href="structmkr_1_1local__to__world.html">local_to_world</a>&gt;().add&lt;rotate_tag&gt;();</div>
<div class="line"><a name="l00429"></a><span class="lineno"> 429</span>&#160; <a class="code" href="classmkr_1_1scene.html#af5c07f4f0c6219bdf13fd456b6db04ae">world_</a>.entity().set&lt;<a class="code" href="classmkr_1_1transform.html">transform</a>&gt;(trans).set&lt;render_mesh&gt;(rend).add&lt;<a class="code" href="structmkr_1_1local__to__world.html">local_to_world</a>&gt;();</div>
<div class="line"><a name="l00430"></a><span class="lineno"> 430</span>&#160; }</div>
<div class="line"><a name="l00431"></a><span class="lineno"> 431</span>&#160; </div>
<div class="line"><a name="l00432"></a><span class="lineno"> 432</span>&#160; {</div>
Expand Down Expand Up @@ -689,6 +689,7 @@
<div class="ttc" id="aclassmkr_1_1game__scene_html_ab42e4b059493450b329c7c8081f6e0f8"><div class="ttname"><a href="classmkr_1_1game__scene.html#ab42e4b059493450b329c7c8081f6e0f8">mkr::game_scene::hcs_</a></div><div class="ttdeci">head_control_system hcs_</div><div class="ttdef"><b>Definition:</b> <a href="game__scene_8h_source.html#l00012">game_scene.h:12</a></div></div>
<div class="ttc" id="aclassmkr_1_1geometry__shader_html"><div class="ttname"><a href="classmkr_1_1geometry__shader.html">mkr::geometry_shader</a></div><div class="ttdef"><b>Definition:</b> <a href="geometry__shader_8h_source.html#l00006">geometry_shader.h:6</a></div></div>
<div class="ttc" id="aclassmkr_1_1light_html"><div class="ttname"><a href="classmkr_1_1light.html">mkr::light</a></div><div class="ttdef"><b>Definition:</b> <a href="light_8h_source.html#l00013">light.h:13</a></div></div>
<div class="ttc" id="aclassmkr_1_1light_html_a4d930c5cfae7c23fd08371331b089bc9"><div class="ttname"><a href="classmkr_1_1light.html#a4d930c5cfae7c23fd08371331b089bc9">mkr::light::set_shadow_distance</a></div><div class="ttdeci">void set_shadow_distance(float _distance)</div><div class="ttdef"><b>Definition:</b> <a href="light_8h_source.html#l00071">light.h:71</a></div></div>
<div class="ttc" id="aclassmkr_1_1light_html_aca70455e2d48fe8a0a05bf857bbf2a2c"><div class="ttname"><a href="classmkr_1_1light.html#aca70455e2d48fe8a0a05bf857bbf2a2c">mkr::light::set_mode</a></div><div class="ttdeci">void set_mode(light_mode _type)</div><div class="ttdef"><b>Definition:</b> <a href="light_8h_source.html#l00035">light.h:35</a></div></div>
<div class="ttc" id="aclassmkr_1_1light_html_aeab559ebaaeace55566eda0f1de164ba"><div class="ttname"><a href="classmkr_1_1light.html#aeab559ebaaeace55566eda0f1de164ba">mkr::light::set_power</a></div><div class="ttdeci">void set_power(float _power)</div><div class="ttdef"><b>Definition:</b> <a href="light_8h_source.html#l00039">light.h:39</a></div></div>
<div class="ttc" id="aclassmkr_1_1lighting__shader_html"><div class="ttname"><a href="classmkr_1_1lighting__shader.html">mkr::lighting_shader</a></div><div class="ttdef"><b>Definition:</b> <a href="lighting__shader_8h_source.html#l00007">lighting_shader.h:7</a></div></div>
Expand Down Expand Up @@ -720,6 +721,7 @@
<div class="ttc" id="anamespacemkr_html"><div class="ttname"><a href="namespacemkr.html">mkr</a></div><div class="ttdef"><b>Definition:</b> <a href="application_8cpp_source.html#l00010">application.cpp:10</a></div></div>
<div class="ttc" id="anamespacemkr_html_a0c7b7b769169190dbcc5f8c8937fe3fbaa6f57392a0e96c80d46067602eeb7ffb"><div class="ttname"><a href="namespacemkr.html#a0c7b7b769169190dbcc5f8c8937fe3fbaa6f57392a0e96c80d46067602eeb7ffb">mkr::controller_index_default</a></div><div class="ttdeci">@ controller_index_default</div><div class="ttdef"><b>Definition:</b> <a href="input_8h_source.html#l00068">input.h:68</a></div></div>
<div class="ttc" id="anamespacemkr_html_a1674fd68b27dd1d2131c097eecec5f59a141e0d9f63d376c8991295e94d48753f"><div class="ttname"><a href="namespacemkr.html#a1674fd68b27dd1d2131c097eecec5f59a141e0d9f63d376c8991295e94d48753f">mkr::input_context_default</a></div><div class="ttdeci">@ input_context_default</div><div class="ttdef"><b>Definition:</b> <a href="input_8h_source.html#l00044">input.h:44</a></div></div>
<div class="ttc" id="anamespacemkr_html_a898cbea13b10a6143c2faf35f4a0fbc2a291534b609849353584a7552c8a44335"><div class="ttname"><a href="namespacemkr.html#a898cbea13b10a6143c2faf35f4a0fbc2a291534b609849353584a7552c8a44335">mkr::directional</a></div><div class="ttdeci">@ directional</div><div class="ttdef"><b>Definition:</b> <a href="light_8h_source.html#l00010">light.h:10</a></div></div>
<div class="ttc" id="anamespacemkr_html_a898cbea13b10a6143c2faf35f4a0fbc2a38e292da519d45e010738205cd347395"><div class="ttname"><a href="namespacemkr.html#a898cbea13b10a6143c2faf35f4a0fbc2a38e292da519d45e010738205cd347395">mkr::spot</a></div><div class="ttdeci">@ spot</div><div class="ttdef"><b>Definition:</b> <a href="light_8h_source.html#l00009">light.h:9</a></div></div>
<div class="ttc" id="anamespacemkr_html_a898cbea13b10a6143c2faf35f4a0fbc2ac895ec5b78e7a9170494460bc36e10a8"><div class="ttname"><a href="namespacemkr.html#a898cbea13b10a6143c2faf35f4a0fbc2ac895ec5b78e7a9170494460bc36e10a8">mkr::point</a></div><div class="ttdeci">@ point</div><div class="ttdef"><b>Definition:</b> <a href="light_8h_source.html#l00008">light.h:8</a></div></div>
<div class="ttc" id="anamespacemkr_html_aabd1fc5a2bc5b532b7bc1fe7fd9232fba0466f1640a13e4b2c4d71dfa9e8a963d"><div class="ttname"><a href="namespacemkr.html#aabd1fc5a2bc5b532b7bc1fe7fd9232fba0466f1640a13e4b2c4d71dfa9e8a963d">mkr::kc_gamepad_button_dpad_right</a></div><div class="ttdeci">@ kc_gamepad_button_dpad_right</div><div class="ttdef"><b>Definition:</b> <a href="keycode_8h_source.html#l00279">keycode.h:279</a></div></div>
Expand Down

0 comments on commit 8477bbc

Please sign in to comment.