Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
openGL環境で画像を表示しようとしています。写真の元のサイズは 3648x2432 で、256x384 の画像で表示したいと考えています。問題は、384 が 2 の累乗ではないことです。表示しようとすると、伸びて見えます。どうすれば修正できますか?
GL_EXT_texture_rectangle が true の場合、glEnable() および GLBindTexture() 呼び出しの最初のパラメーターに GL_TEXTURE_RECTANGLE_EXT を使用します。