Michaël Lemaire
e56489062a
git-svn-id: https://subversion.assembla.com/svn/thunderk/paysages@303 b1fd45b6-86a6-48da-8261-f70d1f35bdcc
44 lines
1.7 KiB
C
44 lines
1.7 KiB
C
#ifndef _PAYSAGES_CAMERA_H_
|
|
#define _PAYSAGES_CAMERA_H_
|
|
|
|
#include "shared/types.h"
|
|
#include "renderer.h"
|
|
#include "pack.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
void cameraInit();
|
|
void cameraQuit();
|
|
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 cameraProjectToFragment(CameraDefinition* camera, Renderer* renderer, double x, double y, double z, RenderFragment* result);
|
|
/*void cameraPushOverlay(CameraDefinition* camera, Color col, f_RenderFragmentCallback callback);*/
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|