1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-09-18 16:32:32 +02:00
openrw/rwcore/rw/types.hpp

32 lines
737 B
C++
Raw Normal View History

#ifndef _LIBRW_TYPES_HPP_
#define _LIBRW_TYPES_HPP_
#include <cstdint>
2016-09-09 22:13:21 +02:00
#include <map>
#include <memory>
2018-06-21 16:49:05 +02:00
#include <rw/debug.hpp>
2016-09-09 22:13:21 +02:00
#include <string>
2013-08-11 22:50:29 +02:00
2015-04-12 20:47:47 +02:00
#define RW_USING(feature) 1 == feature
2014-06-13 22:54:17 +02:00
#define NO_WATER_INDEX 48
#define WATER_LQ_DATA_SIZE 64
#define WATER_HQ_DATA_SIZE 128
#define WATER_WORLD_SIZE 4096.f
#define WATER_HQ_DISTANCE 128.f
2014-06-14 19:48:14 +02:00
#define WATER_SCALE 0.05f
#define WATER_HEIGHT 0.5f
#define WATER_BUOYANCY_K 1500.f
#define WATER_BUOYANCY_C 1000.f
2014-06-13 22:54:17 +02:00
/**
* These control the size of grid that is applied to
* AI Graph and culling.
*/
#define WORLD_GRID_SIZE (4000l)
#define WORLD_CELL_SIZE (100l)
2016-09-09 22:13:21 +02:00
#define WORLD_GRID_WIDTH (WORLD_GRID_SIZE / WORLD_CELL_SIZE)
#define WORLD_GRID_CELLS (WORLD_GRID_WIDTH * WORLD_GRID_WIDTH)
2013-08-11 22:50:29 +02:00
#endif