Pastaspace Posted October 6, 2014 Share Posted October 6, 2014 After a few tries on my own, with no luck, I've decided to ask for help. What I'm trying to do is have a separate and smaller context/render area out on the screen. Basically anything drawn outside of the area gets cut off. So for example, drawing a 200x200 image inside of this area, if it was 100x100, would only render part of the image. I'd be using this for minimaps and similar. Basically this. I have a general idea of how do to this, but then again, not really. So what do I do? My main guess is that it involves creating and drawing to a separate buffer, but there's limited documentation on buffers. Quote Link to comment Share on other sites More sharing options...
Guppy Posted October 7, 2014 Share Posted October 7, 2014 There is a render to texture tutorial for a security cam that may be of use to you. Quote System: Linux Mint 17 ( = Ubuntu 14.04 with cinnamon desktop ) Ubuntu 14.04, AMD HD 6850, i5 2500k Link to comment Share on other sites More sharing options...
Pastaspace Posted October 7, 2014 Author Share Posted October 7, 2014 I already know how to do that, I'm talking about applying that to things like contexts and similar. Quote Link to comment Share on other sites More sharing options...
Guppy Posted October 7, 2014 Share Posted October 7, 2014 And I'm saying having a seperate context ontop of the current is a bad idea - instead draw a quad with the RTT texture Quote System: Linux Mint 17 ( = Ubuntu 14.04 with cinnamon desktop ) Ubuntu 14.04, AMD HD 6850, i5 2500k Link to comment Share on other sites More sharing options...
Pastaspace Posted October 7, 2014 Author Share Posted October 7, 2014 Yep, that works just fine! One question though, is it possible to resize a buffer at all? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.