OpenGLContext.scenegraph.imagetexture
index
p:\openglcontext\scenegraph\imagetexture.py

This utility module provides rendering functionality
for static image textures.  It provides approximately
the functionality of a VRML ImageTexture node, save that
loading from URLs/multiple files is not provided.
 
The load function allows you to specify a filename to be
loaded using PIL.

 
Classes
            
ImageTexture
MipMappedImageTexture

 
class ImageTexture
      Provides rendering functionality for static
image textures.
 
  
__init__(self, image=None, repeatS=1, repeatT=1, magFilter=None, minFilter=None)
getLengthFormat(self, image)
Return the length and format as understood by OpenGL
render(self, visible=1, lit=1)
 Called before rendering geometry
renderPost(self)
 Called after rendering geometry
setFilter(self, filterValue=9728, direction=10240)
setImage(self, image)

 
class MipMappedImageTexture(ImageTexture)
       
  
__init__(self, image=None, repeatS=1, repeatT=1, magFilter=None, minFilter=None) from ImageTexture
getLengthFormat(self, image) from ImageTexture
render(self, visible=1, lit=1) from ImageTexture
renderPost(self) from ImageTexture
setFilter(self, filterValue=9728, direction=10240) from ImageTexture
setImage(self, image)

 
Functions
            
load(filename, *arguments, **namedarguments)
Load an ImageTexture from a disk file,
return as a ImageTexture object with the options
specified in arguments and namedarguments
loadmm(filename, *arguments, **namedarguments)
Load an ImageTexture from a disk file,
return as a ImageTexture object with the options
specified in arguments and namedarguments

 
Data
             __file__ = r'p:\OpenGLContext\scenegraph\imagetexture.pyc'
__name__ = 'OpenGLContext.scenegraph.imagetexture'