r3tga

r3tga

Class

plugins/dtype/tga/r3tga.h

Library

r3tga

Description:

Targa file format

See Also

real/dtype/r3dtfile.h

Super Class

r3Dtfile

R3CLID_DTFILE

JavaScript

r3Tga

Class Identifier

R3CLID_TGA - 536

Methods

SELECTCHANNEL,

Attributes

AlphaChannel, RLE,

Attributes

Registration

int R3RegisterTGAClass(R3APP *app);

R3TGAM_SELECTCHANNEL

Method

SELECTCHANNEL

Identifier

R3TGAM_SELECTCHANNEL

Param 3:

R3INT, channel id as defined below

JavaScript

obj.SELECTCHANNEL(p3);

Description

Selects a channel for IO operations.

AlphaChannel

Attribute

AlphaChannel

Identifier

R3TGAA_AlphaChannel

JavaScript type

Boolean

C type

R3BOOL

Description

if true, file has alpha channel

Syntax


jsobj.SetAlphaChannel(value);
value = jsobj.GetAlphaChannel();


R3BOOL value = ...;
R3SetAttrs(r3obj, R3TGAA_AlphaChannel, value, R3TAG_END);
R3BOOL value;
R3GetAttrs(r3obj, R3TGAA_AlphaChannel, &value, R3TAG_END);

RLE

Attribute

RLE

Identifier

R3TGAA_RLE

JavaScript type

Boolean

C type

R3BOOL

Description

turns rle compression on

Syntax


jsobj.SetRLE(value);
value = jsobj.GetRLE();


R3BOOL value = ...;
R3SetAttrs(r3obj, R3TGAA_RLE, value, R3TAG_END);
R3BOOL value;
R3GetAttrs(r3obj, R3TGAA_RLE, &value, R3TAG_END);

Error numbers