Mercurial > touhou
comparison pytouhou/opengl/texture.py @ 15:07fba4e1da65
Refactor
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Fri, 05 Aug 2011 21:21:06 +0200 |
parents | 07a7f28c8aaa |
children | 66ce9bb440ac |
comparison
equal
deleted
inserted
replaced
14:07a7f28c8aaa | 15:07fba4e1da65 |
---|---|
31 glBindTexture(GL_TEXTURE_2D, texture) | 31 glBindTexture(GL_TEXTURE_2D, texture) |
32 | 32 |
33 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, | 33 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, |
34 GL_UNSIGNED_BYTE, textureData) | 34 GL_UNSIGNED_BYTE, textureData) |
35 | 35 |
36 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR) | |
37 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR) | |
38 | |
36 return texture, width, height | 39 return texture, width, height |
37 | 40 |