yin / yngine

Automatically exported from code.google.com/p/yngine
0 stars 0 forks source link

Simplify GLRenderer #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The code in GLRenderer became huge pile of rules coded in very variating 
manner. It's not manageable and navigation inside the files is pain. This 
should be changed.

One solution can be extracting logical blocks of code into separate classes as 
in Strategy pattern.

Original issue reported on code.google.com by yinotaurus on 5 Mar 2011 at 4:09

GoogleCodeExporter commented 9 years ago
Animation related code has been extracted into ResetBodyStrategy, 
TorqueImpulseStrategy, JumpStrategy.

Original comment by yinotaurus on 5 Mar 2011 at 4:47

GoogleCodeExporter commented 9 years ago
Initialization of GLRenderer has been broken up into logical groups as setup*() 
methods. This is enough for now, most of the things are now refactorable out of 
GLRenderer.

Original comment by yinotaurus on 25 Mar 2011 at 11:14