fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / System / Material / Base / OSGMaterial.fcd
blobe05f295274729de088881cbc106d3f80f3afbb15
1 <?xml version="1.0"?>
3 <FieldContainer
4 name="Material"
5 parent="Attachment"
6 library="System"
7 structure="abstract"
8 pointerfieldtypes="both"
9 systemcomponent="true"
10 parentsystemcomponent="true"
11 decoratable="false"
12 useLocalIncludes="false"
13 docGroupBase="GrpSystemMaterial"
16 The material base class.
18 \ext
19 The Material has two interfaces to return a State that represents it.
20 OSG::Material::makeState() creates a new OSG::State and returns it. This is
21 ok for rare use, but for every frame this is going to be too expensive. For
22 these cases OSG::Material::rebuildState() and OSG::Material::getState() are
23 used, which modify and return an internal copy of the State.
25 The other method to implement is OSG::Material::isTransparent(), to identify
26 transparent materials to be rendered after the opaque ones.
27 \endext
28 <Field
29 name="sortKey"
30 type="Int32"
31 cardinality="single"
32 visibility="external"
33 defaultValue="0"
34 access="public"
36 </Field>
37 <Field
38 name="transparencyMode"
39 type="Int32"
40 cardinality="single"
41 visibility="external"
42 defaultValue="0"
43 access="public"
45 Set the transparency mode, possible values are TransparencyAutoDetection,
46 TransparencyForceTransparent and TransparencyForceOpaque
47 </Field>
48 </FieldContainer>