#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. | |
(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.
| enum eCameraType |
| DLLFUNC void camera_add | ( | int | type | ) |
Add a camera to the end of the array.
| type | Type of camera to add (see eCameraType). |
| DLLFUNC void camera_insert | ( | int | type, | |
| int | n | |||
| ) |
Insert a camera into the array.
| 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.
| ang | New camera rotation. |
| DLLFUNC void camera_set_target_ent | ( | ENTITY * | pEnt | ) |
Set an entity for the camera to follow/focus on.
| 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.
| 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.
| vec | Vector used as target. |
| DLLFUNC void camera_set_vec | ( | VECTOR * | vec | ) |
Set the location of the camera.
| vec | New camera location. |
| DLLFUNC void camera_update | ( | ) |
Update the current camera.
1.5.4