More clean up.

--HG--
branch : dev
This commit is contained in:
Martín Lucas Golini
2019-11-05 01:35:02 -03:00
parent 0b883ede96
commit 46a62c6fdb
23 changed files with 84 additions and 95 deletions

View File

@@ -215,18 +215,21 @@ class EE_API Node : public Transformable {
Node * find( const std::string& id ) const;
template<typename T>
T * find( const std::string& id ) const
{
T * find( const std::string& id ) const {
return reinterpret_cast<T*>( find( id ) );
}
template<typename T>
T * bind( const std::string& id, T*& ctrl )
{
T * bind( const std::string& id, T*& ctrl ) {
ctrl = find<T>( id );
return ctrl;
}
template<typename T>
T * asType() {
return reinterpret_cast<T*>(this);
}
bool isReverseDraw() const;
void setReverseDraw( bool reverseDraw );