small fixes, still some probs...

This commit is contained in:
Jaromil
2008-12-02 01:59:23 +01:00
parent 86ea991842
commit e291906aad
5 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ def load_textures():
glBindTexture(GL_TEXTURE_2D, textures[0])
# create texture with freej layer size
glTexImage2D( GL_TEXTURE_2D, 0, GL_RGBA, layer.geo.w, layer.geo.h, 0,
GL_RGBA, GL_UNSIGNED_BYTE, "" );
GL_RGBA, GL_UNSIGNED_BYTE, None );
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST)
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST)
+1 -1
View File
@@ -51,7 +51,7 @@ def load_textures():
glBindTexture(GL_TEXTURE_2D, textures[0])
# create texture with freej layer size
glTexImage2D( GL_TEXTURE_2D, 0, GL_RGBA, layer.geo.w, layer.geo.h, 0,
GL_RGBA, GL_UNSIGNED_BYTE, "" );
GL_RGBA, GL_UNSIGNED_BYTE, None );
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST)
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST)
+3 -3
View File
@@ -57,8 +57,8 @@ def init():
def load_textures():
# nehe texture
texturefile = os.path.join('data','nehe.bmp')
# here set image file
texturefile = os.path.join('..','..','..','doc','ipernav.png')
textureSurface = pygame.image.load(texturefile)
textureData = pygame.image.tostring(textureSurface, "RGBX", 1)
@@ -71,7 +71,7 @@ def load_textures():
# freej texture
glBindTexture(GL_TEXTURE_2D, textures[1])
glTexImage2D( GL_TEXTURE_2D, 0, GL_RGBA, layer.geo.w, layer.geo.h, 0,
GL_RGBA, GL_UNSIGNED_BYTE, "" );
GL_RGBA, GL_UNSIGNED_BYTE, None );
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST)
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST)
+2 -2
View File
@@ -67,8 +67,8 @@ def init():
def load_textures():
# nehe texture
texturefile = os.path.join('data','nehe.bmp')
# here set image file
texturefile = os.path.join('..','..','..','doc','ipernav.png')
textureSurface = pygame.image.load(texturefile)
textureData = pygame.image.tostring(textureSurface, "RGBX", 1)
+2 -2
View File
@@ -78,7 +78,7 @@ def init():
def load_textures():
global textures
# nehe texture
texturefile = os.path.join('data','flower.png')
texturefile = os.path.join('..','..','..','doc','ipernav.png')
textureSurface = pygame.image.load(texturefile)
textureData = pygame.image.tostring(textureSurface, "RGBX", 1)
@@ -95,7 +95,7 @@ def load_textures():
glBindTexture(GL_TEXTURE_2D, textures[idx])
lay = layers[idx]
glTexImage2D( GL_TEXTURE_2D, 0, GL_RGBA, lay.geo.w, lay.geo.h, 0,
GL_RGBA, GL_UNSIGNED_BYTE, "" );
GL_RGBA, GL_UNSIGNED_BYTE, None );
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR)
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR)