rfm2  22.0
A python-based rewrite of RenderMan for Maya
rfm2.utils.tex Namespace Reference

Classes

class  Linear
 

Functions

def is_texture (filepath)
 
def image_size (iceimg)
 
def load (image, max_size=None, out_format=kByteArray, linearize=Linear.kAuto)
 
def register_prefs ()
 

Variables

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

Function Documentation

◆ image_size()

def rfm2.utils.tex.image_size (   iceimg)
Return a width, height tuple.
+ Here is the caller graph for this function:

◆ is_texture()

def rfm2.utils.tex.is_texture (   filepath)
+ Here is the call graph for this function:

◆ load()

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:

◆ register_prefs()

def rfm2.utils.tex.register_prefs ( )
+ Here is the call graph for this function:

Variable Documentation

◆ kByteArray

int rfm2.utils.tex.kByteArray = 0

◆ kQpixmap

int rfm2.utils.tex.kQpixmap = 2

◆ kTexture

int rfm2.utils.tex.kTexture = 1