Made the computeLocalToWorld etc method to use const NodePath's parameters.
This commit is contained in:
@@ -27,21 +27,21 @@ namespace osg {
|
||||
|
||||
/** compute the matrix which transforms objects in local coords to world coords,
|
||||
* by accumulating the Transform local to world matrices along the specified node path.*/
|
||||
extern SG_EXPORT Matrix computeLocalToWorld(NodePath& nodePath);
|
||||
extern SG_EXPORT Matrix computeLocalToWorld(const NodePath& nodePath);
|
||||
|
||||
/** compute the matrix which transforms objects in world coords to local coords,
|
||||
* by accumulating the Transform world to local matrices along the specified node path.*/
|
||||
extern SG_EXPORT Matrix computeWorldToLocal(NodePath& nodePath);
|
||||
extern SG_EXPORT Matrix computeWorldToLocal(const NodePath& nodePath);
|
||||
|
||||
/** compute the matrix which transforms objects in local coords to world coords,
|
||||
* by accumulating the Transform local to world matrices along the specified node path
|
||||
* the supplied initialial camera modelview .*/
|
||||
extern SG_EXPORT Matrix computeLocalToEye(const Matrix& modelview, NodePath& nodePath);
|
||||
extern SG_EXPORT Matrix computeLocalToEye(const Matrix& modelview, const NodePath& nodePath);
|
||||
|
||||
/** compute the matrix which transforms objects in world coords to local coords,
|
||||
* by accumulating the Transform world to local matrices along the specified node path
|
||||
* the inverse of the supplied initialial camera modelview.*/
|
||||
extern SG_EXPORT Matrix computeEyeToLocal(const Matrix& modelview, NodePath& nodePath);
|
||||
extern SG_EXPORT Matrix computeEyeToLocal(const Matrix& modelview, const NodePath& nodePath);
|
||||
|
||||
|
||||
/** A Transform is a group node for which all children are transformed by
|
||||
|
||||
Reference in New Issue
Block a user