Syntax

dbSetCameraToImage(CameraID, ImageID, Width, Height [,Generate Alpha Mode [, D3D Format]])

Description

This command will direct all camera output to the specified image. This command is ideal for performing the fastest method of creating textured polygons that show a different view within your 3D world. You can use this command to create mirrors, security cameras within your game or dynamically moving the camera view around on a polygon shape such as a floating panel.

Generate Alpha Mode

Specifies the generate alpha mode. A value of 0 or 1 will create a standard image, whereas a value of 2 will create an image using the DirectX format D3DFMT_A8R8G8B8. A value of 3 will allow you to specify an additional parameter with your own

 

D3D Format

Specifies the DirectX surface format when generate alpha mode three is used. Available modes can be any one of the following values:

#GDK_D3DFMT_UNKNOWN
#GDK_D3DFMT_R8G8B8
#GDK_D3DFMT_A8R8G8B8
#GDK_D3DFMT_X8R8G8B8
#GDK_D3DFMT_R5G6B5
#GDK_D3DFMT_X1R5G5B5
#GDK_D3DFMT_A1R5G5B5
#GDK_D3DFMT_A4R4G4B4
#GDK_D3DFMT_R3G3B2
#GDK_D3DFMT_A8
#GDK_D3DFMT_A8R3G3B2
#GDK_D3DFMT_X4R4G4B4
#GDK_D3DFMT_A2B10G10R10
#GDK_D3DFMT_A8B8G8R8
#GDK_D3DFMT_X8B8G8R8
#GDK_D3DFMT_G16R16
#GDK_D3DFMT_A2R10G10B10
#GDK_D3DFMT_A16B16G16R16
#GDK_D3DFMT_A8P8
#GDK_D3DFMT_P8
#GDK_D3DFMT_L8
#GDK_D3DFMT_A8L8
#GDK_D3DFMT_A4L4
#GDK_D3DFMT_V8U8
#GDK_D3DFMT_L6V5U5
#GDK_D3DFMT_X8L8V8U8
#GDK_D3DFMT_Q8W8V8U8
#GDK_D3DFMT_V16U16
#GDK_D3DFMT_A2W10V10U10
#GDK_D3DFMT_D16_LOCKABLE
#GDK_D3DFMT_D32
#GDK_D3DFMT_D15S1
#GDK_D3DFMT_D24S8
#GDK_D3DFMT_D24X8
#GDK_D3DFMT_D24X4S4
#GDK_D3DFMT_D16
#GDK_D3DFMT_D32F_LOCKABLE
#GDK_D3DFMT_D24FS8
#G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