Michaël Lemaire
b46060f3c4
git-svn-id: https://subversion.assembla.com/svn/thunderk/paysages@500 b1fd45b6-86a6-48da-8261-f70d1f35bdcc
42 lines
1.6 KiB
C
42 lines
1.6 KiB
C
#ifndef _PAYSAGES_CAMERA_H_
|
|
#define _PAYSAGES_CAMERA_H_
|
|
|
|
#include "tools/pack.h"
|
|
#include "tools/euclid.h"
|
|
#include "renderer.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void cameraSave(PackStream* stream, CameraDefinition* camera);
|
|
void cameraLoad(PackStream* stream, CameraDefinition* camera);
|
|
|
|
CameraDefinition cameraCreateDefinition();
|
|
void cameraDeleteDefinition(CameraDefinition* definition);
|
|
void cameraCopyDefinition(CameraDefinition* source, CameraDefinition* destination);
|
|
void cameraValidateDefinition(CameraDefinition* definition, int check_above);
|
|
|
|
void cameraSetLocation(CameraDefinition* camera, double x, double y, double z);
|
|
void cameraSetTarget(CameraDefinition* camera, double x, double y, double z);
|
|
void cameraSetRoll(CameraDefinition* camera, double angle);
|
|
|
|
void cameraStrafeForward(CameraDefinition* camera, double value);
|
|
void cameraStrafeRight(CameraDefinition* camera, double value);
|
|
void cameraStrafeUp(CameraDefinition* camera, double value);
|
|
void cameraRotateYaw(CameraDefinition* camera, double value);
|
|
void cameraRotatePitch(CameraDefinition* camera, double value);
|
|
void cameraRotateRoll(CameraDefinition* camera, double value);
|
|
|
|
void cameraSetRenderSize(CameraDefinition* camera, int width, int height);
|
|
|
|
Vector3 cameraProject(CameraDefinition* camera, Renderer* renderer, Vector3 point);
|
|
Vector3 cameraUnproject(CameraDefinition* camera, Renderer* renderer, Vector3 point);
|
|
/*void cameraPushOverlay(CameraDefinition* camera, Color col, f_RenderFragmentCallback callback);*/
|
|
int cameraIsBoxInView(CameraDefinition* camera, Vector3 center, double xsize, double ysize, double zsize);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|