direct.directtools.DirectUtil

import direct.directtools.DirectUtil
CLAMP(val, minVal, maxVal)[source]
ROUND_INT(val)[source]
ROUND_TO(value, divisor)[source]
getFileData(filename, separator=',')[source]

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(color)[source]

Print out a Tk compatible version of a color string

lerpBackgroundColor(r, g, b, duration)[source]

Function to lerp background color to a new value

useDirectRenderStyle(nodePath, priority=0)[source]

Function to force a node path to use direct render style: no lighting, and no wireframe