Permalink
Browse files

CRYO: EDEN: Move graphics into a separate class

Eden game object now contains a graphics object with which to
delegate graphics operations and store states of the graphics.

Much of the video playing is done in the graphics class
so I have moved a lot of the video state into there.

Some graphics related variables were moved out of eden and into
graphics, but many are still in eden.

Since they are still coupled there are lots of getters and setters.
For example both eden_graphics and eden share a handle to the same
video object.

I have made a few more things public than desirable.

I changed graphics to eden_graphics since it is specialized to eden
and not just cryo.
  • Loading branch information...
dafioram committed Aug 31, 2018
1 parent a6e8744 commit d2e87458e0abcfe044d1d16122490c9f5f17dd60
Showing with 1,157 additions and 671 deletions.
  1. +369 −356 engines/cryo/eden.cpp
  2. +81 −91 engines/cryo/eden.h
  3. +462 −223 engines/cryo/{graphics.cpp → eden_graphics.cpp}
  4. +244 −0 engines/cryo/eden_graphics.h
  5. +1 −1 engines/cryo/module.mk
Oops, something went wrong.

0 comments on commit d2e8745

Please sign in to comment.