Skip to content

Commit

Permalink
bumped osu version
Browse files Browse the repository at this point in the history
  • Loading branch information
Flutterish committed Apr 10, 2022
1 parent 67b33c4 commit 24223be
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 9 additions & 6 deletions osu.Game.Rulesets.Solosu/SolosuTextures.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@ namespace osu.Game.Rulesets.Solosu {
public static class SolosuTextures {
public static Texture Generate ( int width, int height, Func<int, int, Rgba32> generator ) {
Image<Rgba32> image = new Image<Rgba32>( width, height );
for ( int y = 0; y < height; y++ ) {
var span = image.GetPixelRowSpan( y );
for ( int x = 0; x < width; x++ ) {
span[ x ] = generator( x, y );
}
}
image.ProcessPixelRows( rows => {
for ( int y = 0; y < height; y++ ) {
var span = rows.GetRowSpan( y );
for ( int x = 0; x < width; x++ ) {
span[ x ] = generator( x, y );
}
}
} );

Texture texture = new Texture( width, height, true );
texture.SetData( new TextureUpload( image ) );
return texture;
Expand Down
2 changes: 1 addition & 1 deletion osu.Game.Rulesets.Solosu/osu.Game.Rulesets.Solosu.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<EmbeddedResource Include="Resources\**" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="ppy.osu.Game" Version="2022.216.0" />
<PackageReference Include="ppy.osu.Game" Version="2022.405.0" />
</ItemGroup>
<ItemGroup>
<Folder Include="Resources\Samples\Gameplay" />
Expand Down

0 comments on commit 24223be

Please sign in to comment.