21 #include "hx3d/gui/widget.hpp" 23 #include "hx3d/graphics/geometries/geometry.hpp" 31 _geometry = Make<graphics::geom::Geometry>();
33 _geometry->setAttribute(
"Position", std::vector<float> {
40 _geometry->setIndices(std::vector<GLushort> {
45 _geometry->setAttribute(
"Color", std::vector<float> {
52 _geometry->setAttribute(
"Texture", std::vector<float> {
63 widget->_parent =
this;
64 _children.push_back(widget);
Ptr< geom::BaseGeometry > _geometry
Current geometry.
std::shared_ptr< T > Ptr
Quick-typing shared ptr.