Trees | Index | Help |
|
---|
Module Texture :: Class Texture |
|
Method Summary | |
---|---|
__init__(self,
name,
target)
| |
__del__(self)
| |
Bind this texture to self.glTarget in the current OpenGL context | |
Load the texture from disk, using PIL to open the file | |
Load the texture from a PIL image | |
Load a raw image from the given string. | |
Load the texture from a pygame surface | |
nextPowerOfTwo(self,
n)
| |
prepareRenderTarget(self,
width,
height,
generateMipmap)
| |
resetDefaultRenderTarget(self)
| |
setAsRenderTarget(self)
| |
Set the default OpenGL options for this texture | |
setFilter(self,
min,
mag)
| |
setRepeat(self,
u,
v)
|
Method Details |
---|
bind(self, glTarget=None)Bind this texture to self.glTarget in the current OpenGL context |
loadFile(self, name)Load the texture from disk, using PIL to open the file |
loadImage(self, image)Load the texture from a PIL image |
loadRaw(self, size, string, format, components)Load a raw image from the given string. 'format' is a constant such as GL_RGB or GL_RGBA that can be passed to gluBuild2DMipmaps. |
loadSurface(self, surface, monochrome=False, alphaChannel=False)Load the texture from a pygame surface |
setDefaults(self)Set the default OpenGL options for this texture |
Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu Nov 23 23:40:43 2006 | http://epydoc.sf.net |