代码搜索结果

找到约 4,589 项符合 Camera 的代码

camera.cpp

#include "camera.h" #define ROUND(X) ((int)floor((X) + 0.5)) #define COLOR(X) ((unsigned char)max(0, min(255, ROUND((X)*255.0)))) void Camera::status(ostream &myOut, long currentRay, int percen

camera.cpp

#include #include #include "Camera.h" // 构造函数 Camera::Camera() { D3DXVECTOR3 eye(-350.0f,450.0f,0.0f); D3DXVECTOR3 lookat(0.0f,0.0f,0.0f); D3DXVECTOR3 up(0.0f,1.0f,0.0f

camera.h

#ifndef _CAMERA_H_ #define _CAMERA_H_ #include #include /** * 完整的摄像头的类,以后可以直接用 */ class Camera { D3DXVECTOR3 m_vEye; /// 摄像头位置 D3DXVECTOR3 m_vLookat; /// 物体位置

camera.cpp

////////////////////////////////////////////////////////////////////////////////////////////////// // // File: camera.cpp // // Author: Frank Luna (C) All Rights Reserved // // System: AMD Ath

camera.h

////////////////////////////////////////////////////////////////////////////////////////////////// // // File: camera.h // // Author: Frank Luna (C) All Rights Reserved // // System: AMD Athlo

camera.cpp

#include "camera.h" Camera::Camera() { _cameraType = AIRCRAFT; _pos = D3DXVECTOR3(0.0f, 0.0f, 0.0f); _right = D3DXVECTOR3(1.0f, 0.0f, 0.0f); _up = D3DXVECTOR3(0.0f, 1.0f, 0.0f); _

camera.h

////////////////////////////////////////////////////////////////////////////////////////////////// // // File: camera.h // // Author: Frank Luna (C) All Rights Reserved // // System: AMD Athlo

camera.cpp

// camera.cpp: implementation of the camera class. // ////////////////////////////////////////////////////////////////////// #include "camera.h" ///////////////////////////////////////////////

camera.cpp

// camera.cpp: implementation of the camera class. // ////////////////////////////////////////////////////////////////////// #include "camera.h" ///////////////////////////////////////////////

camera.cpp

#include "camera.h" void Camera::Normalise(XYZ *p) { float length; length = (float) sqrt(p->x * p->x + p->y * p->y + p->z * p->z); if (length != 0) { p->x /= length; p->y /= length;