Panda3D

Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
DirectLights Class Reference
Inheritance diagram for DirectLights:

## Public Member Functions
| __init__ (self, parent=None)
| __getitem__ (self, name)
| __len__ (self)
| allOff (self)
| allOn (self)
| asList (self)
| create (self, type)
| createDefaultLights (self)
| delete (self, light)
| deleteAll (self)
| getNameList (self)
| setOff (self, directLight)
| setOn (self, directLight)
| toggle (self)

## Public Attributes
int | ambientCount = 0
int | directionalCount = 0
dict | lightDict = {}
int | pointCount = 0
int | spotCount = 0

## Constructor & Destructor Documentation

## ◆ __init__()

__init__ | ( |  | self,
|  |  | parent = None )

## Member Function Documentation

## ◆ __getitem__()

__getitem__ | ( |  | self,
|  |  | name )

## ◆ __len__()

__len__ | ( |  | self | ) |

## ◆ allOff()

allOff | ( |  | self | ) |

    Turn off all DIRECT lights

## ◆ allOn()

allOn | ( |  | self | ) |

    Turn on all DIRECT lights

## ◆ asList()

asList | ( |  | self | ) |

## ◆ create()

create | ( |  | self,
|  |  | type )

## ◆ createDefaultLights()

createDefaultLights | ( |  | self | ) |

## ◆ delete()

delete | ( |  | self,
|  |  | light )

## ◆ deleteAll()

deleteAll | ( |  | self | ) |

## ◆ getNameList()

getNameList | ( |  | self | ) |

## ◆ setOff()

setOff | ( |  | self,
|  |  | directLight )

    Turn off the given directLight

## ◆ setOn()

setOn | ( |  | self,
|  |  | directLight )

    Turn on the given directLight

## ◆ toggle()

toggle | ( |  | self | ) |

    Toggles light attribute, but doesn't toggle individual lights

## Member Data Documentation

## ◆ ambientCount

int ambientCount = 0

## ◆ directionalCount

int directionalCount = 0

## ◆ lightDict

lightDict = {}

## ◆ pointCount

int pointCount = 0

## ◆ spotCount

int spotCount = 0