Panda3D
Public Member Functions | List of all members
CursorResource Class Reference
Inheritance diagram for CursorResource:
CountedResource

Public Member Functions

def __init__ (self)
 
def __del__ (self)
 
def acquire (cls)
 
def release (cls)
 
- Public Member Functions inherited from CountedResource
def decrementCounter (cls)
 
def getCount (cls)
 
def incrementCounter (cls)
 

Additional Inherited Members

- Public Attributes inherited from CountedResource
 RESOURCE_COUNTER
 
 RESOURCE_COUNTER_INIT_FAILED
 

Detailed Description

A class to demonstrate how to implement a dependent
resource.  Notice how this class also inherits from
CountedResource.  Instead of subclassing MouseCounter,
we will just acquire it in our __init__() and release
it in our __del__().

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)

Reimplemented from CountedResource.

◆ __del__()

def __del__ (   self)

Reimplemented from CountedResource.

Member Function Documentation

◆ acquire()

def acquire (   cls)

Reimplemented from CountedResource.

◆ release()

def release (   cls)

Reimplemented from CountedResource.