Пример #1
0
 void Video_DX9::pop_world_stack() {
   get_matrix_stack()->Pop();
   m_d3d_device->SetTransform(D3DTS_WORLD, m_matrix_stack->GetTop());
 }
 /** \brief Project a real-world coordinate.
  *
  * \param rpos Real world coordinate position.
  * \return 2D pixel position.
  */
 math::vec2i project(const math::vec3f &rpos) const
 {
   math::vec4f tpos(rpos.x(), rpos.y(), rpos.z(), 1.0f);
   std::cout << "Projected position: " << get_matrix_stack() * tpos << std::endl;
   return this->convertTo2D(get_matrix_stack() * tpos);
 }
Пример #3
0
 void Video_DX9::push_world_stack() {
   get_matrix_stack()->Push();
 }