It is currently Thu Dec 14, 2017 11:51 am

All times are UTC - 5 hours




 Page 1 of 1 [ 3 posts ] 
Author Message
 Post subject: Shader VMK 67 - Gui Image Class
PostPosted: Thu Jan 08, 2015 9:09 pm 
Site Admin

Joined: Sun Feb 11, 2007 8:59 am
Posts: 1105
Location: Ontario Canada
This video shows how to create the GuiImage class which inherits from GuiRenderable. The GuiImage class is used to render solid colors or textures on the screen.


Offline
 Profile  
 
 Post subject: Re: Shader VMK 67 - Gui Image Class
PostPosted: Fri Jan 09, 2015 4:29 am 

Joined: Sat Aug 16, 2008 7:58 am
Posts: 450
Very straight forward and simple to implement. I like the versatility with this hierarchy. Now out of curiosity, later on in the VMKs would it be plausible to add a child to the GuiImage class if and only if it is another specific Gui -type class such as a GuiText class or a GuiLabel class but would throw an exception on any other type? That way the GuiImage object would be parent to a text object or a label, instead of having a sibling relationship. Just wondering, because if you have an image sometimes it could be useful to attach a line of text to it that is renderable such as a tag or maybe a label that is not renderable that could be useful for a querying system, etc..


Offline
 Profile  
 
 Post subject: Re: Shader VMK 67 - Gui Image Class
PostPosted: Fri Jan 09, 2015 6:10 am 
Site Admin

Joined: Sun Feb 11, 2007 8:59 am
Posts: 1105
Location: Ontario Canada
skilz80 wrote:
...out of curiosity, later on in the VMKs would it be plausible to add a child to the GuiImage class if and only if it is another specific Gui -type class such as a GuiText class or a GuiLabel class but would throw an exception on any other type?


Yes, that is exactly what you will find in an upcoming VMK.


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

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 0 guests


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