mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-12-01 11:56:58 -05:00
40 lines
744 B
C
40 lines
744 B
C
|
/*
|
||
|
* Copyright 2013 Dario Manesku. All rights reserved.
|
||
|
* License: http://www.opensource.org/licenses/BSD-2-Clause
|
||
|
*/
|
||
|
|
||
|
#define CAMERA_KEY_UP UINT8_C(0x1)
|
||
|
#define CAMERA_KEY_DOWN UINT8_C(0x2)
|
||
|
#define CAMERA_KEY_LEFT UINT8_C(0x4)
|
||
|
#define CAMERA_KEY_RIGHT UINT8_C(0x8)
|
||
|
|
||
|
///
|
||
|
void cameraCreate();
|
||
|
|
||
|
///
|
||
|
void cameraDestroy();
|
||
|
|
||
|
///
|
||
|
void cameraSetPosition(float* _pos);
|
||
|
|
||
|
///
|
||
|
void cameraSetHorizontalAngle(float _horizontalAngle);
|
||
|
|
||
|
///
|
||
|
void cameraSetVerticalAngle(float _verticalAngle);
|
||
|
|
||
|
///
|
||
|
void cameraSetKeyState(uint8_t _key, bool _down);
|
||
|
|
||
|
///
|
||
|
void cameraGetViewMtx(float* _viewMtx);
|
||
|
|
||
|
///
|
||
|
void cameraGetPosition(float* _pos);
|
||
|
|
||
|
///
|
||
|
void cameraGetAt(float* _at);
|
||
|
|
||
|
///
|
||
|
void cameraUpdate(float _deltaTime, uint32_t _mx, uint32_t _my, bool _move);
|