mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-18 12:43:44 -04:00
add relative uniform set_scale
This commit is contained in:
parent
29d25e0e69
commit
47e4a10fc8
@ -107,11 +107,12 @@ get_type_from_extension(const string &extension) {
|
||||
_deferred_types.erase(di);
|
||||
|
||||
loader_cat->info()
|
||||
<< "loading file type module: " << dlname.to_os_specific() << endl;
|
||||
<< "loading file type module: " << (*di).second << endl;
|
||||
void *tmp = load_dso(dlname);
|
||||
if (tmp == (void *)NULL) {
|
||||
loader_cat->info()
|
||||
<< "Unable to load: " << load_dso_error() << endl;
|
||||
loader_cat->warning()
|
||||
<< "Unable to load " << dlname.to_os_specific() << ": "
|
||||
<< load_dso_error() << endl;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -794,6 +794,17 @@ get_r(const NodePath &other) const {
|
||||
return get_hpr(other)[2];
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: NodePath::set_scale
|
||||
// Access: Published
|
||||
// Description: Sets the scale component of the transform,
|
||||
// relative to the other node.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE void NodePath::
|
||||
set_scale(const NodePath &other, float scale) {
|
||||
set_scale(other, LPoint3f(scale, scale, scale));
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: NodePath::set_scale
|
||||
// Access: Published
|
||||
|
@ -369,6 +369,7 @@ PUBLISHED:
|
||||
void set_quat(const NodePath &other, const LQuaternionf &quat);
|
||||
LQuaternionf get_quat(const NodePath &other) const;
|
||||
|
||||
INLINE void set_scale(const NodePath &other, float scale);
|
||||
INLINE void set_scale(const NodePath &other, float sx, float sy, float sz);
|
||||
void set_scale(const NodePath &other, const LVecBase3f &scale);
|
||||
void set_sx(const NodePath &other, float sx);
|
||||
|
Loading…
x
Reference in New Issue
Block a user