Panda3D
Loading...
Searching...
No Matches
Functions
direct.directtools.DirectUtil Namespace Reference

Functions

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

Function Documentation

◆ CLAMP()

CLAMP ( val,
minVal,
maxVal )

◆ getFileData()

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()

getTkColorString ( color)
Print out a Tk compatible version of a color string

◆ lerpBackgroundColor()

lerpBackgroundColor ( r,
g,
b,
duration )

Background Color ##.

Function to lerp background color to a new value

◆ ROUND_INT()

ROUND_INT ( val)

◆ ROUND_TO()

ROUND_TO ( value,
divisor )

◆ useDirectRenderStyle()

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