摄像漫游(摄像机类).docVIP

  • 6
  • 0
  • 约3.32千字
  • 约 7页
  • 2017-08-15 发布于重庆
  • 举报
摄像漫游(摄像机类).doc

摄像漫游的一个重要的类,摄像机类的定义如下 头文件: Camera.h #includestdafx.h #includeVector.h class Camera { public: Camer(); ~Camer(); /**获取摄像机各种状态的方法*/ Vector3 getPosition() { return m_Position; } Vector3 getView() { return m_View; } Vector3 getUpVector() { return m_UpVector; } float getSpeed() { return m_Speed; } /**设置速度*/ void setSpeed(float speed) { m_Speed = speed; } /**设置摄像机位置*/ void setCamera(float positionX, float positionY, float positionZ, float viewX, float viewY, float viewZ, float UpVectorX, float UpVectorY, float UpVectorZ) /**旋转摄像机方向*/ void rotateView(float angle, float X, float Y, fl

文档评论(0)

1亿VIP精品文档

相关文档