1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

フレームバッファをテクスチャへ取り込む方法

1
Posted at
glCopyTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 0, 0, width, height, 0);

とかするだけなんだけど、 その前にテクスチャのパラメタを設定しておかないと動かない 。既にあるテクスチャへ取り込む場合はglCopyTexSubImage2Dを使う。テクスチャメモリを確保する必要がない分だけ速いし。ちなみにサイズが2冪である必要はOpenGLの版依存だけどイマドキの版では必要なさそう。遅いらしいけど。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?