Dart interface updates
This commit is contained in:
@@ -57,10 +57,8 @@ abstract class ThermionViewer {
|
|||||||
///
|
///
|
||||||
/// Render a single frame and return the captured image as a pixel buffer.
|
/// Render a single frame and return the captured image as a pixel buffer.
|
||||||
///
|
///
|
||||||
Future<Uint8List> capture(
|
Future<List<Uint8List>> capture(
|
||||||
{covariant SwapChain? swapChain,
|
covariant List<({View view, SwapChain? swapChain, RenderTarget? renderTarget})> targets);
|
||||||
covariant View? view,
|
|
||||||
covariant RenderTarget? renderTarget});
|
|
||||||
|
|
||||||
///
|
///
|
||||||
///
|
///
|
||||||
@@ -81,7 +79,7 @@ abstract class ThermionViewer {
|
|||||||
///
|
///
|
||||||
///
|
///
|
||||||
Future<RenderTarget> createRenderTarget(
|
Future<RenderTarget> createRenderTarget(
|
||||||
int width, int height, int textureHandle);
|
int width, int height, { int? colorTextureHandle, int? depthTextureHandle });
|
||||||
|
|
||||||
///
|
///
|
||||||
///
|
///
|
||||||
@@ -776,22 +774,23 @@ abstract class ThermionViewer {
|
|||||||
///
|
///
|
||||||
///
|
///
|
||||||
Future<Texture> createTexture(int width, int height,
|
Future<Texture> createTexture(int width, int height,
|
||||||
{int depth = 1, int levels = 1, TextureSamplerType textureSamplerType = TextureSamplerType.SAMPLER_2D,
|
{int depth = 1,
|
||||||
|
int levels = 1,
|
||||||
|
TextureSamplerType textureSamplerType = TextureSamplerType.SAMPLER_2D,
|
||||||
TextureFormat textureFormat = TextureFormat.RGBA32F});
|
TextureFormat textureFormat = TextureFormat.RGBA32F});
|
||||||
|
|
||||||
///
|
///
|
||||||
///
|
///
|
||||||
///
|
///
|
||||||
Future<TextureSampler> createTextureSampler({
|
Future<TextureSampler> createTextureSampler(
|
||||||
TextureMinFilter minFilter = TextureMinFilter.LINEAR,
|
{TextureMinFilter minFilter = TextureMinFilter.LINEAR,
|
||||||
TextureMagFilter magFilter = TextureMagFilter.LINEAR,
|
TextureMagFilter magFilter = TextureMagFilter.LINEAR,
|
||||||
TextureWrapMode wrapS = TextureWrapMode.CLAMP_TO_EDGE,
|
TextureWrapMode wrapS = TextureWrapMode.CLAMP_TO_EDGE,
|
||||||
TextureWrapMode wrapT = TextureWrapMode.CLAMP_TO_EDGE,
|
TextureWrapMode wrapT = TextureWrapMode.CLAMP_TO_EDGE,
|
||||||
TextureWrapMode wrapR = TextureWrapMode.CLAMP_TO_EDGE,
|
TextureWrapMode wrapR = TextureWrapMode.CLAMP_TO_EDGE,
|
||||||
double anisotropy = 0.0,
|
double anisotropy = 0.0,
|
||||||
TextureCompareMode compareMode = TextureCompareMode.NONE,
|
TextureCompareMode compareMode = TextureCompareMode.NONE,
|
||||||
TextureCompareFunc compareFunc = TextureCompareFunc.LESS_EQUAL
|
TextureCompareFunc compareFunc = TextureCompareFunc.LESS_EQUAL});
|
||||||
});
|
|
||||||
|
|
||||||
///
|
///
|
||||||
/// Decodes the specified image data.
|
/// Decodes the specified image data.
|
||||||
@@ -803,7 +802,6 @@ abstract class ThermionViewer {
|
|||||||
///
|
///
|
||||||
Future<LinearImage> createImage(int width, int height, int channels);
|
Future<LinearImage> createImage(int width, int height, int channels);
|
||||||
|
|
||||||
|
|
||||||
///
|
///
|
||||||
///
|
///
|
||||||
///
|
///
|
||||||
@@ -919,7 +917,7 @@ abstract class ThermionViewer {
|
|||||||
///
|
///
|
||||||
///
|
///
|
||||||
Future setCastShadows(ThermionEntity entity, bool castShadows);
|
Future setCastShadows(ThermionEntity entity, bool castShadows);
|
||||||
|
|
||||||
///
|
///
|
||||||
///
|
///
|
||||||
///
|
///
|
||||||
@@ -934,4 +932,10 @@ abstract class ThermionViewer {
|
|||||||
///
|
///
|
||||||
///
|
///
|
||||||
Future<bool> isReceiveShadowsEnabled(ThermionEntity entity);
|
Future<bool> isReceiveShadowsEnabled(ThermionEntity entity);
|
||||||
|
|
||||||
|
///
|
||||||
|
///
|
||||||
|
///
|
||||||
|
Future setClearOptions(
|
||||||
|
Vector4 clearColor, int clearStencil, bool clear, bool discard);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user