Skip to content

Commit

Permalink
Refactor how templates are defined.
Browse files Browse the repository at this point in the history
  • Loading branch information
smack0007 committed May 17, 2024
1 parent f0f12d0 commit fd2ff63
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 95 deletions.
6 changes: 3 additions & 3 deletions blog/page14.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0"><meta name="description" content=""><meta name="author" content="Zachary Snow"><title>The Blog of Zachary Snow</title><base href="https://smack0007.github.io"></base><link rel="stylesheet" type="text/css" href="css/style.css"><link rel="alternate" type="application/rss+xml" title="The Blog of Zachary Snow" href="feed.rss"><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"><link rel="manifest" href="/site.webmanifest"></head><body><div class="wrap"><nav class="navbar navbar-expand-lg navbar-dark bg-dark"><h1><a class="navbar-brand" href="/">The Blog of Zachary Snow</a></h1><button id="navbar-toggler" class="navbar-toggler" type="button" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button><div class="collapse navbar-collapse" id="navbarSupportedContent"><ul class="navbar-nav mr-auto"><li class="nav-item"><a class="nav-link active" href="index.html">Home<span class="visually-hidden">(current)</span></a></li><li class="nav-item"><a class="nav-link" href="about.html">About</a></li><li class="nav-item"><a class="nav-link" href="tags/index.html">Tags</a></li></ul><div class="social my-2 my-lg-0"><a href="https://twitter.com/smack0007" class="twitter" title="Twitter"><span class="icon-twitter"></span></a><a href="https://github.com/smack0007" class="github" title="Github"><span class="icon-github"></span></a><a href="https://paypal.me/smack0007" class="coffee" title="Buy me a Coffee"><span class="icon-mug"></span></a><a href="feed.rss" class="rss" title="RSS"><span class="icon-rss"></span></a></div></div></nav><main class="container"><div class="posts"><div class="post"><div class="post-header"><h2><a href="blog/2011/snowball-a-slightly-different-direction.html">Snowball: A Slightly Different Direction</a></h2><div class="meta"><span class="date"><span class="icon-calendar"></span>July 2, 2011</span><span class="tags"><a href="tags/net/index.html"><span class="icon icon-price-tags"></span><span class="tagName">.net</span></a><a href="tags/codeplex/index.html"><span class="icon icon-price-tags"></span><span class="tagName">codeplex</span></a></span></div></div><div class="content"><p>At first, I had imagined <a href="http://snowball.codeplex.com/">Snowball</a>, now located on Codeplex, to be a framework which would define how your game objects look. I.E. I had a class called GameEntity which I imagined would handle a lot of boiler plate code for you such as setting up Initialize(), Update(), Draw(), etc. </p>
<p>I&#39;ve decided to move away from that and let Snowball purely focus on the subsystems of a game, such as Graphics, Sound, Input, etc. Extending from the Game class completely sets up these aspects of your game for you. I think I will include helper components, such as a collision detection system, but I will not force you to use them.</p>
</div></div><div class="post"><div class="post-header"><h2><a href="blog/2011/xaudio2-stop-currently-playing-sound.html">XAudio2: Stop Currently Playing Sound</a></h2><div class="meta"><span class="date"><span class="icon-calendar"></span>July 2, 2011</span><span class="tags"><a href="tags/net/index.html"><span class="icon icon-price-tags"></span><span class="tagName">.net</span></a><a href="tags/slimdx/index.html"><span class="icon icon-price-tags"></span><span class="tagName">slimdx</span></a><a href="tags/xaudio2/index.html"><span class="icon icon-price-tags"></span><span class="tagName">xaudio2</span></a></span></div></div><div class="content"><p>Using SlimDX, if you want to stop a sound which is currently playing via XAudio2, use the following methods on the SourceVoice object:</p>
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0"><meta name="description" content=""><meta name="author" content="Zachary Snow"><title>The Blog of Zachary Snow</title><base href="https://smack0007.github.io"></base><link rel="stylesheet" type="text/css" href="css/style.css"><link rel="alternate" type="application/rss+xml" title="The Blog of Zachary Snow" href="feed.rss"><link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"><link rel="manifest" href="/site.webmanifest"></head><body><div class="wrap"><nav class="navbar navbar-expand-lg navbar-dark bg-dark"><h1><a class="navbar-brand" href="/">The Blog of Zachary Snow</a></h1><button id="navbar-toggler" class="navbar-toggler" type="button" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button><div class="collapse navbar-collapse" id="navbarSupportedContent"><ul class="navbar-nav mr-auto"><li class="nav-item"><a class="nav-link active" href="index.html">Home<span class="visually-hidden">(current)</span></a></li><li class="nav-item"><a class="nav-link" href="about.html">About</a></li><li class="nav-item"><a class="nav-link" href="tags/index.html">Tags</a></li></ul><div class="social my-2 my-lg-0"><a href="https://twitter.com/smack0007" class="twitter" title="Twitter"><span class="icon-twitter"></span></a><a href="https://github.com/smack0007" class="github" title="Github"><span class="icon-github"></span></a><a href="https://paypal.me/smack0007" class="coffee" title="Buy me a Coffee"><span class="icon-mug"></span></a><a href="feed.rss" class="rss" title="RSS"><span class="icon-rss"></span></a></div></div></nav><main class="container"><div class="posts"><div class="post"><div class="post-header"><h2><a href="blog/2011/xaudio2-stop-currently-playing-sound.html">XAudio2: Stop Currently Playing Sound</a></h2><div class="meta"><span class="date"><span class="icon-calendar"></span>July 2, 2011</span><span class="tags"><a href="tags/net/index.html"><span class="icon icon-price-tags"></span><span class="tagName">.net</span></a><a href="tags/slimdx/index.html"><span class="icon icon-price-tags"></span><span class="tagName">slimdx</span></a><a href="tags/xaudio2/index.html"><span class="icon icon-price-tags"></span><span class="tagName">xaudio2</span></a></span></div></div><div class="content"><p>Using SlimDX, if you want to stop a sound which is currently playing via XAudio2, use the following methods on the SourceVoice object:</p>
<pre><code class="hljs c#">sourceVoice.Stop();
sourceVoice.FlushSourceBuffers();
</code></pre>
</div></div><div class="post"><div class="post-header"><h2><a href="blog/2011/snowball-a-slightly-different-direction.html">Snowball: A Slightly Different Direction</a></h2><div class="meta"><span class="date"><span class="icon-calendar"></span>July 2, 2011</span><span class="tags"><a href="tags/net/index.html"><span class="icon icon-price-tags"></span><span class="tagName">.net</span></a><a href="tags/codeplex/index.html"><span class="icon icon-price-tags"></span><span class="tagName">codeplex</span></a></span></div></div><div class="content"><p>At first, I had imagined <a href="http://snowball.codeplex.com/">Snowball</a>, now located on Codeplex, to be a framework which would define how your game objects look. I.E. I had a class called GameEntity which I imagined would handle a lot of boiler plate code for you such as setting up Initialize(), Update(), Draw(), etc. </p>
<p>I&#39;ve decided to move away from that and let Snowball purely focus on the subsystems of a game, such as Graphics, Sound, Input, etc. Extending from the Game class completely sets up these aspects of your game for you. I think I will include helper components, such as a collision detection system, but I will not force you to use them.</p>
</div></div><div class="post"><div class="post-header"><h2><a href="blog/2011/switching-from-git-to-mercurial.html">Switching from Git to Mercurial</a></h2><div class="meta"><span class="date"><span class="icon-calendar"></span>June 3, 2011</span><span class="tags"><a href="tags/git/index.html"><span class="icon icon-price-tags"></span><span class="tagName">git</span></a><a href="tags/mercurial/index.html"><span class="icon icon-price-tags"></span><span class="tagName">mercurial</span></a></span></div></div><div class="content"><p>I&#39;ve decided to make the switch from using git to Mercurial. Git&#39;s syntax to me is much more complicated than it needs to be and Mercurial seems to be more my style. I find it&#39;s much easier to find out how to do things with Mercurial and to be honest, I use about 10% of the functionality in either git or Mercurial.</p>
<p>This also means I&#39;ll be transitioning Snowball to Codeplex I think. I&#39;ll be moving it away from GitHub for sure just not 100% sure where.</p>
</div></div><div class="post"><div class="post-header"><h2><a href="blog/2011/marker-interfaces.html">Marker Interfaces</a></h2><div class="meta"><span class="date"><span class="icon-calendar"></span>May 24, 2011</span><span class="tags"><a href="tags/design-patterns/index.html"><span class="icon icon-price-tags"></span><span class="tagName">design-patterns</span></a></span></div></div><div class="content"><p>In Snowball I was debating adding an empty interface to identify certain classes in my framework as components. I wasn&#39;t sure if this was code smell or not so I did some searching on <a href="http://stackoverflow.com/search?q=marker+interface">Stackoverflow</a> and found out this concept is actually called &quot;Marker Interfaces&quot;. Learn something new every day.</p>
Expand Down
Loading

0 comments on commit fd2ff63

Please sign in to comment.