2009-03-19から1日間の記事一覧
glGenTextures でテクスチャの番号をもらって、glBindTexture でアクティブにして、適当にパラメータを設定して、glCompressedTexImage2D で作るだけ。 GLint texture; GLenum format; int width; int height; void* buf; int bufsize; glGenTextures(1, &te…
glGenTextures でテクスチャの番号をもらって、glBindTexture でアクティブにして、適当にパラメータを設定して、glCompressedTexImage2D で作るだけ。 GLint texture; GLenum format; int width; int height; void* buf; int bufsize; glGenTextures(1, &te…