Created
January 29, 2013 20:57
-
-
Save Riateche/4667795 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template<class T> | |
void create(const QString& type_name, qint64 width, qint64 height, qint64 depth) { | |
QVariant(T); // test if T can be converted to QVariant | |
_array = _project->create_block<Variant_3d_array>(_project->next_block_id()); | |
_array->create<T>(type_name, width, height, depth); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment