<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>niyarin-man</author_name>
  <author_url>https://blog.hatena.ne.jp/niyarin-man/</author_url>
  <blog_title>Niyarin's code</blog_title>
  <blog_url>https://niyarin-code.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>ppm形式(raw)の画像を用意して、それをglutで表示する。 座標とかはやってない。 高さx幅xRGBのサイズのarrayを用意して、画像を読み込み、glDrawPixelsを実行するだけ。 コンパイル方法。(オプションが多いね。) gcc a.c -lglut -lGL コード #include&lt;GL/glut.h&gt; #include&lt;stdio.h&gt; #include&lt;stdlib.h&gt; unsigned char image[400][640][3]; int ppm_read(char *filename, unsigned char *pimage){ FILE *fp; if(…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fniyarin-code.hatenablog.com%2Fentry%2F2017%2F05%2F09%2F154657&quot; title=&quot;glutで画像を表示したぞ。 - Niyarin&amp;#39;s code&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>2017-05-09 15:46:57</published>
  <title>glutで画像を表示したぞ。</title>
  <type>rich</type>
  <url>https://niyarin-code.hatenablog.com/entry/2017/05/09/154657</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
