mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-26 17:30:52 +01:00
cleaned up Rasterizer
This commit is contained in:
parent
6e1c16ce06
commit
5693b6f558
@ -256,7 +256,7 @@ export class PlaneRasterizer implements IPlaneRasterizer
|
||||
|
||||
if(asset.flipH)
|
||||
{
|
||||
newTexture = Rasterizer._Str_16640(texture);
|
||||
newTexture = Rasterizer.getFlipHBitmapData(texture);
|
||||
}
|
||||
|
||||
plane._Str_16790(newTexture, normalMinX, normalMaxX, normalMinY, normalMaxY, assetName);
|
||||
@ -606,4 +606,4 @@ export class PlaneRasterizer implements IPlaneRasterizer
|
||||
|
||||
return planes._Str_8988();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -61,7 +61,7 @@ export class Rasterizer
|
||||
// k.unlock();
|
||||
// }
|
||||
|
||||
public static _Str_16640(k: Texture): Texture
|
||||
public static getFlipHBitmapData(k: Texture): Texture
|
||||
{
|
||||
if(!k) return null;
|
||||
|
||||
@ -83,7 +83,7 @@ export class Rasterizer
|
||||
return TextureUtils.generateTexture(graphic);
|
||||
}
|
||||
|
||||
public static _Str_20706(k: Texture): Texture
|
||||
public static getFlipVBitmapData(k: Texture): Texture
|
||||
{
|
||||
if(!k) return null;
|
||||
|
||||
@ -105,7 +105,7 @@ export class Rasterizer
|
||||
return TextureUtils.generateTexture(graphic);
|
||||
}
|
||||
|
||||
public static _Str_20356(k: Texture): Texture
|
||||
public static getFlipHVBitmapData(k: Texture): Texture
|
||||
{
|
||||
if(!k) return null;
|
||||
|
||||
@ -126,4 +126,4 @@ export class Rasterizer
|
||||
|
||||
return TextureUtils.generateTexture(graphic);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user