📄 object.h
字号:
// System Object class
#pragma once
namespace System
{
/// Reference counted object interface.
/// This serves as the base class for all managed display objects
/// such as Material, Texture, Mesh and Light. The reference counting interface
/// defined here allows the Display to take ownership of the object and automatically
/// garbage collect it when the object is longer in use.
class Object
{
public:
/// virtual destructor.
virtual ~Object() {};
/// add a reference to this object.
virtual void reference() = 0;
/// remove a reference to this object.
virtual void release() = 0;
/// get number of references to this object.
virtual int references() = 0;
};
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -