Home

Awesome

gorgon_2 x_logo_full_site

What is Gorgon?

A modular set of libraries useful for graphics and/or video game development. Gorgon uses Direct 3D 11.2 (via SharpDX) to provide high performance graphics for your applications.

What is not Gorgon?

Building applications with Gorgon requires that you write code. There's no nodes, no blueprints, etc... It does not contain:

Gorgon is meant for people that want to write their own functionality, get down into the guts of their applications and not have to deal with a black boxed scripting system, or editor. In short, it's more work, but more customizable.

For those that want a more complete (and polished) package to build their applications there's Unity (after the crap they've pulled, no one should be using Unity), Unreal, Godot or Stride (formally Xenko).

Documentation

Documentation for the Gorgon APIs is located here.

What's the licensing?

Gorgon is licensed under the MIT license.

How far along are you? Is it done yet? How about now?

Gorgon 3.2 is in development.

What can it do?

Gorgon provides a set of libraries that are capable of handling pretty much any task thrown at it. It includes:

Core functionality, plug in support and utility functionality. This is the base library that everything else uses.

Core Windows specific functionality. Provides UI functionality, such as custom message box dialogs, timing functionality using QPC and/or the windows multimedia timer and various other bits of utility/diagnostic functionality.

A virtual file system that can mount a directory as a file system root, or using various file system providers, can mount a packed file as a virtual file system root. This code is based on the popular PhysFS library.

By default, Gorgon's basic virtual file system is based on the folder/files on the Windows file system, but using filesystem providers via plug ins, applications can read any type of file storage container can be used if the appropriate plug in is available for it. Gorgon comes with two plug ins for file system providers:

By default, the file system provider

A flexible input library to handle joysticks/gamepads, keyboard and mouse input. The input library can use events or polling to retrieve data from the various input sources.

Keyboard and mouse input is provided using the Windows Raw Input API, and joystick/gamepad support is driven by the following plug ins:

A "low-level" graphics API that sits on top of Direct 3D 11.2. Provides a simplified system to build objects such as render targets, swap chains, buffers, etc... The rendering portion of the API provides a simple mechanism to submit batched state and draw information back to the underlying D3D API.

Functionality to allow Gorgon to render onto a WPF surface. This allows interoperabilty between Gorgon and WPF.

Functionality to allow Gorgon to render onto an Avalonia surface. This allows interoperabilty between Gorgon and Avalonia.

Functionality to read and write image formats. This also contains functionality to use a fluent interface to manipulate images for things like cropping, scaling, etc...

Gorgon uses codecs to read/write images and includes codecs for the following formats:

In additon to the support above, applications can extend the support for file formats by adding their own custom codec plug in to read/write in their desired format(s).

An extensive bitmap font creation interface (within the graphics module) that supports kerning, outlining of font glyphs, and other customizations to help generate impressive looking text.

Currently Gorgon supports reading and writing of font files through codecs. Support is included for:

In addition to the support above, applications can introduce their own codecs to read/write whatever font types they wish by extending the GorgonFontCodec type. (Plug in support is pending at this time)

A 2D renderer that sits on top of the graphics module to make developing 2D games/applications much easier. It supports:

All of these are provided using batched rendering, similar to MonoGame for maximum performance.

IO functionality for serializing sprite and polysprite data to and from various formats using codecs.

An animation module that allows the creation and playback of key framed animations for various types of objects.

Animation controllers for the 2D renderer are provided by the Gorgon.Animation.Gorgon2D assembly.

A flexible content editor to allow for the creation and editing of content.

What's required?

To compile the library

To use the library

Source code

The master branch contains the current release version of Gorgon 3.2.

Acknowledgements

Gorgon uses icons from the following sources:

Oxygen https://github.com/pasnox/oxygen-icons-png
http://www.iconarchive.com/show/oxygen-icons-by-oxygen-icons.org.html

Icons8 http://https://icons8.com

Sprites example textures from: http://millionthvector.blogspot.com/

This following image(s) is/are not redistributable without permission from the original author.

"HotPocket.dds" by Starkiteckt https://www.artstation.com/starkiteckt

Electronics.DDS, Halifax.DDS, Handmaid.DDS and PewterPup.DDS by Colleen MacLean

Third Party True Type fonts:

Tequila by uZiMweB
A Charming Font by GemFonts
Sunset by Harold's Fonts
Monsters Attack ! by The Empire of the Claw
Grunja by Apostrophic Labs
The Bold Font by ???