代码搜索结果
找到约 4,589 项符合
Camera 的代码
cmucamlib-demo.ic
#use "cmucamlib.ic"
/*
This program tests the camera and the color library. To begin,
point the robot at a white object so that it can adjust its white
balance and gain and then clamp, or fix, th
camera.h
/*************************************************************************
* This head file is for 3D scene script. We will define a scene class *
* with some light and camera and models.
camera.h
/*************************************************************************
* This head file is for 3D scene script. We will define a scene class *
* with some light and camera and models.
camera.cpp
#include "stdafx.h"
#include
#include
#include "camera.h"
//-------------------------------------------------------------
// For Camera class
//-----------------------
camera.h
#include "graph.h"
#ifndef TAG_CAMERA
#define TAG_CAMERA
#define MOVE_LEFT 1
#define MOVE_RIGHT 2
#define MOVE_UP 3
#define MOVE_DOWN 4
#define ROTATE_VEER 5
#
camera.h
#ifndef __CAMERA_H
#define __CAMERA_H
#define WIN32_LEAN_AND_MEAN
#define WIN32_EXTRA_LEAN
#include
#include
#include
#include "vector.h"
class COb
rocket.h
#ifndef __ROCKET_H
#define __ROCKET_H
#include "explosion.h"
#include "terrain.h"
#include "player.h"
#include "camera.h"
#include "object.h"
#include "vector.h"
class CRocket : public C
player.cpp
#include "player.h"
void CPlayer::FireWeapon()
{
CRocket *newRocket = new CRocket;
newRocket->pitch = camera->pitch;
newRocket->direction = direction;
newRocket->position = position;
n
camera.cpp
#include "camera.h"
#include "object.h"
CCamera::CCamera()
{
position = CVector(0.0, 0.0, 0.0);
lookAt = CVector(0.0, 0.0, 1.0);
forward = lookAt;
up = CVector(0.0, 1.0, 0.0);
right =
player.h
#ifndef __PLAYER_H
#define __PLAYER_H
#include
#include "audiosystem.h"
#include "sod.h"
#include "ogro.h"
#include "rocket.h"
#include "camera.h"
#include "object.h"
#includ