Panda3D
Public Member Functions | Public Attributes | List of all members
TexPlacement Class Reference

Public Member Functions

def __init__ (self, l, r, b, t)
 
def clearBitmasks (self, bitmasks)
 
def hasOverlap (self, bitmasks)
 
def intersects (self, other)
 
def setBitmasks (self, bitmasks)
 

Public Attributes

 area
 
 overflowed
 
 p
 
 rotated
 

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  l,
  r,
  b,
  t 
)

Member Function Documentation

◆ clearBitmasks()

def clearBitmasks (   self,
  bitmasks 
)
Clears all of the appropriate bits to indicate this region
is available. 

◆ hasOverlap()

def hasOverlap (   self,
  bitmasks 
)
Returns true if there is an overlap with this region and
any other region, false otherwise. 

◆ intersects()

def intersects (   self,
  other 
)
Returns True if the placements intersect, False
otherwise. 

◆ setBitmasks()

def setBitmasks (   self,
  bitmasks 
)
Sets all of the appropriate bits to indicate this region
is taken. 

Member Data Documentation

◆ area

area

◆ overflowed

overflowed

◆ p

p

◆ rotated

rotated