<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hiratara</author_name>
  <author_url>https://blog.hatena.ne.jp/hiratara/</author_url>
  <blog_title>Pixel Pedals of Tomakomai</blog_title>
  <blog_url>https://hiratara.hatenadiary.jp/</blog_url>
  <categories>
    <anon>技術</anon>
  </categories>
  <description>先のOpenGL化で、y座標をひっくり返すコードもついでにメモ。 int w = (int) [bitmap size].width; int h = (int) [bitmap size].height; unsigned char* byte_image = [bitmap bitmapData]; GLubyte* reverse_image; int i, j, b; int block = [bitmap hasAlpha] ? 4 : 3; //w(列)、h(行)、block(1ピクセルのバイト数)の長さの配列 reverse_image = malloc(block * size…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhiratara.hatenadiary.jp%2Fentry%2F20050721%2F1121876007&quot; title=&quot;NSImage→OpenGLの座標系修正 - Pixel Pedals of Tomakomai&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>2005-07-21 01:13:27</published>
  <title>NSImage→OpenGLの座標系修正</title>
  <type>rich</type>
  <url>https://hiratara.hatenadiary.jp/entry/20050721/1121876007</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
