Panda3D
Functions
direct.directtools.DirectUtil Namespace Reference

Functions

def CLAMP (val, minVal, maxVal)
 
def getFileData (filename, separator=',')
 
def getTkColorString (color)
 
def lerpBackgroundColor (r, g, b, duration)
 Background Color ##. More...
 
def ROUND_INT (val)
 
def ROUND_TO (value, divisor)
 
def useDirectRenderStyle (nodePath, priority=0)
 

Function Documentation

◆ CLAMP()

def direct.directtools.DirectUtil.CLAMP (   val,
  minVal,
  maxVal 
)

◆ getFileData()

def direct.directtools.DirectUtil.getFileData (   filename,
  separator = ',' 
)
Open the specified file and strip out unwanted whitespace and
empty lines.  Return file as list of lists, one file line per element,
list elements based upon separator

◆ getTkColorString()

def direct.directtools.DirectUtil.getTkColorString (   color)
Print out a Tk compatible version of a color string

◆ lerpBackgroundColor()

def direct.directtools.DirectUtil.lerpBackgroundColor (   r,
  g,
  b,
  duration 
)

Background Color ##.

Function to lerp background color to a new value

◆ ROUND_INT()

def direct.directtools.DirectUtil.ROUND_INT (   val)

◆ ROUND_TO()

def direct.directtools.DirectUtil.ROUND_TO (   value,
  divisor 
)

◆ useDirectRenderStyle()

def direct.directtools.DirectUtil.useDirectRenderStyle (   nodePath,
  priority = 0 
)
Function to force a node path to use direct render style:
no lighting, and no wireframe