{"categories":["\u6280\u8853"],"url":"https://hiratara.hatenadiary.jp/entry/20050721/1121876007","provider_name":"Hatena Blog","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhiratara.hatenadiary.jp%2Fentry%2F20050721%2F1121876007\" title=\"NSImage\u2192OpenGL\u306e\u5ea7\u6a19\u7cfb\u4fee\u6b63 - Pixel Pedals of Tomakomai\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"blog_url":"https://hiratara.hatenadiary.jp/","blog_title":"Pixel Pedals of Tomakomai","title":"NSImage\u2192OpenGL\u306e\u5ea7\u6a19\u7cfb\u4fee\u6b63","height":"190","width":"100%","author_name":"hiratara","published":"2005-07-21 01:13:27","author_url":"https://blog.hatena.ne.jp/hiratara/","version":"1.0","description":"\u5148\u306eOpenGL\u5316\u3067\u3001y\u5ea7\u6a19\u3092\u3072\u3063\u304f\u308a\u8fd4\u3059\u30b3\u30fc\u30c9\u3082\u3064\u3044\u3067\u306b\u30e1\u30e2\u3002 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(\u5217)\u3001h(\u884c)\u3001block(1\u30d4\u30af\u30bb\u30eb\u306e\u30d0\u30a4\u30c8\u6570)\u306e\u9577\u3055\u306e\u914d\u5217 reverse_image = malloc(block * size\u2026","provider_url":"https://hatena.blog"}