nitro-renderer/src/nitro/room/object/visualization/room/utils/PlaneBitmapData.ts

29 lines
525 B
TypeScript
Raw Normal View History

import { RenderTexture } from '@pixi/core';
2021-03-17 03:02:09 +01:00
export class PlaneBitmapData
{
private _texture: RenderTexture;
2021-03-17 03:02:09 +01:00
private _timeStamp: number;
constructor(texture: RenderTexture, timestamp: number)
2021-03-17 03:02:09 +01:00
{
this._texture = texture;
this._timeStamp = timestamp;
2021-03-17 03:02:09 +01:00
}
public dispose(): void
{
this._texture = null;
2021-03-17 03:02:09 +01:00
}
public get texture(): RenderTexture
2021-03-17 03:02:09 +01:00
{
return this._texture;
2021-03-17 03:02:09 +01:00
}
public get timeStamp(): number
{
return this._timeStamp;
}
2021-08-03 05:50:57 +02:00
}