Thomas
Thomas

Reputation: 6196

Is the monogame content processors required for it to work on different platforms?

Can I just use the xna content processor and import all the xnb files, or do I need to use the monogame content project thing and use their processors?

Upvotes: 0

Views: 168

Answers (1)

craftworkgames
craftworkgames

Reputation: 9957

You most certainly can use the XNA content processor. That's what most people have been doing while waiting for the MonoGame team to implement their own content processors.

Alternately, you can use raw assets in place of the XNB files. Simply add them to the Content folder of your project and set them to Content / Copy if newer in the properties window. You also need to refer the the file with it's extension in code, e.g.

Content.Load<Texture2D>("MyTexture.png");

When doing this, I've also found you get better results if you set the blend state to BlendState.NonPremultiplied since the XNB files do this for you.

_spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.NonPremultiplied, null, null, null, null, viewMatrix * Matrix.CreateScale(screenScale));

Upvotes: 1

Related Questions