2023-01-03 07:04:48 +01:00
|
|
|
|
import { RenderTexture } from '@pixi/core';
|
2021-03-17 03:02:09 +01:00
|
|
|
|
|
|
|
|
|
export class PlaneBitmapData
|
|
|
|
|
{
|
2023-01-03 07:04:48 +01:00
|
|
|
|
private _texture: RenderTexture;
|
2021-03-17 03:02:09 +01:00
|
|
|
|
private _timeStamp: number;
|
|
|
|
|
|
2023-01-03 07:04:48 +01:00
|
|
|
|
constructor(texture: RenderTexture, timestamp: number)
|
2021-03-17 03:02:09 +01:00
|
|
|
|
{
|
2023-01-03 07:04:48 +01:00
|
|
|
|
this._texture = texture;
|
|
|
|
|
this._timeStamp = timestamp;
|
2021-03-17 03:02:09 +01:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public dispose(): void
|
|
|
|
|
{
|
2023-01-03 07:04:48 +01:00
|
|
|
|
this._texture = null;
|
2021-03-17 03:02:09 +01:00
|
|
|
|
}
|
|
|
|
|
|
2023-01-03 07:04:48 +01:00
|
|
|
|
public get texture(): RenderTexture
|
2021-03-17 03:02:09 +01:00
|
|
|
|
{
|
2023-01-03 07:04:48 +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
|
|
|
|
}
|