Panda3D

Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
TexPlacement Class Reference

## Public Member Functions
| __init__ (self, l, r, b, t)
| clearBitmasks (self, bitmasks)
| hasOverlap (self, bitmasks)
| intersects (self, other)
| setBitmasks (self, bitmasks)

## Public Attributes
tuple | area = (r - l) * (t - b)
int | overflowed = 0
tuple | p = (l, r, b, t)
bool | rotated = False

## Constructor & Destructor Documentation

## ◆ __init__()

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

## Member Function Documentation

## ◆ clearBitmasks()

clearBitmasks | ( |  | self,
|  |  | bitmasks )

     Clears all of the appropriate bits to indicate this region
    is available.

## ◆ hasOverlap()

hasOverlap | ( |  | self,
|  |  | bitmasks )

     Returns true if there is an overlap with this region and
    any other region, false otherwise.

## ◆ intersects()

intersects | ( |  | self,
|  |  | other )

     Returns True if the placements intersect, False
    otherwise.

## ◆ setBitmasks()

setBitmasks | ( |  | self,
|  |  | bitmasks )

     Sets all of the appropriate bits to indicate this region
    is taken.

## Member Data Documentation

## ◆ area

tuple area = (r - l) * (t - b)

## ◆ overflowed

int overflowed = 0

## ◆ p

tuple p = (l, r, b, t)

## ◆ rotated

bool rotated = False