Difference between revisions of "Right To Render (RW Section)"
m |
|||
Line 1: | Line 1: | ||
{{RW Section|Right To Render|0x001F}} | {{RW Section|Right To Render|0x001F}} | ||
− | '''Right To Render''' is a extension to | + | '''Right To Render''' is a extension to an [[Atomic (RW Section)|Atomic]] or [[Material (RW Section)|Material]] chunk within a [[RenderWare#Binary_Streams|RenderWare stream]]. It records which pipeline was attached to the Atomic or Material when it was being written so that it can be attached again when the file is read. |
==Binary structure== | ==Binary structure== | ||
− | The | + | The chunks contains two values: |
− | + | uint32 - RW plugin identifier (e.g. [[Skin PLG (RW Section)|0x0116]] or [[Material Effects PLG (RW Section)|0x0120]]) | |
− | + | uint32 - extra data | |
− | + | After this has been read and if the plugin identified by the first value has registered a stream rights callback, this callback is called using ''extra data'' as an argument and usually attaches a pipeline. The ''extra data'' is typically used to select a pipeline if the plugin provides more than one; when streamed out, the attached pipeline's extra data value is written out. In GTA the [[Skin PLG (RW Section)| Skin]] and [[PDS PLG| PDS]] plugins are the only plugins which register a stream rights callback. If no pipeline is attached or it's plugin ID is 0, this chunk is not written. | |
==See also== | ==See also== | ||
* [[Atomic (RW Section)|Atomic]] | * [[Atomic (RW Section)|Atomic]] | ||
+ | * [[Material (RW Section)|Material]] | ||
* [[Skin PLG (RW Section)|Skin]] | * [[Skin PLG (RW Section)|Skin]] | ||
− | |||
* [[RenderWare binary stream file]] | * [[RenderWare binary stream file]] | ||
{{N|SA|VC}} | {{N|SA|VC}} | ||
[[Category:GTA_3]] | [[Category:GTA_3]] |
Revision as of 19:11, 7 June 2016
{{{NAME}}} | |
---|---|
RenderWare Stream Section | |
Vendor | {{{VENDORNAME}}} |
Module | {{{MODULENAME}}} |
Module ID | 0x{{{MODULEID}}}
|
Identifier | 0x{{{IDENTIFIER}}}
|
Chunk ID | 0x{{{MODULEID}}}{{{IDENTIFIER}}}
|
Versions | All |
Hierarchy | |
Parents: None | |
Children: None | |
Extensions: None | |
File Format |
Right To Render is a extension to an Atomic or Material chunk within a RenderWare stream. It records which pipeline was attached to the Atomic or Material when it was being written so that it can be attached again when the file is read.
Binary structure
The chunks contains two values:
uint32 - RW plugin identifier (e.g. 0x0116 or 0x0120) uint32 - extra data
After this has been read and if the plugin identified by the first value has registered a stream rights callback, this callback is called using extra data as an argument and usually attaches a pipeline. The extra data is typically used to select a pipeline if the plugin provides more than one; when streamed out, the attached pipeline's extra data value is written out. In GTA the Skin and PDS plugins are the only plugins which register a stream rights callback. If no pipeline is attached or it's plugin ID is 0, this chunk is not written.