Panda3D
Loading...
Searching...
No Matches
TexRecord Class Reference

Public Member Functions

 __init__ (self, key, tex, size, active)
 
 clearCard (self, tmw)
 
 computePlacementSize (self, tmw)
 
 makeCard (self, tmw)
 
 setActive (self, flag)
 
 setSize (self, size)
 

Public Attributes

 active = active
 
 area = self.w * self.h
 
 backing = backing
 
 card = card
 
 frame = frame
 
 h = max(int(self.th / tmw.quantize + 0.5), 1)
 
 key = key
 
 matte = matte
 
int overflowed = 0
 
list placements = []
 
list regions = []
 
 root = None
 
 size = size
 
 tex = tex
 
 th = self.tw * r
 
 tw = math.sqrt(self.size) / math.sqrt(r)
 
 w = max(int(self.tw / tmw.quantize + 0.5), 1)
 

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self,
key,
tex,
size,
active )

Member Function Documentation

◆ clearCard()

clearCard ( self,
tmw )

◆ computePlacementSize()

computePlacementSize ( self,
tmw )

◆ makeCard()

makeCard ( self,
tmw )

◆ setActive()

setActive ( self,
flag )

◆ setSize()

setSize ( self,
size )

Member Data Documentation

◆ active

active = active

◆ area

area = self.w * self.h

◆ backing

backing = backing

◆ card

card = card

◆ frame

frame = frame

◆ h

h = max(int(self.th / tmw.quantize + 0.5), 1)

◆ key

key = key

◆ matte

matte = matte

◆ overflowed

int overflowed = 0

◆ placements

placements = []

◆ regions

list regions = []

◆ root

root = None

◆ size

size = size

◆ tex

tex = tex

◆ th

th = self.tw * r

◆ tw

tw = math.sqrt(self.size) / math.sqrt(r)

◆ w

w = max(int(self.tw / tmw.quantize + 0.5), 1)