Esempio n. 1
0
CubeObj::CubeObj(const QString name, ObjectItem *parent, Project & pro1 )
    : pro ( pro1 ), EmptyObj ( name, parent )
{
    makeobject();
    textureID = 0;
    textureMat = new cv::Mat (cv::Size(500,500),CV_8UC3);
    for ( int i=0; i < 6; i++)  textureIDs[i] = 0;
}
Esempio n. 2
0
QuadObj::QuadObj(const QString name, ObjectItem *parent, Project &pro1) :
    pro ( pro1 ) ,  EmptyObj ( name , parent)
{
    rotation.setToIdentity();
    pos   = QVector3D ( -2, -1,-3 );
    rot   = QVector3D ( 0, 0, 0 );
    scale = QVector3D ( 1, 1, 1 );
    makeobject();
    textureID = 0;
    textureMat = new cv::Mat (cv::Size(500,500),CV_8UC3);
}
Esempio n. 3
0
/* convenience value constructor */
SpnValue spn_makearray(void)
{
	return makeobject(spn_array_new());
}