Skip to content

New to Gorgon #42

Answered by Tape-Worm
PaulDirectX asked this question in Q&A
Jan 14, 2022 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Yep, there's a full suite of example applications included that show how to build a simple program to larger, more complex applications.

These are all included in the project solution under the Examples solution folder.

With your current gradient fill application, you could do it like this with Gorgon:

GorgonGraphics gfx;
GorgonSwapChain swap;
Gorgon2D renderer;
GorgonSprite sprite;

void Main()
{
  Application.SetHighDpiMode(HighDpiMode.PerMonitorV2);
  Application.EnableVisualStyles();
  Application.SetCompatibleTextRenderingDefault(false);

  try
  {
      // Now begin running the application idle loop.
      GorgonApplication.Run(Init(), Idle);
  }
  catch (Exception ex)
  {
      Go…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@PaulDirectX
Comment options

@Tape-Worm
Comment options

Answer selected by Tape-Worm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants