zenilib: zenilib/jni/external/zenilib/zeni/Zeni/Define.h File Reference

zenilib 0.5.3.0

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Macros
Define.h File Reference

Go to the source code of this file.

## Macros

#define | ALIKENESS_THRESHOLD (0.95f)
#define | CLOSENESS_THRESHOLD (0.001f)
#define | CLOSENESS_THRESHOLD_SQUARED (0.00001f)
#define | END_OF_TIME (42)
#define | FAILSAFE_SCREEN_HEIGHT (480)
#define | FAILSAFE_SCREEN_WIDTH (640)
#define | INFINTESSIMAL(x) (fabs(x) < 0.001f)
#define | INFINTESSIMAL_SQUARED(x) ((x) < 0.0001f)
#define | MAXIMUM_VIRTUAL_SCREEN_HEIGHT (9600.0f)
#define | MINIMUM_SCREEN_HEIGHT (200)
#define | MINIMUM_SCREEN_WIDTH (320)
#define | MINIMUM_VIRTUAL_SCREEN_HEIGHT (240.0f)
#define | NASTY_MAX_RATE (2.0f)
#define | NASTY_MIN_RATE (0.5f)
#define | NASTY_RATE_CUTOFF (10)
#define | NASTY_SOUND_SOURCE_CAP (24lu)
#define | NASTY_ZERO_STEP_FREQUENCY (10)
#define | NO_ERROR_STATUS (1)
#define | OTHER_ERROR_STATUS (-1)
#define | SDL_DEFAULT_REPEAT_DELAY 500
#define | SDL_DEFAULT_REPEAT_INTERVAL 30
#define | STD_ERROR_STATUS (0x253322)
#define | ZENI_2D_FAR (1.0f)
#define | ZENI_2D_NEAR (-1.0f)
#define | ZENI_COLLISION_EPSILON (0.0001f)
#define | ZENI_DEFAULT_CAMERA_FAR_CLIP (1000.0f)
#define | ZENI_DEFAULT_CAMERA_FOV (Global::pi / 2)
#define | ZENI_DEFAULT_CAMERA_NEAR_CLIP (10.0f)
#define | ZENI_DEFAULT_CAMERA_ORIENTATION Quaternion()
#define | ZENI_DEFAULT_CAMERA_POSITION (Point3f(0.0f, 0.0f, 0.0f))
#define | ZENI_DEFAULT_CAMERA_TUNNEL_VISION (1.0f)
#define | ZENI_DEFAULT_CHUNK_SETS (64u)
#define | ZENI_DEFAULT_CHUNK_SIZE (64u)
#define | ZENI_DEFAULT_FOG_COLOR (Color(1.0f, 1.0f, 1.0f, 1.0f))
#define | ZENI_DEFAULT_FOG_DENSITY (0.01f)
#define | ZENI_DEFAULT_FOG_END (1000.0f)
#define | ZENI_DEFAULT_FOG_START (10.0f)
#define | ZENI_DEFAULT_FOG_TYPE (FOG_EXP)
#define | ZENI_DEFAULT_FORWARD_VECTOR (Vector3f(1.0f, 0.0f, 0.0f))
#define | ZENI_DEFAULT_GAIN (1.0f)
#define | ZENI_DEFAULT_II_JOYBALL_MAX (100)
#define | ZENI_DEFAULT_II_JOYBALL_MIN (1)
#define | ZENI_DEFAULT_II_JOYSTICK_MAX (1.0f)
#define | ZENI_DEFAULT_II_JOYSTICK_MIN (0.1f)
#define | ZENI_DEFAULT_II_MOUSE_MAX (100)
#define | ZENI_DEFAULT_II_MOUSE_MIN (1)
#define | ZENI_DEFAULT_JUSTIFY (ZENI_LEFT)
#define | ZENI_DEFAULT_LEFT_VECTOR (Vector3f(0.0f, 1.0f, 0.0f) /* UP % FORWARD */)
#define | ZENI_DEFAULT_MATERIAL_DIFFUSE (Color(1.0f, 1.0f, 1.0f, 1.0f))
#define | ZENI_DEFAULT_MATERIAL_EMISSIVE (Color(1.0f, 0.0f, 0.0f, 0.0f))
#define | ZENI_DEFAULT_MATERIAL_POWER (1.0f)
#define | ZENI_DEFAULT_MATERIAL_SPECULAR (Color(1.0f, 0.2f, 0.2f, 0.2f))
#define | ZENI_DEFAULT_MAX_SOUND_DISTANCE (1000.0f)
#define | ZENI_DEFAULT_MUSIC_PRIORITY (4096)
#define | ZENI_DEFAULT_PITCH (1.0f)
#define | ZENI_DEFAULT_REFERENCE_DISTANCE (10.0f)
#define | ZENI_DEFAULT_ROLLOFF (1.0f)
#define | ZENI_DEFAULT_SLIDER_POSITION (0.5f)
#define | ZENI_DEFAULT_SOUND_PRIORITY (1024)
#define | ZENI_DEFAULT_TAB_SPACES (5)
#define | ZENI_DEFAULT_TEXTBOX_EDITABLE (false)
#define | ZENI_DEFAULT_UP_VECTOR (Vector3f(0.0f, 0.0f, 1.0f))
#define | ZENI_DIFFUSE_TO_SPECULAR(d) (Color(d.a, 0.5f * d.r + 0.5f, 0.5f * d.g + 0.5f, 0.5f * d.b + 0.5f))
#define | ZENI_ERROR_STATUS (0x32202)
#define | ZENI_MAX_TEXTURE_HEIGHT (2048)
#define | ZENI_MAX_TEXTURE_WIDTH (2048)
#define | ZENI_REVERT_TIMEOUT 15
#define | ZENI_SPRINTF_BUFFER_SIZE (64)
#define | ZENI_STANDARD_DPI (96.0f)
#define | ZENI_TEXT_CURSOR_WIDTH (0.05f)

## Macro Definition Documentation

#define ALIKENESS_THRESHOLD (0.95f)

Definition at line 120 of file Define.h.

Referenced by Zeni::align_similar_normals().

#define CLOSENESS_THRESHOLD (0.001f)

Definition at line 121 of file Define.h.

Referenced by Zeni::align_similar_normals().

#define CLOSENESS_THRESHOLD_SQUARED (0.00001f)

Definition at line 119 of file Define.h.

Referenced by Zeni::align_similar_normals().

#define END_OF_TIME (42)

Definition at line 133 of file Define.h.

Referenced by Zeni::Collision::nearest_point().

#define FAILSAFE_SCREEN_HEIGHT (480)

Definition at line 125 of file Define.h.

Referenced by Zeni::Window::set_failsafe_defaults().

#define FAILSAFE_SCREEN_WIDTH (640)

Definition at line 124 of file Define.h.

Referenced by Zeni::Window::set_failsafe_defaults().

#define INFINTESSIMAL | ( |  | x | ) | (fabs(x) < 0.001f)

Definition at line 134 of file Define.h.

Referenced by Zeni::Quaternion::Forward_Up(), Zeni::Vector2f::normalize(), Zeni::Quaternion::normalize(), Zeni::Vector3f::normalize(), Zeni::Vector2f::normalized(), Zeni::Quaternion::normalized(), Zeni::Vector3f::normalized(), and Zeni::Quaternion::Vector3f_to_Vector3f().

#define INFINTESSIMAL_SQUARED | ( |  | x | ) | ((x) < 0.0001f)

Definition at line 135 of file Define.h.

#define MAXIMUM_VIRTUAL_SCREEN_HEIGHT (9600.0f)

Definition at line 86 of file Define.h.

#define MINIMUM_SCREEN_HEIGHT (200)

Definition at line 127 of file Define.h.

Referenced by Zeni::Window::Window().

#define MINIMUM_SCREEN_WIDTH (320)

Definition at line 126 of file Define.h.

Referenced by Zeni::Window::Window().

#define MINIMUM_VIRTUAL_SCREEN_HEIGHT (240.0f)

Definition at line 85 of file Define.h.

#define NASTY_MAX_RATE (2.0f)

Definition at line 90 of file Define.h.

Referenced by Zeni::Game::run().

#define NASTY_MIN_RATE (0.5f)

Definition at line 89 of file Define.h.

Referenced by Zeni::Game::run().

#define NASTY_RATE_CUTOFF (10)

Definition at line 91 of file Define.h.

Referenced by Zeni::Game::run().

#define NASTY_SOUND_SOURCE_CAP (24lu)

Definition at line 130 of file Define.h.

Referenced by Zeni::Sound_Source_Pool::update().

#define NASTY_ZERO_STEP_FREQUENCY (10)

Definition at line 92 of file Define.h.

Referenced by Zeni::Game::run().

#define NO_ERROR_STATUS (1)

Definition at line 113 of file Define.h.

#define OTHER_ERROR_STATUS (-1)

Definition at line 116 of file Define.h.

#define SDL_DEFAULT_REPEAT_DELAY 500

Definition at line 22 of file Define.h.

#define SDL_DEFAULT_REPEAT_INTERVAL 30

Definition at line 23 of file Define.h.

#define STD_ERROR_STATUS (0x253322)

Definition at line 115 of file Define.h.

#define ZENI_2D_FAR (1.0f)

Definition at line 73 of file Define.h.

Referenced by Zeni::Video::set_2d_view().

#define ZENI_2D_NEAR (-1.0f)

Definition at line 72 of file Define.h.

Referenced by Zeni::Video::set_2d_view().

#define ZENI_COLLISION_EPSILON (0.0001f)

Definition at line 79 of file Define.h.

Referenced by Zeni::Collision::Sphere::intersects(), Zeni::Collision::Plane::intersects(), Zeni::Collision::Line_Segment::intersects(), Zeni::Collision::Ray::intersects(), Zeni::Collision::Line::intersects(), Zeni::Collision::Infinite_Cylinder::intersects(), Zeni::Collision::Capsule::intersects(), Zeni::Collision::Parallelepiped::intersects(), Zeni::Collision::nearest_point(), and Zeni::Collision::Plane::shortest_distance().

#define ZENI_DEFAULT_CAMERA_FAR_CLIP (1000.0f)

Definition at line 29 of file Define.h.

#define ZENI_DEFAULT_CAMERA_FOV (Global::pi / 2)

Definition at line 30 of file Define.h.

#define ZENI_DEFAULT_CAMERA_NEAR_CLIP (10.0f)

Definition at line 28 of file Define.h.

#define ZENI_DEFAULT_CAMERA_ORIENTATION Quaternion()

Definition at line 27 of file Define.h.

#define ZENI_DEFAULT_CAMERA_POSITION (Point3f(0.0f, 0.0f, 0.0f))

Definition at line 26 of file Define.h.

#define ZENI_DEFAULT_CAMERA_TUNNEL_VISION (1.0f)

Definition at line 31 of file Define.h.

#define ZENI_DEFAULT_CHUNK_SETS (64u)

Definition at line 51 of file Define.h.

#define ZENI_DEFAULT_CHUNK_SIZE (64u)

Definition at line 50 of file Define.h.

#define ZENI_DEFAULT_FOG_COLOR (Color(1.0f, 1.0f, 1.0f, 1.0f))

Definition at line 37 of file Define.h.

#define ZENI_DEFAULT_FOG_DENSITY (0.01f)

Definition at line 38 of file Define.h.

#define ZENI_DEFAULT_FOG_END (1000.0f)

Definition at line 41 of file Define.h.

#define ZENI_DEFAULT_FOG_START (10.0f)

Definition at line 40 of file Define.h.

#define ZENI_DEFAULT_FOG_TYPE (FOG_EXP)

Definition at line 39 of file Define.h.

#define ZENI_DEFAULT_FORWARD_VECTOR (Vector3f(1.0f, 0.0f, 0.0f))

Definition at line 32 of file Define.h.

Referenced by Zeni::Camera::get_forward(), Zeni::Sound_Renderer::get_listener_forward_and_up(), and Zeni::Camera::look_at().

#define ZENI_DEFAULT_GAIN (1.0f)

Definition at line 55 of file Define.h.

Referenced by Zeni::Sound::get_BGM_gain(), Zeni::Sound_Stream_AL::get_gain(), and Zeni::Sound_Source_HW::get_gain().

#define ZENI_DEFAULT_II_JOYBALL_MAX (100)

Definition at line 96 of file Define.h.

#define ZENI_DEFAULT_II_JOYBALL_MIN (1)

Definition at line 95 of file Define.h.

#define ZENI_DEFAULT_II_JOYSTICK_MAX (1.0f)

Definition at line 98 of file Define.h.

#define ZENI_DEFAULT_II_JOYSTICK_MIN (0.1f)

Definition at line 97 of file Define.h.

#define ZENI_DEFAULT_II_MOUSE_MAX (100)

Definition at line 100 of file Define.h.

#define ZENI_DEFAULT_II_MOUSE_MIN (1)

Definition at line 99 of file Define.h.

#define ZENI_DEFAULT_JUSTIFY (ZENI_LEFT)

Definition at line 65 of file Define.h.

#define ZENI_DEFAULT_LEFT_VECTOR (Vector3f(0.0f, 1.0f, 0.0f) /* UP % FORWARD */)

Definition at line 34 of file Define.h.

Referenced by Zeni::Camera::get_left().

#define ZENI_DEFAULT_MATERIAL_DIFFUSE (Color(1.0f, 1.0f, 1.0f, 1.0f))

Definition at line 44 of file Define.h.

#define ZENI_DEFAULT_MATERIAL_EMISSIVE (Color(1.0f, 0.0f, 0.0f, 0.0f))

Definition at line 46 of file Define.h.

#define ZENI_DEFAULT_MATERIAL_POWER (1.0f)

Definition at line 47 of file Define.h.

#define ZENI_DEFAULT_MATERIAL_SPECULAR (Color(1.0f, 0.2f, 0.2f, 0.2f))

Definition at line 45 of file Define.h.

#define ZENI_DEFAULT_MAX_SOUND_DISTANCE (1000.0f)

Definition at line 57 of file Define.h.

Referenced by Zeni::Sound_Stream_AL::get_max_distance(), and Zeni::Sound_Source_HW::get_max_distance().

#define ZENI_DEFAULT_MUSIC_PRIORITY (4096)

Definition at line 60 of file Define.h.

#define ZENI_DEFAULT_PITCH (1.0f)

Definition at line 54 of file Define.h.

Referenced by Zeni::Sound::get_BGM_pitch(), Zeni::Sound_Stream_AL::get_pitch(), and Zeni::Sound_Source_HW::get_pitch().

#define ZENI_DEFAULT_REFERENCE_DISTANCE (10.0f)

Definition at line 56 of file Define.h.

Referenced by Zeni::Sound_Stream_AL::get_reference_distance(), and Zeni::Sound_Source_HW::get_reference_distance().

#define ZENI_DEFAULT_ROLLOFF (1.0f)

Definition at line 58 of file Define.h.

Referenced by Zeni::Sound_Stream_AL::get_rolloff(), and Zeni::Sound_Source_HW::get_rolloff().

#define ZENI_DEFAULT_SLIDER_POSITION (0.5f)

Definition at line 63 of file Define.h.

#define ZENI_DEFAULT_SOUND_PRIORITY (1024)

Definition at line 59 of file Define.h.

#define ZENI_DEFAULT_TAB_SPACES (5)

Definition at line 64 of file Define.h.

#define ZENI_DEFAULT_TEXTBOX_EDITABLE (false)

Definition at line 66 of file Define.h.

#define ZENI_DEFAULT_UP_VECTOR (Vector3f(0.0f, 0.0f, 1.0f))

Definition at line 33 of file Define.h.

Referenced by Zeni::Sound_Renderer::get_listener_forward_and_up(), Zeni::Camera::get_up(), Zeni::Camera::look_at(), and Zeni::Camera::turn_left_xy().

#define ZENI_DIFFUSE_TO_SPECULAR | ( |  | d | ) | (Color(d.a, 0.5f * d.r + 0.5f, 0.5f * d.g + 0.5f, 0.5f * d.b + 0.5f))

Definition at line 103 of file Define.h.

#define ZENI_ERROR_STATUS (0x32202)

Definition at line 114 of file Define.h.

#define ZENI_MAX_TEXTURE_HEIGHT (2048)

Definition at line 110 of file Define.h.

#define ZENI_MAX_TEXTURE_WIDTH (2048)

Definition at line 109 of file Define.h.

#define ZENI_REVERT_TIMEOUT 15

Definition at line 82 of file Define.h.

#define ZENI_SPRINTF_BUFFER_SIZE (64)

Definition at line 106 of file Define.h.

Referenced by Zeni::dtoa(), Zeni::ftoa(), Zeni::itoa(), Zeni::ldtoa(), Zeni::lltoa(), Zeni::ltoa(), Zeni::stoa(), Zeni::uitoa(), Zeni::ulltoa(), Zeni::ultoa(), and Zeni::ustoa().

#define ZENI_STANDARD_DPI (96.0f)

Definition at line 76 of file Define.h.

Referenced by Zeni::Video_DX9::get_dpi_ratio().

#define ZENI_TEXT_CURSOR_WIDTH (0.05f)

Definition at line 69 of file Define.h.

Referenced by Zeni::Text_Box::render_impl().