RID

Handle for a Resource's unique ID.

Description

The RID type is used to access the unique integer ID of a resource. They are opaque, which means they do not grant access to the associated resource by themselves. They are used by and with the low-level Server classes such as RenderingServer.

Constructors

RID

RID ( )

RID

RID ( RID from )

Methods

int

get_id ( ) const

bool

is_valid ( ) const

Operators

bool

operator != ( RID right )

bool

operator ( RID right )

bool

operator ( RID right )

bool

operator == ( RID right )

bool

operator > ( RID right )

bool

operator >= ( RID right )

Constructor Descriptions

Constructs an empty RID with the invalid ID 0.


Constructs a RID as a copy of the given RID.

Method Descriptions

  • int get_id ( ) const

Returns the ID of the referenced resource.


  • bool is_valid ( ) const

Returns true if RID is valid.

Operator Descriptions