<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Takachan</author_name>
  <author_url>https://blog.hatena.ne.jp/Takachan/</author_url>
  <blog_title>PG日誌</blog_title>
  <blog_url>https://takap-tech.com/</blog_url>
  <categories>
    <anon>C++</anon>
    <anon>Cocos2d-x</anon>
  </categories>
  <description>すぐ忘れるのでメモ代わりにまとています。 Cocos2d-xで、Spriteに対してサイズ変更するときに、setContentSize(), setScale()各々を実行した時の挙動の違いは以下の通りで。 まず、100x100pxの大きさの画像を読み込む。 Sprite* sp = Sprite::create(&quot;100x100.png&quot;); setContentSize()で2倍の大きさを指定する。 この時はSizeは指定した通りの値になって拡大率1倍 sp-&gt;setContentSize(sp-&gt;getContentSize() * 2); Size size = sp-&gt;getCont…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakap-tech.com%2Fentry%2F2018%2F04%2F26%2F033300&quot; title=&quot;Cocos2d-x でsetScaleとsetContentSizeの挙動の違い - PG日誌&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>https://cdn-ak.f.st-hatena.com/images/fotolife/T/Takachan/20180425/20180425231627.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-04-26 03:33:00</published>
  <title>Cocos2d-x でsetScaleとsetContentSizeの挙動の違い</title>
  <type>rich</type>
  <url>https://takap-tech.com/entry/2018/04/26/033300</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
