It is currently Fri Apr 28, 2017 8:47 pm

All times are UTC - 5 hours




 Page 1 of 1 [ 4 posts ] 
Author Message
 Post subject: About the Shader Engine.
PostPosted: Fri Jul 31, 2015 6:44 pm 

Joined: Sat Aug 16, 2008 7:58 am
Posts: 447
As I was glancing through the solution for the overall structure of the current ShaderEngine series I noticed something; it is not necessarily a bug but maybe a forgotten implementation. When we added in the VisualMko class, we did indeed derive Image2d from VisualMko, but is there a need to inherit either Array2d or Surface3d from VisualMko or do they remain inherited from BaseMko for some valid reason?


Offline
 Profile  
 
 Post subject: Re: About the Shader Engine.
PostPosted: Fri Jul 31, 2015 9:22 pm 
Site Admin

Joined: Sun Feb 11, 2007 8:59 am
Posts: 1094
Location: Ontario Canada
Array2d is nothing more than a 2d data array. Therefore it should not inherit from VisualMko because it is not a "renderable" object.

The current implementation of Surface3d doesn't inherit from VisualMko because the way that the class is currently defined is too limiting to use in a general way in the game engine. If you were to implement a true terrain class that renders 3D surfaces, then yes, you would want to inherit from VisualMko.


Offline
 Profile  
 
 Post subject: Re: About the Shader Engine.
PostPosted: Fri Jul 31, 2015 11:27 pm 

Joined: Sat Aug 16, 2008 7:58 am
Posts: 447
Okay thank you for the clarification, its been so long since it was implemented I wasn't 100% sure. It does make complete sense, I also assume that if a Model3D class was to be added it would also inherit from VisualMko but we are still working with the 2D aspect of the ShaderEngine.


Offline
 Profile  
 
 Post subject: Re: About the Shader Engine.
PostPosted: Sat Aug 01, 2015 3:35 am 
Site Admin

Joined: Sun Feb 11, 2007 8:59 am
Posts: 1094
Location: Ontario Canada
yes exactly.


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 4 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Jump to:  

cron