Surface.getReferenceCount

Returns the current reference count of surface. Since 1.4

class Surface
uint
getReferenceCount
()

Return Value

Type: uint

the current reference count of surface. If the object is a nil object, 0 will be returned.