What are the Parameterized Content Processors?
Describes how parameterized Content Processors work in MonoGame.
Describes how parameterized Content Processors work in MonoGame. Many of the standard Content Pipeline Content Processors shipped with XNA Game Studio support parameter usage. Parameterization makes any standard or custom Content Processor more flexible and better able to meet the needs of your XNA Framework application. In addition to specifying values for standard parameters, you can easily implement parameter support for a new or an existing custom Content Processor. For more information, see Developing with Parameterized Processors.
When you select a game asset, the Properties window displays the parameters for the related Content Processor. Use the Properties window at any time to modify these parameter values.
Tip
If you change the Content Processor for a game asset to a different Content Processor, all parameter values are reset to their default values. This means that if you modify the Generate Mipmaps parameter value for the TextureProcessor and then switch to a different Content Processor (for example, FontTextureProcessor Class), the parameters switch to the default values for that Content Processor. If you then switch back again, the modified values are reset to the default values of the original Content Processor. The values do not revert to the modified values you set originally.
Standard Parameterized Content Processors
The following describes only standard Content Processors that accept parameters, the parameter types, and their default value. For more information about all standard Content Processors, see Standard Content Importers and Content Processors.
Friendly name | Type name | Input type | Output type | Description |
---|---|---|---|---|
Model | ModelProcessor | NodeContent Class | ModelContent Class | A parameterized Content Processor that outputs models as a ModelContent Class object. Available parameters: Color Key Color–Any valid Color. Magenta is the default value. Color Key Enabled–A Boolean value indicating if color keying is enabled. The default value is true. Generate Mipmaps–A Boolean value indicating if mipmaps are generated. The default value is false. Generate Tangent Frames–A Boolean value indicating if tangent frames are generated. The default value is false. Resize Textures to Power of Two–A Boolean value indicating if a texture is resized to the next largest power of 2. The default value is false. Scale–Any valid float value. The default value is 1.0. Swap Winding Order–A Boolean value indicating if the winding order is swapped. This is useful for models that appear to be drawn inside out. The default value is false. Texture Format–Any valid value from TextureProcessorOutputFormat. Textures are either unchanged, converted to the Color format, or Compressed using the specified Compression algorithm. X Axis Rotation–Number, in degrees of rotation. The default value is 0. Y Axis Rotation–Number, in degrees of rotation. The default value is 0. * Z Axis Rotation–Number, in degrees of rotation. The default value is 0. |
Sprite Font Texture | FontTextureProcessor | TextureContent Class | SpriteFontContent | A parameterized Content Processor that outputs a sprite font texture as a SpriteFontContent object. Available parameters: * First Character–Any valid character. The space character is the default value. |
Texture | TextureProcessor | TextureContent Class | TextureContent Class | A parameterized Content Processor that outputs textures as a TextureContent Class object. Available parameters: Color Key Color–Any valid Color. Magenta is the default value. Color Key Enabled–A Boolean value indicating if color keying is enabled. The default value is true. Generate Mipmaps–A Boolean value indicating if mipmaps are generated. The default value is false. Resize to Power of Two–A Boolean value indicating if a texture is resized to the next largest power of 2. The default value is false. * Texture Format–Any valid value from TextureProcessorOutputFormat. Textures are unchanged, converted to the Color format, or Compressed using the specified Compression algorithm. |