Skip to content

Conversation

@ryantrem
Copy link
Member

@ryantrem ryantrem commented Feb 10, 2021

The NativeCapture plugin was recently added to BabylonNative. This change pulls it into BabylonReactNative and adds a TypeScript wrapper. It also logs a warning if it is used since:

  1. We expect it may change.
  2. Ultimately it should be exposed through a Babylon.js API.

This works toward (but doesn't fully solve) BabylonJS/BabylonNative#562

FYI @bonnyMahajan10

@chrisfromwork
Copy link
Contributor

<ProjectReference Include="$(BabylonReactNativeDir)\submodules\BabylonNative\Build_uwp_x64\Core\Graphics\Graphics.vcxproj">

NativeCapture needs added to these different platform specific library references. This should generate linker errors with pr ci


Refers to: Modules/@babylonjs/react-native-windows/windows/BabylonReactNative/BabylonReactNative.vcxproj:205 in a5334b1. [](commit_id = a5334b1, deletion_comment = False)

Copy link
Contributor

@chrisfromwork chrisfromwork left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NativeCapture needs added to these different platform specific library references in BabylonReactNative.vcxproj. This should theoretically generate linker errors with pr ci


export type CaptureCallback = (capture: CapturedFrame) => void;

declare class NativeCapture {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

long term are we planning to have this defined somewhere in Babylon.js?

@ryantrem ryantrem merged commit dcf25ec into BabylonJS:master Feb 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants