rfm2  22.0
A python-based rewrite of RenderMan for Maya
 All Classes Namespaces Files Functions Variables Pages
rfm2.utils.tex Namespace Reference

Classes

class  Linear
 

Functions

def is_texture
 
def image_size
 
def load
 
def register_prefs
 

Variables

int kByteArray = 0
 
int kTexture = 1
 
int kQpixmap = 2
 

Function Documentation

def rfm2.utils.tex.image_size (   iceimg)
Return a width, height tuple.

+ Here is the caller graph for this function:

def rfm2.utils.tex.is_texture (   filepath)

+ Here is the call graph for this function:

def rfm2.utils.tex.load (   image,
  max_size = None,
  out_format = kByteArray,
  linearize = Linear.kAuto 
)
Load the image with ice.

All images will be resized (is requested), converted to 8 bits and
gamma-corrected if originating from a float image.

TODO: when the output format is kTexture, the texture manager should be able
to return us a texture object if it has already been loaded. At the moment,
we always reload/resize etc, sometimes for nothing and it creates viewport
lag during some manipulations.

+ Here is the call graph for this function:

def rfm2.utils.tex.register_prefs ( )

+ Here is the call graph for this function:

Variable Documentation

int rfm2.utils.tex.kByteArray = 0
int rfm2.utils.tex.kQpixmap = 2
int rfm2.utils.tex.kTexture = 1