C:/Documents and Settings/slap/My Documents/Visual Studio 2005/Projects/Template7/template7/camera.h File Reference

#include "stdafx.h"
#include "adll.h"
#include "xml.h"

Enumerations

enum  eCameraType { , kCamFirst = 1, kCamThird = 2, kCamOrbit = 3, kCamFree = 4 }
 Camera types. More...

Functions

DLLFUNC void camera_update ()
 Update the current camera.
Add/Remove functions
DLLFUNC void camera_add (int type)
 Add a camera to the end of the array.
DLLFUNC void camera_insert (int type, int n)
 Insert a camera into the array.
DLLFUNC void camera_remove ()
 Remove the current camera.
Selection functions
DLLFUNC void camera_next ()
 Go to the next valid camera (loop).
DLLFUNC void camera_prev ()
 Go to the prev valid camera (loop).
Set functions
DLLFUNC void camera_set_target_ent (ENTITY *pEnt)
 Set an entity for the camera to follow/focus on.
DLLFUNC void camera_set_target_offset (ENTITY *pEnt, float x, float y, float z)
 Set an entity for the camera to follow with an additional offset.
DLLFUNC void camera_set_target_vec (VECTOR *vec)
 Set a vector for the camera to follow/focus on.
DLLFUNC void camera_set_vec (VECTOR *vec)
 Set the location of the camera.
DLLFUNC void camera_set_ang (ANGLE *ang)
 Set the rotation of the camera.

Detailed Description

Camera functions designed to be called from Lite-C code.

(c) 2007-2008 oP group Germany GbR. All rights reserved.
This source code is provided "as is" with no warranty and must not be distributed without written permission.

Author:
Doug Poston
Version:
1.3
Date:
12/28/2007

Enumeration Type Documentation

enum eCameraType

Camera types.

Note:
Set to values because Lite-C doesn't do enums
Enumerator:
kCamFirst  First-person camera.
kCamThird  Third-person camera.
kCamOrbit  Orbit camera.
kCamFree  Free-roming camera.


Function Documentation

DLLFUNC void camera_add ( int  type  ) 

Add a camera to the end of the array.

Parameters:
type Type of camera to add (see eCameraType).

DLLFUNC void camera_insert ( int  type,
int  n 
)

Insert a camera into the array.

Parameters:
type Type of camera to add (see eCameraType).
n Location in the array.

DLLFUNC void camera_set_ang ( ANGLE *  ang  ) 

Set the rotation of the camera.

Parameters:
ang New camera rotation.

DLLFUNC void camera_set_target_ent ( ENTITY *  pEnt  ) 

Set an entity for the camera to follow/focus on.

Parameters:
pEnt Pointer to the ENTITY.

DLLFUNC void camera_set_target_offset ( ENTITY *  pEnt,
float  x,
float  y,
float  z 
)

Set an entity for the camera to follow with an additional offset.

Parameters:
pEnt Pointer to the ENTITY.
x X value.
y Y value.
z Z value.

DLLFUNC void camera_set_target_vec ( VECTOR *  vec  ) 

Set a vector for the camera to follow/focus on.

Parameters:
vec Vector used as target.

DLLFUNC void camera_set_vec ( VECTOR *  vec  ) 

Set the location of the camera.

Parameters:
vec New camera location.

DLLFUNC void camera_update (  ) 

Update the current camera.

Note:
Call this once per frame.


Generated on Fri Dec 28 12:55:06 2007 for template7 by  doxygen 1.5.4