<?xml version='1.0' encoding='utf-8'?>
<feed xmlns='http://www.w3.org/2005/Atom' xmlns:slash='http://purl.org/rss/1.0/modules/slash/' xml:base='http://www.libgosu.org'>
  <id>http://www.libgosu.org/cgi-bin/mwf/forum.pl</id>
  <link rel='self' href='http://www.libgosu.org/mwf/attachments/xml/board1.atom10.xml'/>
  <link rel='alternate' href='http://www.libgosu.org/cgi-bin/mwf/forum.pl'/>
  <title>Gosu Forums - Gosu News</title>
  <subtitle>Gosu Forum Feed</subtitle>
  <updated>2011-12-17T23:00:20Z</updated>
  <generator version='2.24.2' uri='http://www.mwforum.org/'>mwForum</generator>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5362</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5362'/>
    <title>Gosu 0.7.41 released</title>
    <author><name>jlnr</name></author>
    <published>2011-12-17T04:33:59Z</published>
    <updated>2011-12-17T04:33:59Z</updated>
    <category term='Gosu News'/>
    <slash:comments>0</slash:comments>
    <content type='html'>
      <![CDATA[Another tiny polishing update that is uploading right now.<br/><br/>• All: Fixed several subtle bugs in the transform stack<br/>• All: Fixed flush() when inside transforms/clipping<br/>• Linux: Fixed another PNG loading bug (thanks again, Jamer!)<br/><br/>If you have run into either of these three bugs, I hope this update fixes them. Just in time for Ludum Dare too!]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5342</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5342'/>
    <title>Gosu 0.7.40 released</title>
    <author><name>jlnr</name></author>
    <published>2011-12-13T18:28:50Z</published>
    <updated>2011-12-13T18:28:50Z</updated>
    <category term='Gosu News'/>
    <slash:comments>14</slash:comments>
    <content type='html'>
      <![CDATA[I am also flushing between states - it&#39;s nice to have reusable states that don&#39;t Z-collide with the game. But I was lucky enough to only scroll in one of the states. :)<br/><br/>Yes, it is already fixed, I just need to package a release again. (Soon, Ludum Dare is impending after all!)]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5340</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5340'/>
    <title>Gosu 0.7.40 released</title>
    <author><name>RavensKrag</name></author>
    <published>2011-12-13T10:50:21Z</published>
    <updated>2011-12-13T10:50:21Z</updated>
    <category term='Gosu News'/>
    <slash:comments>14</slash:comments>
    <content type='html'>
      <![CDATA[So it&#39;s supposed to work past .41 then? Strange, as it works in .38, just not in .40.<br/><br/>Ah well, I&#39;ll shuffle the code around a bit for the time being, although it results in a bit of a performance hit.&#160; My code is by no means optimized though, so I&#39;m sure I could stand to eek out some efficiency elsewhere.&#160; I look forward to .41, it sounds like that&#39;s gonna be&#160; good one.<br/><br/>For those interested, here&#39;s what I&#39;m doing.&#160; It&#39;s intended to draw gamestates in different &quot;layers,&quot; such that each state has it&#39;s own z-index ordering.<br/><br/><code>@window.translate *@camera.offset do<br/>&#160; @stack[ACTIVE].each do |gamestate|<br/>&#160; &#160; if gamestate.visible?<br/>&#160; &#160; &#160; gamestate.draw @camera.zoom<br/>&#160; &#160; &#160; @window.flush<br/>&#160; &#160; end<br/>&#160; end<br/>end</code>]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5339</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5339'/>
    <title>Gosu 0.7.40 released</title>
    <author><name>jlnr</name></author>
    <published>2011-12-13T10:02:51Z</published>
    <updated>2011-12-13T10:02:51Z</updated>
    <category term='Gosu News'/>
    <slash:comments>14</slash:comments>
    <content type='html'>
      <![CDATA[Do you use <code>flush()</code> somewhere? Up to the upcoming .41, <code>flush()</code> can only be used outside of clipping and transformations :(]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5337</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5337'/>
    <title>Gosu 0.7.40 released</title>
    <author><name>RavensKrag</name></author>
    <published>2011-12-13T04:37:51Z</published>
    <updated>2011-12-13T04:37:51Z</updated>
    <category term='Gosu News'/>
    <slash:comments>14</slash:comments>
    <content type='html'>
      <![CDATA[Ok, finally got around to it.&#160; Here&#39;s the error.<br/><br/><code> ruby: ../GosuImpl/Graphics/DrawOpQueue.hpp:128: void Gosu::DrawOpQueue::popTransform(): Assertion </code>individualTransforms.size() &gt; 1&#39; failed.<br/>Aborted `]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5335</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5335'/>
    <title>Ludum Dare #22 next weekend December 16th-19th</title>
    <author><name>jlnr</name></author>
    <published>2011-12-11T23:22:36Z</published>
    <updated>2011-12-11T23:22:36Z</updated>
    <category term='Gosu News'/>
    <slash:comments>0</slash:comments>
    <content type='html'>
      <![CDATA[Theme voting started already. Anyone in?<br/><br/><a class='url' href='http://www.ludumdare.com/compo/ld-22-theme-voting-round-1-of-5/'>http://www.ludumdare.com/compo/ld-22-theme-voting-round-1-of-5/</a>]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5304</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5304'/>
    <title>Gosu 0.7.39 released</title>
    <author><name>bestguigui</name></author>
    <published>2011-12-02T18:46:08Z</published>
    <updated>2011-12-02T18:46:08Z</updated>
    <category term='Gosu News'/>
    <slash:comments>32</slash:comments>
    <content type='html'>
      <![CDATA[That would be great ! But take the time needed, your work is still awesome]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5303</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5303'/>
    <title>Gosu 0.7.39 released</title>
    <author><name>jlnr</name></author>
    <published>2011-12-02T18:31:48Z</published>
    <updated>2011-12-02T18:31:48Z</updated>
    <category term='Gosu News'/>
    <slash:comments>32</slash:comments>
    <content type='html'>
      <![CDATA[Oh...yeah well, that is impossible sadly :) It may work with a future <code>render_to_texture</code> function.]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5302</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5302'/>
    <title>Gosu 0.7.39 released</title>
    <author><name>bestguigui</name></author>
    <published>2011-12-02T18:24:19Z</published>
    <updated>2011-12-02T18:24:19Z</updated>
    <category term='Gosu News'/>
    <slash:comments>32</slash:comments>
    <content type='html'>
      <![CDATA[I was referring to Window#record ;)]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5299</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5299'/>
    <title>Gosu 0.7.39 released</title>
    <author><name>jlnr</name></author>
    <published>2011-12-01T20:51:41Z</published>
    <updated>2011-12-01T20:51:41Z</updated>
    <category term='Gosu News'/>
    <slash:comments>32</slash:comments>
    <content type='html'>
      <![CDATA[<code>translate</code> does actually work with custom GL now. Just be sure to use <code>gl(z) { code }</code> instead of the old <code>gl { code }</code>.<br/><br/>Macros are also implemented using <code>gl(z)</code>, and they respect transforms correctly.]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5298</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5298'/>
    <title>Gosu 0.7.39 released</title>
    <author><name>bestguigui</name></author>
    <published>2011-12-01T20:27:42Z</published>
    <updated>2011-12-01T20:27:42Z</updated>
    <category term='Gosu News'/>
    <slash:comments>32</slash:comments>
    <content type='html'>
      <![CDATA[Too bad it currently doesn&#39;t take Custom OpenGL Code :( <br/>I hope it&#39;ll be possible in a coming version ;)]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5296</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5296'/>
    <title>Gosu 0.7.39 released</title>
    <author><name>jlnr</name></author>
    <published>2011-11-29T15:34:04Z</published>
    <updated>2011-11-29T15:34:04Z</updated>
    <category term='Gosu News'/>
    <slash:comments>32</slash:comments>
    <content type='html'>
      <![CDATA[Also note that this only works in 0.7.40, so we are definitely in the wrong thread now. ;)]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5295</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5295'/>
    <title>Gosu 0.7.39 released</title>
    <author><name>RavensKrag</name></author>
    <published>2011-11-29T15:05:06Z</published>
    <updated>2011-11-29T15:05:06Z</updated>
    <category term='Gosu News'/>
    <slash:comments>32</slash:comments>
    <content type='html'>
      <![CDATA[Yeah, I figured <code>translate()</code> was the solution there.&#160; Thanks a lot.]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5294</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5294'/>
    <title>Gosu 0.7.39 released</title>
    <author><name>Spooner</name></author>
    <published>2011-11-29T13:52:42Z</published>
    <updated>2011-11-29T13:52:42Z</updated>
    <category term='Gosu News'/>
    <slash:comments>32</slash:comments>
    <content type='html'>
      <![CDATA[I got the impression that the only effect that the recorded size had was to affect how <code>#draw_rot</code> managed <code>rotation</code> and <code>center_x</code>/<code>center_y</code>. Other than that, the size is not relevant (And I tell Gosu that all my recordings are 1x1 because I don&#39;t need to rotate or center them and everything is fine :D).]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5293</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5293'/>
    <title>Gosu 0.7.39 released</title>
    <author><name>jlnr</name></author>
    <published>2011-11-29T10:17:45Z</published>
    <updated>2011-11-29T10:17:45Z</updated>
    <category term='Gosu News'/>
    <slash:comments>32</slash:comments>
    <content type='html'>
      <![CDATA[That&#39;s what it used to do, and you didn&#39;t even have to pass width/height then. But the resulting values were hard to rely on so I made it manual. (e.g. what if you want to record a map, but this one block happens to an empty first row/column)<br/><br/>It always starts from (0, 0). You should draw what you want to draw all between (0, 0) and (width, height), but you can easily use <code>translate()</code> to do so.]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5292</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5292'/>
    <title>Gosu 0.7.39 released</title>
    <author><name>RavensKrag</name></author>
    <published>2011-11-29T05:18:45Z</published>
    <updated>2011-11-29T05:18:45Z</updated>
    <category term='Gosu News'/>
    <slash:comments>32</slash:comments>
    <content type='html'>
      <![CDATA[So, how does this work exactly? There&#39;s a height and a width, but no x and y? What if I record images being draw at 2000,2000 or something like that? Is it somehow intelligent enough to cut out the 2000x2000 block of dead space?<br/><br/>Suddenly interested in this technique for the game I&#39;m working on, but I have a larger bottleneck I need to get through first.]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5290</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5290'/>
    <title>Gosu 0.7.39 released</title>
    <author><name>bestguigui</name></author>
    <published>2011-11-28T18:20:01Z</published>
    <updated>2011-11-28T18:20:01Z</updated>
    <category term='Gosu News'/>
    <slash:comments>32</slash:comments>
    <content type='html'>
      <![CDATA[This is an amazing feature ! I was starting to use render to texture, but it seems that native Gosu will now do the trick ! Thanks again !]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5287</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5287'/>
    <title>Gosu 0.7.40 released</title>
    <author><name>jlnr</name></author>
    <published>2011-11-25T19:03:53Z</published>
    <updated>2011-11-25T19:03:53Z</updated>
    <category term='Gosu News'/>
    <slash:comments>14</slash:comments>
    <content type='html'>
      <![CDATA[Yeah, that would be awesome. :D Linux, right? I haven&#39;t exactly tested it a lot in my VM before releasing.]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5285</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5285'/>
    <title>Gosu 0.7.40 released</title>
    <author><name>RavensKrag</name></author>
    <published>2011-11-25T15:37:05Z</published>
    <updated>2011-11-25T15:37:05Z</updated>
    <category term='Gosu News'/>
    <slash:comments>14</slash:comments>
    <content type='html'>
      <![CDATA[Just updated to 0.7.40.<br/><br/>Not totally sure what&#39;s wrong, but it&#39;s broken for me.&#160; Sorry to be helpful and unhelpful at the same time, but I got a deadline to meet.&#160; Well, more of a personal milestone, but still.&#160; I&#39;ll try to post more detailed information later.]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5240</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5240'/>
    <title>Gosu 0.7.39 released</title>
    <author><name>danikaze</name></author>
    <published>2011-11-22T18:15:27Z</published>
    <updated>2011-11-22T18:15:27Z</updated>
    <category term='Gosu News'/>
    <slash:comments>32</slash:comments>
    <content type='html'>
      <![CDATA[I&#39;m not sure. Never implemented it, just used ;)]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5239</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5239'/>
    <title>Gosu 0.7.39 released</title>
    <author><name>jlnr</name></author>
    <published>2011-11-22T14:47:40Z</published>
    <updated>2011-11-22T14:47:40Z</updated>
    <category term='Gosu News'/>
    <slash:comments>32</slash:comments>
    <content type='html'>
      <![CDATA[Isn&#39;t that the same as render-to-texture? I have no clue (yet) ;)<br/><br/>Anyway, I&#39;ll be focusing on the interface for a while now. Contributions on GitHub are welcome if there is a use case for them. (Unused code breaks within months, in my experience)]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5238</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5238'/>
    <title>Gosu 0.7.39 released</title>
    <author><name>danikaze</name></author>
    <published>2011-11-22T14:36:11Z</published>
    <updated>2011-11-22T14:36:11Z</updated>
    <category term='Gosu News'/>
    <slash:comments>32</slash:comments>
    <content type='html'>
      <![CDATA[For this purpose, maybe enabling a backbuffer would be even more useful.<br/>Do you plan to enable it sometime?]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5236</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5236'/>
    <title>Gosu 0.7.39 released</title>
    <author><name>jlnr</name></author>
    <published>2011-11-22T11:33:58Z</published>
    <updated>2011-11-22T11:44:27Z</updated>
    <category term='Gosu News'/>
    <slash:comments>32</slash:comments>
    <content type='html'>
      <![CDATA[I really want to add render-to-texture too, but I think it would be even more misleading to make it related to macro recording - I think it should be a separate function. Some advantage of record-to-macro that couldn&#39;t be had with a proper texture:<br/><br/>• recording macros is super fast, independent of graphics drivers, unlike textures<br/>• macros can be much smaller than textures in memory. If you want to e.g. record a large tile map, each tile is 144 bytes in the macro because it only references the existing tile Image. On a texture, you could only represent 6x6px in that space.<br/>• macros scale up and rotate nicely like vector graphics do, textures become pixelated and blurry.<br/><br/>Maybe &quot;like vector graphics&quot; is really the right way to imagine them? idk :)<br/><br/>For my use cases (tile maps, skeletal animation) this makes them much better than textures. But now that they&#39;re there, the next cool feature will indeed be render-to-texture. Maybe that&#39;d make the whole GLSL post-processing thing nicer too?]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5234</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5234'/>
    <title>Gosu 0.7.39 released</title>
    <author><name>Maverick</name></author>
    <published>2011-11-22T03:44:16Z</published>
    <updated>2011-11-22T03:44:16Z</updated>
    <category term='Gosu News'/>
    <slash:comments>32</slash:comments>
    <content type='html'>
      <![CDATA[As I said, I&#39;m not denying it&#39;s awesome, but if we can see it move onto actually being mutable as an image, that would be the real big step I think for Gosu. (One of the key features that really stands out both performance-wise AND graphics-wise)]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5232</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5232'/>
    <title>Gosu 0.7.39 released</title>
    <author><name>Spooner</name></author>
    <published>2011-11-22T02:50:13Z</published>
    <updated>2011-11-22T03:01:09Z</updated>
    <category term='Gosu News'/>
    <slash:comments>32</slash:comments>
    <content type='html'>
      <![CDATA[Although it acts like an Image in Gosu, all that happens in record is that it stores a series of GL commands you are calling and can replicate exactly that at a later date (why jlnr calls it a &quot;macro&quot;). This is a small speed improvement in C++ but a massive, massive one in Ruby (since then you just have &quot;many&quot; operations in pure C++, not &quot;many&quot; Image#draws calling those same operations in Ruby). Brilliant for drawing large backgrounds from tiles, for example, which don&#39;t often change and need to be re-recorded.]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5231</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5231'/>
    <title>Gosu 0.7.39 released</title>
    <author><name>Maverick</name></author>
    <published>2011-11-22T00:35:19Z</published>
    <updated>2011-11-22T00:35:19Z</updated>
    <category term='Gosu News'/>
    <slash:comments>32</slash:comments>
    <content type='html'>
      <![CDATA[I still feel like this whole record() business is misleading and very very strict in terms of what it can and cannot do. <br/>I know this is a really useful feature, but I feel like this could be a stand-out feature for Gosu if we could (*ahem* you could...) figure out how to make the recorded data mutable like a texture.]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5230</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5230'/>
    <title>Gosu 0.7.39 released</title>
    <author><name>danikaze</name></author>
    <published>2011-11-21T21:57:50Z</published>
    <updated>2011-11-21T21:57:50Z</updated>
    <category term='Gosu News'/>
    <slash:comments>32</slash:comments>
    <content type='html'>
      <![CDATA[well, I&#39;ll do my research with GL then :)]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5229</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5229'/>
    <title>Gosu 0.7.39 released</title>
    <author><name>jlnr</name></author>
    <published>2011-11-21T20:55:56Z</published>
    <updated>2011-11-21T20:55:56Z</updated>
    <category term='Gosu News'/>
    <slash:comments>32</slash:comments>
    <content type='html'>
      <![CDATA[No, you can use raw GL for that though. You just have to call <code>Graphics::flush()</code> and then use any of the GL functions for copying the screen to memory (or was it textures? - not Gosu specific anyway).]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5228</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5228'/>
    <title>Gosu 0.7.39 released</title>
    <author><name>danikaze</name></author>
    <published>2011-11-21T20:32:11Z</published>
    <updated>2011-11-21T20:46:49Z</updated>
    <category term='Gosu News'/>
    <slash:comments>32</slash:comments>
    <content type='html'>
      <![CDATA[so right now you can&#39;t &quot;take screenshots&quot; using this, can you?]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5227</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5227'/>
    <title>Gosu 0.7.39 released</title>
    <author><name>jlnr</name></author>
    <published>2011-11-21T20:24:59Z</published>
    <updated>2011-11-21T20:24:59Z</updated>
    <category term='Gosu News'/>
    <slash:comments>32</slash:comments>
    <content type='html'>
      <![CDATA[Right, because recording is not the same as rendering to a texture. <code>toBitmap()</code> will throw an exception telling you that Macros cannot be converted into Bitmaps.<br/><br/>Rendering to textures has not been implemented yet. But if it was, you wouldn&#39;t need record anyway. :) There would be an equivalent pair of <code>beginRenderingToTexture</code>/<code>endRenderingToTexture</code>.]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5226</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5226'/>
    <title>Gosu 0.7.39 released</title>
    <author><name>danikaze</name></author>
    <published>2011-11-21T20:23:51Z</published>
    <updated>2011-11-21T20:23:51Z</updated>
    <category term='Gosu News'/>
    <slash:comments>32</slash:comments>
    <content type='html'>
      <![CDATA[Thanks.<br/><br/>So this should work, right? (but it doesn&#39;t :P)<br/><code><br/>graphics().beginRecording();<br/><br/>// do some drawing ops.<br/><br/>auto_ptr&lt;Gosu::ImageData&gt; ptr =&#160; graphics().endRecording(1280,720);<br/>Gosu::saveImageFile(ptr-&gt;toBitmap(), resourcePrefix() + L&quot;screenshot.png&quot;);<br/></code>]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5225</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5225'/>
    <title>Gosu 0.7.39 released</title>
    <author><name>jlnr</name></author>
    <published>2011-11-21T19:54:24Z</published>
    <updated>2011-11-21T19:54:24Z</updated>
    <category term='Gosu News'/>
    <slash:comments>32</slash:comments>
    <content type='html'>
      <![CDATA[Sorry, I was confused. They are both members of <code>Gosu::Graphics</code> and documented there:<br/><br/><a class='url' href='http://www.libgosu.org/cpp/class_gosu_1_1_graphics.html'>http://www.libgosu.org/cpp/class_gosu_1_1_graphics.html</a>]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5224</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5224'/>
    <title>Gosu 0.7.39 released</title>
    <author><name>danikaze</name></author>
    <published>2011-11-21T19:44:21Z</published>
    <updated>2011-11-21T19:44:21Z</updated>
    <category term='Gosu News'/>
    <slash:comments>32</slash:comments>
    <content type='html'>
      <![CDATA[uhm, I&#39;m sorry, but as it&#39;s not documented I didn&#39;t know how to use it.<br/>Anyways, I can&#39;t see it as usable...]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5223</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5223'/>
    <title>Gosu 0.7.39 released</title>
    <author><name>jlnr</name></author>
    <published>2011-11-21T19:34:49Z</published>
    <updated>2011-11-21T19:54:37Z</updated>
    <category term='Gosu News'/>
    <slash:comments>32</slash:comments>
    <content type='html'>
      <![CDATA[In C++, it is <code>beginRecording()</code> to start recording, then <code>Gosu::Image(endRecording(width, height))</code> to construct an image from the result of the recording process. Both are member functions of <code>Gosu::Graphics</code>. (corrected)]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5222</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5222'/>
    <title>Gosu 0.7.39 released</title>
    <author><name>danikaze</name></author>
    <published>2011-11-21T19:01:28Z</published>
    <updated>2011-11-21T19:01:28Z</updated>
    <category term='Gosu News'/>
    <slash:comments>32</slash:comments>
    <content type='html'>
      <![CDATA[As erisdiscord said, is record working?<br/>I&#39;m on C++ and 0.7.40 and still getting error C2039: &#39;record&#39; : is not a member of MyWindow (class MyWindow : public Gosu::Window)]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5209</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5209'/>
    <title>Gosu 0.7.40 released</title>
    <author><name>jlnr</name></author>
    <published>2011-11-20T21:20:38Z</published>
    <updated>2011-11-20T21:20:38Z</updated>
    <category term='Gosu News'/>
    <slash:comments>14</slash:comments>
    <content type='html'>
      <![CDATA[I guess it depends on whether <code>rotate</code> and <code>scale</code> are mutating methods or not. Since they won&#39;t mutate the underlying Image at least, I would&#39;ve expected them to always be non-mutating. I think your middle code bit should be <code>manipulated_image.translate!(1, 0)</code>. So for efficiency&#39;s sake, one could make it clear as <code>img.rotate(6).scale!(2).draw(...)</code>, meh. :/]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5208</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5208'/>
    <title>Gosu 0.7.40 released</title>
    <author><name>Spooner</name></author>
    <published>2011-11-20T17:29:27Z</published>
    <updated>2011-11-20T17:29:27Z</updated>
    <category term='Gosu News'/>
    <slash:comments>14</slash:comments>
    <content type='html'>
      <![CDATA[Not really. The standard way to manage chains like that is only to calculate when required by something like a draw (treat it something like a ruby iterator?).]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5207</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5207'/>
    <title>Gosu 0.7.40 released</title>
    <author><name>jlnr</name></author>
    <published>2011-11-20T17:26:11Z</published>
    <updated>2011-11-20T17:26:11Z</updated>
    <category term='Gosu News'/>
    <slash:comments>14</slash:comments>
    <content type='html'>
      <![CDATA[Since I cannot stop you Ruby guys from keeping a reference to the &quot;manipulated&quot; image, that&#39;s the only way it&#39;d make sense. But it&#39;d also mean a new allocated object for every step in the chain. :( I will benchmark all the possibilities once I get there.]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5206</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5206'/>
    <title>Gosu 0.7.40 released</title>
    <author><name>Spooner</name></author>
    <published>2011-11-20T16:22:43Z</published>
    <updated>2011-11-20T16:22:43Z</updated>
    <category term='Gosu News'/>
    <slash:comments>14</slash:comments>
    <content type='html'>
      <![CDATA[Oh, sorry, I thought we were getting img.draw x, y, z, scale: 2, rotate: 45, mode: :add in 0.8. I think I remember you mentioning you liked the idea of method chains though :(<br/><br/>The issue I have with img.rotate(6).scale(2).draw(x, y, z) is the probably performance issue of lots of ruby method calls every time I draw something (maybe not that important; sometimes it is hard to judge real CPU impact). However, if I can do manipulated_image =&#160; img.rotate(6).scale(2).translate(x, y) and then manipulated_image.translate(1, 0) and then manipulated_image.draw() at a later date, then I feel I am really winning :)]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5205</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5205'/>
    <title>Gosu 0.7.40 released</title>
    <author><name>jlnr</name></author>
    <published>2011-11-20T16:16:42Z</published>
    <updated>2011-11-20T16:16:42Z</updated>
    <category term='Gosu News'/>
    <slash:comments>14</slash:comments>
    <content type='html'>
      <![CDATA[The hashes are only coming for constructors in 0.8, not <code>Image#draw</code> and friends. I haven&#39;t had time to do benchmarks yet either, but it seems we could have a modular drawing thing at the same performance cost. (<code>img.rotate(6).scale(2).draw(x, y, z)</code>, which I scheduled for 0.9 :P)]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5204</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5204'/>
    <title>Gosu 0.7.40 released</title>
    <author><name>Spooner</name></author>
    <published>2011-11-20T13:22:23Z</published>
    <updated>2011-11-20T13:22:23Z</updated>
    <category term='Gosu News'/>
    <slash:comments>14</slash:comments>
    <content type='html'>
      <![CDATA[In 0.8 the arguments would be hashes, so the &quot;missing parameter&quot; argument is a terribly short-lived one :).]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5202</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5202'/>
    <title>Gosu 0.7.40 released</title>
    <author><name>jlnr</name></author>
    <published>2011-11-20T10:02:57Z</published>
    <updated>2011-11-21T22:07:29Z</updated>
    <category term='Gosu News'/>
    <slash:comments>14</slash:comments>
    <content type='html'>
      <![CDATA[Spooner brought this up too, but I am not convinced yet. With a shared base class, the interfaces of Image and Macro would be the same, except Macro wouldn&#39;t have <code>#to_blob</code> and <code>#insert</code> (the new interface for things like Texplay). <code>#gl_tex_info</code> could be there, but return <code>nil</code> as large Images already do. Or maybe BigImage could be a third class, but then calling <code>Image.new</code> to create it would be weird.<br/><br/>Or I could actually implement&#160; <code>#to_blob</code> and <code>#update</code> for Macro. (<code>#to_blob</code> would require render-to-texture to be there, <code>#update</code> is easy.) That would probably take the same amount of time and keep the class count down.<br/><br/>The annoying thing is that all the differences lie in the arguments to the methods, so it would actually be more correct if Macro had an interface that is <i>similar</i> but technically unrelated to Image, with the <code>color</code> and <code>mode</code> arguments missing because they won&#39;t ever work accurately. Usually they&#39;re at the end of the argument list...except for <code>#draw_as_quad</code>. So that wouldn&#39;t be super clean either.<br/><br/>Weird, weird, weird. :)]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5201</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5201'/>
    <title>Gosu 0.7.40 released</title>
    <author><name>erisdiscord</name></author>
    <published>2011-11-20T09:16:45Z</published>
    <updated>2011-11-20T09:16:45Z</updated>
    <category term='Gosu News'/>
    <slash:comments>14</slash:comments>
    <content type='html'>
      <![CDATA[Perhaps it&#39;s time to refactor slightly: new base class (Drawable) that is inherited by Image and Macro. That way there&#39;s no worrying whether an image is actually an image, right? C:<br/><br/>At least once all the draw methods work for recorded macros.]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5199</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5199'/>
    <title>Gosu 0.7.40 released</title>
    <author><name>jlnr</name></author>
    <published>2011-11-19T22:27:27Z</published>
    <updated>2011-11-19T23:01:59Z</updated>
    <category term='Gosu News'/>
    <slash:comments>14</slash:comments>
    <content type='html'>
      <![CDATA[Hotfix release:<br/><br/>• All: Fixed interaction between recording and transforms<br/>• Linux: <code>screenWidth</code>/<code>screenHeight</code> also returns the size of the primary screen only (thanks again, JayThirtySeven)<br/>• Linux/Ruby: Fixed linking error<br/><br/>The only things <code>record</code> cannot handle now are lines, triangles, clipping and custom GL, and the resulting image cannot generally be drawn with <code>draw_rot</code> or <code>draw_as_quad</code>/<code>getData().draw(...)</code>.]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5198</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5198'/>
    <title>Gosu 0.7.39 released</title>
    <author><name>jlnr</name></author>
    <published>2011-11-19T11:13:54Z</published>
    <updated>2011-11-19T11:13:54Z</updated>
    <category term='Gosu News'/>
    <slash:comments>32</slash:comments>
    <content type='html'>
      <![CDATA[It is a bit like rendering to a texture, but not really. It just groups a lot of drawing operations together. This is why you cannot <code>draw_rot</code> the resulting image yet, or tint it with colors (but this will be fixed). You can also not use Texplay on it.<br/><br/>Also, unlike rendering to a texture, it does not restrict you to drawing in the region between (0, 0) and (width, height). You need to use clipping for that.]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5197</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5197'/>
    <title>Gosu 0.7.39 released</title>
    <author><name>erisdiscord</name></author>
    <published>2011-11-19T05:34:05Z</published>
    <updated>2011-11-19T05:34:05Z</updated>
    <category term='Gosu News'/>
    <slash:comments>32</slash:comments>
    <content type='html'>
      <![CDATA[Goodness. Record is working? I&#39;m gonna have to dig out some of my old code one of these days and try it out. :D]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5196</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5196'/>
    <title>Gosu 0.7.39 released</title>
    <author><name>Jwosty</name></author>
    <published>2011-11-19T04:18:16Z</published>
    <updated>2011-11-19T04:18:16Z</updated>
    <category term='Gosu News'/>
    <slash:comments>32</slash:comments>
    <content type='html'>
      <![CDATA[Ooooh! That record thing sounds pretty nifty. So it&#39;s basically like getting a region from the screen and then being able to draw it?]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5195</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5195'/>
    <title>Gosu 0.7.39 released</title>
    <author><name>jlnr</name></author>
    <published>2011-11-19T00:57:18Z</published>
    <updated>2011-11-19T00:57:18Z</updated>
    <category term='Gosu News'/>
    <slash:comments>32</slash:comments>
    <content type='html'>
      <![CDATA[Oh, and a note. If you call <code>record</code> within any transform, the outer transform will be applied to what is in the block. This makes sense in its own way, but will change, so don&#39;t rely on it :)]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5194</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5194'/>
    <title>Gosu 0.7.39 released</title>
    <author><name>Spooner</name></author>
    <published>2011-11-19T00:33:44Z</published>
    <updated>2011-11-19T00:33:44Z</updated>
    <category term='Gosu News'/>
    <slash:comments>32</slash:comments>
    <content type='html'>
      <![CDATA[I&#39;m using a fair bit of recording in Smash and Grab and it makes a massive difference to frame-rate (only about 3000 draws in 4 recordings though). Without it, I&#39;d have to render everything to multiple images and mess around with a lot of code to manage that instead, because it would be unusable otherwise. Thanks for finally fixing it up properly - saved a lot of code over what I had to use for the undocumented version though it is likely to break other games that use it because it now works properly :D]]>
    </content>
  </entry>
  <entry>
    <id>http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5193</id>
    <link href='http://www.libgosu.org/cgi-bin/mwf/topic_show.pl?pid=5193'/>
    <title>Gosu 0.7.39 released</title>
    <author><name>jlnr</name></author>
    <published>2011-11-19T00:15:10Z</published>
    <updated>2011-11-19T11:18:32Z</updated>
    <category term='Gosu News'/>
    <slash:comments>32</slash:comments>
    <content type='html'>
      <![CDATA[This is a bit more of an experimental release, I have cleaned up the backend a lot, which conveniently made the long-undocumented <code>record</code> function work.<br/><br/>Let me know if performance has suffered in any way. If anything, Gosu should be faster now, but it doesn&#39;t feel faster in CptnRuby for me. (Might be my system.)<br/><br/>• All: Added <code>Window#record(width, height)</code>.<br/>• All: Removed an overcautious assert() from OGG file reading<br/>• All: Fixed OGG files&#39; destructor stopping unrelated songs<br/>• Linux: Fullscreen only covers one screen now (thanks JayThirtySeven!)<br/>• Ruby: Switched from rdoc to YARD<br/><br/>Note to GL hackers: Custom GL code now inherits Gosu&#39;s MODEL_VIEW matrix (applied transforms) as well as current clipping rect. If your code does not want this, you have to unset it manually. Also, if the current clipping area is empty while you call <code>enqueueGL</code>, the GL block is <i>not</i> run. I am open to debate this, it&#39;s a weird case. :)<br/><br/><code>record</code> is a super-powerful, awesome feature, and there are countless ways to use and abuse it. In two sentences, you can just do <code>@map_image = record(@map.width_in_pixels, @map.height_in_pixels) { @map.draw }</code> once and then draw <code>@map_image</code> every frame. <code>@map_image</code> will behave like a single Image, but contain a <i>vertex array</i> of all your map tiles. One method call - <code>@map_image.draw</code> - will draw your whole map. This is a good optimization in C++ and a HUGE one in Ruby. Putting 120,000 calls to <code>Image#draw</code> inside a macro, I could still draw it at 60 Hz, and that would be one gigantic map. Try that with nested Ruby loops!<br/><br/>I wish it wasn&#39;t so hard to explain, I really need to adjust the CptnRuby script. :)]]>
    </content>
  </entry>
</feed>

