Giter Site home page Giter Site logo

nine.graphics's Introduction

Nine.Graphics Build status

This project is still a work in progress, a lot of things are not implemented yet.

Nine.Graphics is an open source graphics framework for building games and applications that takes advance of modern graphics hardware. It is the successor of Engine Nine.

With Nine.Graphics we are making a number of architectual changes that makes the core foundational graphics framework much leaner and more moduler:

Cross-Platform Runtime

Nine.Graphics targets .NET core and DNX as the .NET runtime environment, the graphics stack sits directly on top of OpenTK(OpenGL managed invoker) and SharpDX(DirectX managed invoker), making it capable of running on Windows, Linux, Mac, iOS and Android.

Modern Interactive Development

Traditionally, programs are developed using the Edit -> Compile -> Run loop, Nine.Graphics takes advantage of dynamic compilation provided by Roslyn to streamline developer experience, each time a change is made to the source code, the application automatically refresh itself with the execution state preserved. You gain the productivity of an interpreted language without sacrificing the benifits of a compiled language.

The content pipeline is build directly into the runtime, so changes to assets are watched and automatically reloaded without the need to rebuild and rerun the whole program.

Multi-threaded Architecture

Nine.Graphics makes it easy to write correct multi-threaded programs that separates simulation and rendering into different threads at large scale. The rendering pipeline itself also takes advantage of multi-threaded rendering whenever possible to reduce frame time.

Immutable Data Driven and Pure Functions

The core rendering API is exposed though an immutable struct object model, the rendering pipeline is simply a function that takes this immutable object state, performs a series of pure data transforms to generate triangles and commands with no side effects, then submit those commands to the GPU to produce a predictable image. This makes it easy to write parallel code that separates simulation and rendering.

nextState = update(state)
draw(state)

Because states are immutable and complete, it is a lot simpler for the rendering system to batch operations whenever possible, which yields better performance.

Serializable

The object models are all flat POCOs, the fields only expose basic primitive types and equivalents, with no nested objects or complex reference graph, making it extreamly easy to integrate with any binary or text serializers.

Flexible and Extensible

Nine.Graphics is written with dependency injection in mind, just about every interface or functionality can be dependency injected and replaced with a custom implementation. Most of the classes exposed are dependency injection friendly and can be used directly with major IoC containers.

nine.graphics's People

Contributors

erictuvesson avatar yufeih avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.