Skip to content

Xamarin Studio Content Pipeline Addin (In Progress)

Dean Ellis edited this page Aug 12, 2013 · 7 revisions

For those of you not working on a Windows machine, or not those not wanting to install XNA Game Studio. There is now an Addin for Xamarin Studio which will allow you to build certain content types on Windows and Mac.

Installing the Addin

Make sure you are running the latest stable Xamarin Studio.

  1. Download the approrpiate Addin for your operating system

  2. In Xamarin Studio

    • On Mac, click Xamarin Studio->Add-in Manager
    • On Windows click Tools->Add-in Manager
  3. On the first page click the "Install from File" button and select the .mpack you downloaded in step 1.

  4. Close the Dialog and Restart Xamarin Studio

Using the Content Pipeline

At the moment the Addin only compiles the following content

  • Textures
  • SpriteFonts

For other content you will need to use XNA. In addition the ability to add a Content project to a MonoGame project is not yet supported. So for now the best way to work is to link to the .xnb files produced by the Content Project.

In order to target a specific platform you will need to change the MonoGame Build options. You can do this by Right Clicking on the Content project and selecting Options. You will see the MonoGame Build tab in the list of available tabs.

The MonoGame Platform drop down contains all the platforms that are available, you will need to select the platform you are working on for the pipeline to generate the correctly formatted content. For example for iOS textures are compressed using PVRTC rather than DXT, this allows those textures to be loaded directly into the GPU, this saves on load time and GPU memory. The following grid will give you an idea of what formats are used.

Platform Texture Compression Power of 2 required Must be square
iOS PVRTC yes yes
Windows DXT yes no
Linux DXT yes no
MacOS DXT yes no
Android DXT yes no

The platform selection is "per configuration" so you can add multiple configs for each platform. As you can see from the grid allot of platforms shared the same compression so its possible to double up and reuse assets between platforms that match.

Texture Support

The following Image formats are supported on all platforms

  • png
  • bmp

Clone this wiki locally