Advertisement
                                            
                                    Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/. 
If we do not hit our goal we will be forced to close the site.
Current status: https://keepboardsalive.com/
Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
If we do not hit our goal we will be forced to close the site.
Current status: https://keepboardsalive.com/
Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum
Private Group for paid up members of Boards.ie. Join the club.
Private Group for paid up members of Boards.ie. Join the club.
OpenGL Holding a View Matrix
- 
    30-05-2011 04:35PM#1
Comments
- 
            
- 
            
- 
            
- 
            
- 
            
- 
                Advertisement
- 
            
- 
            
- 
            
- 
            
- 
            
- 
                Advertisement
- 
            
- 
            
- 
            
- 
            
- 
            
- 
            
- 
            
- 
            
Advertisement
    
 Your solution is easy, just store the matrix inside each object. Nothing to do with OpenGL at all. Then when you go child->Draw() you have the relevant parent matrix available for use, I assume you combine the parent matrix with child matrix somehow then? Many ways to set this up ofc, your child objects could hold a reference to parent would be easiest.
 Your solution is easy, just store the matrix inside each object. Nothing to do with OpenGL at all. Then when you go child->Draw() you have the relevant parent matrix available for use, I assume you combine the parent matrix with child matrix somehow then? Many ways to set this up ofc, your child objects could hold a reference to parent would be easiest.
 
                                            
 
                                            