mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
Add clearAllShaderInputs
This commit is contained in:
parent
5dbd57a855
commit
d5a72622e5
@ -281,6 +281,18 @@ clear_shader_input(const string &id) const {
|
|||||||
return clear_shader_input(InternalName::make(id));
|
return clear_shader_input(InternalName::make(id));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
// Function: ShaderAttrib::clear_all_shader_inputs
|
||||||
|
// Access: Published
|
||||||
|
// Description: Clears all the shader inputs on the attrib.
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
CPT(RenderAttrib) ShaderAttrib::
|
||||||
|
clear_all_shader_inputs() const {
|
||||||
|
ShaderAttrib *result = new ShaderAttrib(*this);
|
||||||
|
result->_inputs.clear();
|
||||||
|
return return_new(result);
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: ShaderAttrib::get_shader_input
|
// Function: ShaderAttrib::get_shader_input
|
||||||
// Access: Published
|
// Access: Published
|
||||||
|
@ -68,6 +68,8 @@ PUBLISHED:
|
|||||||
CPT(RenderAttrib) clear_shader_input(InternalName *id) const;
|
CPT(RenderAttrib) clear_shader_input(InternalName *id) const;
|
||||||
CPT(RenderAttrib) clear_shader_input(const string &id) const;
|
CPT(RenderAttrib) clear_shader_input(const string &id) const;
|
||||||
|
|
||||||
|
CPT(RenderAttrib) clear_all_shader_inputs() const;
|
||||||
|
|
||||||
INLINE bool get_flag(int flag) const;
|
INLINE bool get_flag(int flag) const;
|
||||||
|
|
||||||
const Shader *get_shader() const;
|
const Shader *get_shader() const;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user