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.
ソースバッファを変更せずに、作成時にglTextureのすべての側面に1ピクセルのパディングを追加したいと思います。それを行うためのコマンドはありますか?
glTexImage2D(またはglTexStorage2D)と宛先サイズを使用し、データ引数にnullポインターを使用して、ターゲットテクスチャオブジェクトを初期化します。次に、glTexSubImage2Dを使用して、画像を目的の長方形にアップロードします。