mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
Add not-completely-useless output() method to ShaderAttrib
This commit is contained in:
parent
1628238222
commit
eca343c712
@ -525,6 +525,28 @@ get_shader() const {
|
||||
return _shader;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: ShaderAttrib::output
|
||||
// Access: Public, Virtual
|
||||
// Description:
|
||||
////////////////////////////////////////////////////////////////////
|
||||
void ShaderAttrib::
|
||||
output(ostream &out) const {
|
||||
out << "ShaderAttrib:";
|
||||
|
||||
if (_has_shader) {
|
||||
if (_shader == NULL) {
|
||||
out << "off";
|
||||
} else {
|
||||
out << _shader->get_filename().get_basename();
|
||||
}
|
||||
} else if (_auto_shader) {
|
||||
out << "auto";
|
||||
}
|
||||
|
||||
out << "," << _inputs.size() << " inputs";
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: ShaderAttrib::compare_to_impl
|
||||
// Access: Protected, Virtual
|
||||
|
@ -115,6 +115,7 @@ PUBLISHED:
|
||||
static void register_with_read_factory();
|
||||
|
||||
public:
|
||||
virtual void output(ostream &out) const;
|
||||
|
||||
protected:
|
||||
virtual int compare_to_impl(const RenderAttrib *other) const;
|
||||
|
Loading…
x
Reference in New Issue
Block a user