UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ui_node_geoscape.h File Reference
#include "../ui_nodes.h"
#include "ui_node_abstractnode.h"
#include "../../cl_shared.h"

Go to the source code of this file.

Data Structures

class  uiGeoscapeNode
 
struct  mapExtraData_s
 

Macros

#define UI_MAPEXTRADATA_TYPE   mapExtraData_t
 
#define UI_MAPEXTRADATA(node)   UI_EXTRADATA(node, UI_MAPEXTRADATA_TYPE)
 
#define UI_MAPEXTRADATACONST(node)   UI_EXTRADATACONST(node, UI_MAPEXTRADATA_TYPE)
 
#define DAN_WIDTH   2048
 
#define DAN_HEIGHT   1024
 
#define STANDARD_3D_ZOOM   40.0f
 Typical zoom to use on the 3D geoscape to use same zoom values for both 2D and 3D geoscape. More...
 
#define EARTH_RADIUS   8192.0f
 
#define MOON_RADIUS   1024.0f
 
#define SUN_RADIUS   1024.0f
 
#define GLOBE_RADIUS   EARTH_RADIUS * (UI_MAPEXTRADATACONST(node).zoom / STANDARD_3D_ZOOM)
 radius of the globe in screen coordinates More...
 

Typedefs

typedef struct mapExtraData_s mapExtraData_t
 

Functions

void UI_RegisterGeoscapeNode (uiBehaviour_t *behaviour)
 

Macro Definition Documentation

#define DAN_HEIGHT   1024
#define DAN_WIDTH   2048
#define EARTH_RADIUS   8192.0f

Definition at line 64 of file ui_node_geoscape.h.

#define GLOBE_RADIUS   EARTH_RADIUS * (UI_MAPEXTRADATACONST(node).zoom / STANDARD_3D_ZOOM)

radius of the globe in screen coordinates

Definition at line 69 of file ui_node_geoscape.h.

Referenced by GEO_3DMapToScreen(), GEO_Draw3DMarkerIfVisible(), and uiGeoscapeNode::screenTo3DMap().

#define MOON_RADIUS   1024.0f

Definition at line 65 of file ui_node_geoscape.h.

#define STANDARD_3D_ZOOM   40.0f

Typical zoom to use on the 3D geoscape to use same zoom values for both 2D and 3D geoscape.

Note
Used to convert openGL coordinates of the sphere into screen coordinates
See also
GLOBE_RADIUS

Definition at line 62 of file ui_node_geoscape.h.

#define SUN_RADIUS   1024.0f

Definition at line 66 of file ui_node_geoscape.h.

#define UI_MAPEXTRADATA_TYPE   mapExtraData_t

Definition at line 51 of file ui_node_geoscape.h.

Typedef Documentation

Function Documentation