当前位置: 首页>>代码示例>>C++>>正文


C++ seq::push_back方法代码示例

本文整理汇总了C++中seq::push_back方法的典型用法代码示例。如果您正苦于以下问题:C++ seq::push_back方法的具体用法?C++ seq::push_back怎么用?C++ seq::push_back使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在seq的用法示例。


在下文中一共展示了seq::push_back方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: Shader

    /// Constructor.
    ///
    /// \param type GL_VERTEX_SHADER or GL_FRAGMENT_SHADER.
    /// \param part1 Shader part.
    Shader(GLenum type, const char *part1) :
      m_id(dnload_glCreateShader(type))
    {
      m_parts.push_back(part1);

      this->compile();
    }
开发者ID:faemiyah,项目名称:faemiyah-demoscene_2016-08_80k-intro_my_mistress_the_leviathan,代码行数:11,代码来源:verbatim_shader.hpp

示例2: initialize

    /// Initializes the complete intro direction.
    ///
    /// \param data Data blob to initialize from.
    void initialize(const int16_t *data)
    {
      const int16_t* iter = data;

      for(;;)
      {
        m_scenes.push_back(new Scene(iter));

        iter = next_segment(next_segment(iter + 4));

        if(Spline::is_segment_end(iter))
        {
          break;
        }
      }
    }
开发者ID:faemiyah,项目名称:faemiyah-demoscene_2016-08_80k-intro_my_mistress_the_leviathan,代码行数:19,代码来源:intro_direction.hpp

示例3: addChild

 /// Create a new child bone.
 ///
 /// \param pos Position.
 /// \param rot Rotation.
 /// \return Reference to the child bone created.
 void addChild(Bone* op)
 {
   m_children.push_back(op);
   op->setParent(this);
 }
开发者ID:faemiyah,项目名称:faemiyah-demoscene_2016-08_80k-intro_my_mistress_the_leviathan,代码行数:10,代码来源:verbatim_bone.hpp


注:本文中的seq::push_back方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。