Interface IInputCameraEx
Inherited Members
Namespace: GameCanvas
Assembly: GameCanvas.dll
Syntax
public interface IInputCameraEx : IInputCamera
Methods
DrawCameraImage(GcCameraDevice, GcRect, Boolean)
カメラ(外部入力映像)を拡縮して描画します
Declaration
void DrawCameraImage(in GcCameraDevice camera, in GcRect rect, bool autoPlay = true)
Parameters
Type | Name | Description |
---|---|---|
GcCameraDevice | camera | カメラ(外部入力映像) |
GcRect | rect | 映像をフィッティングする矩形領域 |
Boolean | autoPlay | カメラ(外部入力映像)が停止していた場合、内部でPlayCameraImage(GcCameraDevice)を呼び出すかどうか |
DrawCameraImage(GcCameraDevice, Boolean)
カメラ(外部入力映像)を描画します
Declaration
void DrawCameraImage(in GcCameraDevice camera, bool autoPlay = true)
Parameters
Type | Name | Description |
---|---|---|
GcCameraDevice | camera | カメラ(外部入力映像) |
Boolean | autoPlay | カメラ(外部入力映像)が停止していた場合、内部でPlayCameraImage(GcCameraDevice)を呼び出すかどうか |
DrawCameraImage(GcCameraDevice, Single, Single, Single, Boolean)
カメラ(外部入力映像)を描画します
Declaration
void DrawCameraImage(in GcCameraDevice camera, in float x, in float y, float degree = 0F, bool autoPlay = true)
Parameters
Type | Name | Description |
---|---|---|
GcCameraDevice | camera | カメラ(外部入力映像) |
Single | x | X座標 |
Single | y | Y座標 |
Single | degree | 回転(度数法) |
Boolean | autoPlay | カメラ(外部入力映像)が停止していた場合、内部でPlayCameraImage(GcCameraDevice)を呼び出すかどうか |
DrawCameraImage(GcCameraDevice, Single, Single, Single, Single, Single, Boolean)
カメラ(外部入力映像)を拡縮して描画します
Declaration
void DrawCameraImage(in GcCameraDevice camera, in float x, in float y, in float width, in float height, float degree = 0F, bool autoPlay = true)
Parameters
Type | Name | Description |
---|---|---|
GcCameraDevice | camera | カメラ(外部入力映像) |
Single | x | X座標 |
Single | y | Y座標 |
Single | width | 横幅。映像の横幅がこれになるように拡縮される |
Single | height | 縦幅。映像の縦幅がこれになるように拡縮される |
Single | degree | 回転(度数法) |
Boolean | autoPlay | カメラ(外部入力映像)が停止していた場合、内部でPlayCameraImage(GcCameraDevice)を呼び出すかどうか |
DrawCameraImage(GcCameraDevice, float2, Single, Boolean)
カメラ(外部入力映像)を描画します
Declaration
void DrawCameraImage(in GcCameraDevice camera, in float2 position, float degree = 0F, bool autoPlay = true)
Parameters
Type | Name | Description |
---|---|---|
GcCameraDevice | camera | カメラ(外部入力映像) |
float2 | position | 位置 |
Single | degree | 回転(度数法) |
Boolean | autoPlay | カメラ(外部入力映像)が停止していた場合、内部でPlayCameraImage(GcCameraDevice)を呼び出すかどうか |
GetPrimaryCameraResolution(GcCameraDevice)
指定されたカメラ(外部入力映像)の推奨解像度を取得します
Declaration
GcResolution GetPrimaryCameraResolution(in GcCameraDevice camera)
Parameters
Type | Name | Description |
---|---|---|
GcCameraDevice | camera | カメラ(外部入力映像) |
Returns
Type | Description |
---|---|
GcResolution | 解像度とリフレッシュレート |
Remarks
- 推奨解像度を取得できない場合、現在のキャンバス解像度とフレームレートに基づいた適当な値を返します
- エディタでは常に推奨解像度を取得できません
PlayCameraImage(GcCameraDevice)
指定されたカメラ(外部入力映像)の更新処理を開始します
Declaration
bool PlayCameraImage(in GcCameraDevice camera)
Parameters
Type | Name | Description |
---|---|---|
GcCameraDevice | camera | カメラ(外部入力映像) |
Returns
Type | Description |
---|---|
Boolean | 開始したかどうか(元から更新していた場合を含まない) |
Remarks
- カメラごとにこのAPIを呼び出すことで、それらを同時に更新することが可能です
- ただし、同じ名称のカメラは、同時に更新することができません
PlayCameraImage(GcCameraDevice, out int2)
指定されたカメラ(外部入力映像)の更新処理を開始します
Declaration
bool PlayCameraImage(in GcCameraDevice camera, out int2 resolution)
Parameters
Type | Name | Description |
---|---|---|
GcCameraDevice | camera | カメラ(外部入力映像) |
int2 | resolution | カメラ(外部入力映像)の解像度 |
Returns
Type | Description |
---|---|
Boolean | 開始したかどうか(元から更新していた場合を含まない) |
Remarks
- カメラごとにこのAPIを呼び出すことで、それらを同時に更新することが可能です
- ただし、同じ名称のカメラは、同時に更新することができません
- テクスチャーが未生成だった場合は、内部で勝手に適当な解像度で生成します