UltravioletFramework / ultraviolet

The Ultraviolet Framework is a .NET game development framework written in C#.
https://github.com/UltravioletFramework/ultraviolet/wiki
MIT License
542 stars 46 forks source link

Samples #99

Closed stigzler closed 6 years ago

stigzler commented 6 years ago

Hi - the wiki references samples, saying they're in the repo, but I can't find them. Are they still available?

tlgkccampbell commented 6 years ago

I've updated the wiki to reflect the new location of the samples. Thanks for reporting this error.

stigzler commented 6 years ago

var data = new Color[128 * 128]; Array.Fill(data, Color.Red); _texture = Texture2D.CreateTexture(128,128); _texture.SetData(data); _batch = SpriteBatch.Create();

Sorry, I know this is closed, but struggling with RUSshy's code. I'm converting it to vb.net and Array.Fill doesn't compile???

Also, how do I get the image displayed - you've commented it out. Can't find a way to message RUSshy directly.

tlgkccampbell commented 6 years ago

The Array.Fill() method only exists in .NET Core. If you're using .NET Framework you'll have to fill the array manually in a for loop.