Oscetch.MonoGame.Textures.GL 1.0.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package Oscetch.MonoGame.Textures.GL --version 1.0.3
                    
NuGet\Install-Package Oscetch.MonoGame.Textures.GL -Version 1.0.3
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Oscetch.MonoGame.Textures.GL" Version="1.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Oscetch.MonoGame.Textures.GL" Version="1.0.3" />
                    
Directory.Packages.props
<PackageReference Include="Oscetch.MonoGame.Textures.GL" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Oscetch.MonoGame.Textures.GL --version 1.0.3
                    
#r "nuget: Oscetch.MonoGame.Textures.GL, 1.0.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=Oscetch.MonoGame.Textures.GL&version=1.0.3
                    
Install as a Cake Addin
#tool nuget:?package=Oscetch.MonoGame.Textures.GL&version=1.0.3
                    
Install as a Cake Tool

Oscetch.MonoGame.Textures

A library for generating monogame textures

Usage

The library can generate these shapes:

  • Circle/Ellipse
  • Cross
  • Rectangle
  • Rectangle with a corner radius
  • Rectangle with a cross in the middle
  • X shape
  • Triangle
  • Dialog box, which is just a rounded corner rectangle, without any radius on the bottom left

To generate a texture you create a builder, set the parameters and build:

var textureParams = new CustomTextureParametersBuilder()
  .WithSize(300)
  .WithBorderThickness(10)
  .WithFillColor(Color.White)
  .WithBorderColor(Color.Violet)
  .WithCornerRadius(20)
  .WithShape(ShapeType.RectangleCornerRadius)
  .Build();

Then use the CustomTextureManager to get the texture:

var texture = CustomTextureManager.GetCustomTexture(textureParams, GraphicsDevice);

The CustomTextureManager will cache the texture with the parameters you gave it. So the same texture will be reused if you try to build the same texture multiple times. To clear this cache you call:

CustomTextureManager.ClearCache();
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Oscetch.MonoGame.Textures.GL:

Package Downloads
Oscetch.MonoGame.GuiComponent.GL

Library to act as a gui component for monogame

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.6 145 6/30/2025
1.0.5 138 6/26/2025
1.0.4 136 10/12/2024
1.0.3 141 7/21/2024
1.0.2 143 6/19/2024
1.0.1 143 6/19/2024
1.0.0 346 12/21/2021