Member initialisation to 0

What it says on the tin: a place to discuss proposed new features.
Post Reply
User avatar
tuan kuranes
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 2653
Joined: Wed Sep 24, 2003 8:07 am
Location: Haute Garonne, France
x 4
Contact:

Member initialisation to 0

Post by tuan kuranes »

Could it be possible to initialize mLastViewport to 0 in ogreCamera ?

mLastViewport (0)

Just too lazy to propose a patch on just that... :wink:
User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19269
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 66
Contact:

Post by sinbad »

I don't think it's even used!
User avatar
tuan kuranes
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 2653
Joined: Wed Sep 24, 2003 8:07 am
Location: Haute Garonne, France
x 4
Contact:

Post by tuan kuranes »

It's used in Octree and now in Paginglandscape in order to get viewport height in Cfactor calculation from PrimaryCamera.
Post Reply