{"id":176,"date":"2016-10-07T20:16:46","date_gmt":"2016-10-07T18:16:46","guid":{"rendered":"http:\/\/robert-lindner.com\/blog\/?page_id=176"},"modified":"2025-12-05T15:24:58","modified_gmt":"2025-12-05T15:24:58","slug":"code_samples","status":"publish","type":"page","link":"https:\/\/leah-lindner.com\/blog\/code_samples\/","title":{"rendered":"Code Samples"},"content":{"rendered":"<p>A great example for how I write code these days is my Game Engine&#8217;s Entity Component System. You can read the code for it <a href=\"https:\/\/github.com\/Illation\/ETEngine\/tree\/f446488b6d57148547b2c5809341c8d98f380ef4\/Engine\/source\/EtFramework\/ECS\" target=\"_blank\" rel=\"noopener\">here<\/a>, or read a blog post explaining how it works <a href=\"https:\/\/leah-lindner.com\/blog\/2025\/12\/05\/e-t-engines-archetype-based-entity-component-system-part-1-how-to-use-it\/\">here<\/a>.<\/p>\n<h3>Older Samples<\/h3>\n<hr \/>\n<p><a href=\"http:\/\/leah-lindner.com\/img\/projects\/code_samples\/allSamples.zip\">Download all Samples<\/a><\/p>\n<p>C++, C#, GLSL, HLSL, Unity, OpenGL<\/p>\n<hr \/>\n<p><a href=\"http:\/\/leah-lindner.com\/img\/projects\/code_samples\/AtmosphericReentry.fx\">Atmospheric Entry Shader<\/a><\/p>\n<p>HLSL<\/p>\n<p><a href=\"http:\/\/leah-lindner.com\/img\/projects\/code_samples\/deferredCompositeLightingShader.glsl\">Deferred rendering composite shader<\/a> &#8211; with lighting<\/p>\n<p>GLSL<\/p>\n<p><a href=\"http:\/\/leah-lindner.com\/img\/projects\/code_samples\/mazeGenerator.zip\">Maze Generator<\/a> &#8211; Complete Program<\/p>\n<p>C++<\/p>\n<p><a href=\"http:\/\/leah-lindner.com\/img\/projects\/code_samples\/MeshFilterBuild.cpp\">Mesh Filter building<\/a><\/p>\n<p>C++, OpenGL<\/p>\n<p><a href=\"http:\/\/leah-lindner.com\/img\/projects\/code_samples\/navMeshPath.cpp\">Navigation Mesh Pathfinding<\/a><\/p>\n<p>C++<\/p>\n<p><a href=\"http:\/\/leah-lindner.com\/img\/projects\/code_samples\/pidControllerUsage.cs\">PID Controller usage<\/a><\/p>\n<p>C#, Unity<\/p>\n<hr \/>\n<p>The next two samples are from my Pathtracer. The topics I programmed are interesting, but the code is not very clean.<\/p>\n<p>I wrote it before knowing a lot about c++ coding standards or the standard library.<\/p>\n<p><a href=\"http:\/\/leah-lindner.com\/img\/projects\/code_samples\/DiffuseBRDF.cpp\">Diffuse BRDF<\/a>\u00a0&#8211;\u00a0cpu pathtracing<\/p>\n<p>C++<\/p>\n<p><a href=\"http:\/\/leah-lindner.com\/img\/projects\/code_samples\/RayMeshIntersection.cpp\">Ray Mesh intersection<\/a> &#8211; with vertex interpolation<\/p>\n<p>C++<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A great example for how I write code these days is my Game Engine&#8217;s Entity Component System. You can read the code for it here, or read a blog post explaining how it works here. Older Samples Download all Samples C++, C#, GLSL, HLSL, Unity, OpenGL Atmospheric Entry Shader HLSL Deferred rendering composite shader &#8211; &hellip; <a href=\"https:\/\/leah-lindner.com\/blog\/code_samples\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Code Samples&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-176","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/leah-lindner.com\/blog\/wp-json\/wp\/v2\/pages\/176","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/leah-lindner.com\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/leah-lindner.com\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/leah-lindner.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/leah-lindner.com\/blog\/wp-json\/wp\/v2\/comments?post=176"}],"version-history":[{"count":3,"href":"https:\/\/leah-lindner.com\/blog\/wp-json\/wp\/v2\/pages\/176\/revisions"}],"predecessor-version":[{"id":273,"href":"https:\/\/leah-lindner.com\/blog\/wp-json\/wp\/v2\/pages\/176\/revisions\/273"}],"wp:attachment":[{"href":"https:\/\/leah-lindner.com\/blog\/wp-json\/wp\/v2\/media?parent=176"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}