2019-07-19 21:55:17 +02:00
|
|
|
#ifndef FENG_H
|
|
|
|
#define FENG_H
|
|
|
|
|
2019-07-22 19:17:16 +02:00
|
|
|
|
|
|
|
|
2019-07-21 20:14:54 +02:00
|
|
|
#include "coord.h"
|
|
|
|
#include "zbuffer.h"
|
2019-07-19 21:55:17 +02:00
|
|
|
|
2019-07-21 17:21:08 +02:00
|
|
|
extern double FE_dh,FE_dv,FE_roulis;
|
2019-07-21 20:14:54 +02:00
|
|
|
extern FE_position FE_user;
|
2019-07-19 21:55:17 +02:00
|
|
|
|
2019-07-22 16:45:59 +02:00
|
|
|
/*** FE_new_frame()
|
|
|
|
* This function displays las frame content and prepares the next frame
|
|
|
|
* Then, you have to use this in that order :
|
|
|
|
* while (1) {
|
|
|
|
* FE_new_frame()
|
|
|
|
* calculating...
|
|
|
|
* displaying model
|
|
|
|
* post rendering functions
|
|
|
|
* }
|
|
|
|
**/
|
2019-07-21 20:14:54 +02:00
|
|
|
void FE_new_frame(void); // calls move function
|
2019-07-22 16:45:59 +02:00
|
|
|
|
|
|
|
/** FE_get_fps_current()
|
|
|
|
* return a fps number based on the last frame
|
|
|
|
**/
|
2019-07-22 16:28:59 +02:00
|
|
|
unsigned int FE_get_fps_current(void);
|
2019-07-22 16:45:59 +02:00
|
|
|
|
|
|
|
/** FE_get_fps_min()
|
|
|
|
* return minimal fps number since the addin started
|
|
|
|
**/
|
2019-07-22 16:28:59 +02:00
|
|
|
unsigned int FE_get_fps_min(void);
|
2019-07-22 16:45:59 +02:00
|
|
|
|
|
|
|
/** FE_get_fps_max()
|
|
|
|
* return maximal fps number since the addin started
|
|
|
|
**/
|
2019-07-22 16:28:59 +02:00
|
|
|
unsigned int FE_get_fps_max(void);
|
2019-07-22 16:45:59 +02:00
|
|
|
|
|
|
|
/** FE_get_fps_history()
|
|
|
|
* returns minimal, current and maximal fps number since the addin started
|
|
|
|
* the type is a char* and the fps are set using its format : min/current/max
|
|
|
|
**/
|
|
|
|
char* FE_get_fps_history(void);
|
2019-07-20 16:47:37 +02:00
|
|
|
|
2019-07-19 21:55:17 +02:00
|
|
|
|
|
|
|
#endif
|