Sign in to follow this  
  • entries
    5
  • comments
    10
  • views
    3518

Spinning off the graphics engine...

Sign in to follow this  
AtomicWedgie

233 views

So, I am revisiting the core framework for Epiphany and have realized that my graphics engine should be spun off from the game engine. Why? Well for one, the code is looking more and more speghettish ;) The other reason is that the graphics engine and game engine perform very unique tasks...

Ideallty, it the game engine should be a "hub". As such, it should implement the game loop and the scene graph. During each iteration of the game loop the game engine should process each game entity by making requests against the graphics engine (and other engines).

The graphics engine should be responsible for loading, rendering, and disposing of game entities AND recovering itself (if necessary). The graphics engine should also maintain resource pools for the loading (and sharing) of graphics resources such as Fonts, Meshes, Textures, and Shaders.

Previously the game engine was handling all of these tasks - and as such it was getting more and more difficult to maintain.
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now