<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>toburau</author_name>
  <author_url>https://blog.hatena.ne.jp/toburau/</author_url>
  <blog_title>ゲームが作れるようになるまでがんばる日記</blog_title>
  <blog_url>https://toburau.hatenablog.jp/</blog_url>
  <categories>
    <anon>SDL</anon>
  </categories>
  <description>SDL_Delay()を使って指定した時間待つことができる。 void SDL_Delay(Uint32 ms); 引数にはミリ秒を指定。ただ場合によっては遅延があることもある。 サンプルではこれとSDL_GetTicks()を使ってフレーム待ちを実装している。それは次の通り。 #define FRAMES_PER_SEC 50 void WaitFrame(void) { static Uint32 next_tick = 0; Uint32 this_tick; /* Wait for the next frame */ this_tick = SDL_GetTicks(); if ( t…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftoburau.hatenablog.jp%2Fentry%2F20080710%2F1215656866&quot; title=&quot;フレーム待ち - ゲームが作れるようになるまでがんばる日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2008-07-10 11:27:46</published>
  <title>フレーム待ち</title>
  <type>rich</type>
  <url>https://toburau.hatenablog.jp/entry/20080710/1215656866</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
