Text3D* ChessUtils::createText3D(const string& content, Font3D* font3D, const Vec3& position, float size, float depth, osgText::TextBase::AlignmentType textAligment) { Text3D* text = new Text3D(); text->setFont(font3D); text->setCharacterSize(size); text->setCharacterDepth(depth); text->setAlignment(textAligment); text->setAxisAlignment(osgText::TextBase::XY_PLANE); text->setPosition(position); text->setText(content); return text; }