Hi all
I havent used irrlicht in awhile and im trying to do 4 viewports all with diffrent color backgrounds. I no how to do the splitscreen but how would i go about setting each viewport with diffrent colors?
Thanks.
splitscreen with diffrent color backgrounds.
splitscreen with diffrent color backgrounds.
You can have all the power in the world but if you have no one to follow you what good is the power?
-
- Posts: 1186
- Joined: Fri Dec 29, 2006 12:04 am
Re: splitscreen with diffrent color backgrounds.
Well, the purpose of multiple viewports is to render the *same* scene from different *viewports*.spike314 wrote:im trying to do 4 viewports all with diffrent color backgrounds.
You can't render something which does not exist.
"Whoops..."
Try: 3 times after beginScene() but before you drawAll(). If you do it before you do any setViewPort()s, the rectangles' positions should be the same as each respective viewport offset. If you call them after each setViewPort(), then the rectangles will have to fill the entire device dimension.
Code: Select all
driver->draw2DRectangle();
"Computers don't make mistakes! What they do they do on purpose!!"
-Dale Gribble
-Dale Gribble