Oolite 1.91.0.7646-241128-10e222e
|
import "OOCocoa.h"
import "HeadUpDisplay.h"
import "GameController.h"
import "ResourceManager.h"
import "PlayerEntity.h"
import "OOSunEntity.h"
import "OOPlanetEntity.h"
import "StationEntity.h"
import "OOVisualEffectEntity.h"
import "OOQuiriumCascadeEntity.h"
import "OOWaypointEntity.h"
import "Universe.h"
import "OOTrumble.h"
import "OOColor.h"
import "GuiDisplayGen.h"
import "OOTexture.h"
import "OOTextureSprite.h"
import "OOPolygonSprite.h"
import "OOCollectionExtractors.h"
import "OOEncodingConverter.h"
import "OOCrosshairs.h"
import "OOConstToString.h"
import "OOStringParsing.h"
import "OOJoystickManager.h"
import "OOJavaScriptEngine.h"
import "OOStringExpander.h"
Go to the source code of this file.
Classes | |
struct | CachedInfo |
category | HeadUpDisplay(Private) |
Macros | |
#define | ONE_SIXTEENTH 0.0625 |
#define | ONE_SIXTYFOURTH 0.015625 |
#define | DEFAULT_OVERALL_ALPHA 0.75 |
#define | GLYPH_SCALE_FACTOR 0.13 |
#define | IDENTIFY_SCANNER_LOLLIPOPS ( 0 && OOLITE_DEBUG) |
#define | NOT_DEFINED INFINITY |
#define | WIDGET_INFO 0 |
#define | WIDGET_CACHE 1 |
#define | WIDGET_SELECTOR 2 |
#define | WIDGET_SELECTOR_NAME 3 |
#define | DO_SET_COLOR(t, d) |
#define | SET_COLOR(d) |
#define | SET_COLOR_LOW(d) |
#define | SET_COLOR_MEDIUM(d) |
#define | SET_COLOR_HIGH(d) |
#define | SET_COLOR_CRITICAL(d) |
#define | SET_COLOR_SURROUND(d) |
Enumerations | |
enum | { kFontTextureOptions = kOOTextureMinFilterMipMap | kOOTextureMagFilterLinear | kOOTextureNoShrink | kOOTextureAlphaMask } |
Functions | |
OOINLINE float | useDefined (float val, float validVal) |
static void | DrawSpecialOval (GLfloat x, GLfloat y, GLfloat z, NSSize siz, GLfloat step, GLfloat *color4v) |
static void | SetGLColourFromInfo (NSDictionary *info, NSString *key, const GLfloat defaultColor[4], GLfloat alpha) |
static void | GetRGBAArrayFromInfo (NSDictionary *info, GLfloat ioColor[4]) |
static void | hudDrawIndicatorAt (GLfloat x, GLfloat y, GLfloat z, NSSize siz, GLfloat amount) |
static void | hudDrawMarkerAt (GLfloat x, GLfloat y, GLfloat z, NSSize siz, GLfloat amount) |
static void | hudDrawBarAt (GLfloat x, GLfloat y, GLfloat z, NSSize siz, GLfloat amount) |
static void | hudDrawSurroundAt (GLfloat x, GLfloat y, GLfloat z, NSSize siz) |
static void | hudDrawStatusIconAt (int x, int y, int z, NSSize siz) |
static void | hudDrawReticleOnTarget (Entity *target, PlayerEntity *player1, GLfloat z1, GLfloat alpha, BOOL reticleTargetSensitive, NSMutableDictionary *propertiesReticleTargetSensitive, BOOL colourFromScannerColour, BOOL showText, NSDictionary *info, NSMutableArray *reticleColors) |
static void | hudDrawWaypoint (OOWaypointEntity *waypoint, PlayerEntity *player1, GLfloat z1, GLfloat alpha, BOOL selected, GLfloat scale) |
static void | hudRotateViewpointForVirtualDepth (PlayerEntity *player1, Vector p1) |
static void | drawScannerGrid (GLfloat x, GLfloat y, GLfloat z, NSSize siz, int v_dir, GLfloat thickness, GLfloat zoom, BOOL nonlinear, BOOL minimalistic) |
static GLfloat | nonlinearScannerFunc (GLfloat distance, GLfloat zoom, GLfloat scale) |
static void | GLDrawNonlinearCascadeWeapon (GLfloat x, GLfloat y, GLfloat z, NSSize siz, Vector centre, GLfloat radius, GLfloat zoom, GLfloat alpha) |
Variables | |
static NSArray * | sCurrentDrawItem |
static OOTexture * | sFontTexture = nil |
static OOEncodingConverter * | sEncodingCoverter = nil |
static const GLfloat | red_color [4] = {1.0, 0.0, 0.0, 1.0} |
static const GLfloat | redplus_color [4] = {1.0, 0.0, 0.5, 1.0} |
static const GLfloat | yellow_color [4] = {1.0, 1.0, 0.0, 1.0} |
static const GLfloat | green_color [4] = {0.0, 1.0, 0.0, 1.0} |
static const GLfloat | darkgreen_color [4] = {0.0, 0.75, 0.0, 1.0} |
static const GLfloat | blue_color [4] = {0.0, 0.0, 1.0, 1.0} |
static const GLfloat | black_color [4] = {0.0, 0.0, 0.0, 1.0} |
static const GLfloat | lightgray_color [4] = {0.25, 0.25, 0.25, 1.0} |
static float | sGlyphWidths [256] |
static float | sF6KernGovt |
static float | sF6KernTL |
static BOOL | _compassUpdated |
static NSString *const | kDefaultMissileIconKey = @"oolite-default-missile-icon" |
static NSString *const | kDefaultMineIconKey = @"oolite-default-mine-icon" |
static const GLfloat | kOutlineWidth = 0.5f |
#define DEFAULT_OVERALL_ALPHA 0.75 |
Definition at line 55 of file HeadUpDisplay.m.
#define DO_SET_COLOR | ( | t, | |
d ) |
Definition at line 67 of file HeadUpDisplay.m.
#define GLYPH_SCALE_FACTOR 0.13 |
Definition at line 56 of file HeadUpDisplay.m.
Referenced by HeadUpDisplay::InitTextEngine(void), and HeadUpDisplay::OOStringWidthInEm.
#define IDENTIFY_SCANNER_LOLLIPOPS ( 0 && OOLITE_DEBUG) |
Definition at line 57 of file HeadUpDisplay.m.
#define NOT_DEFINED INFINITY |
Definition at line 60 of file HeadUpDisplay.m.
Referenced by useDefined().
#define ONE_SIXTEENTH 0.0625 |
Definition at line 53 of file HeadUpDisplay.m.
Referenced by HeadUpDisplay::drawCharacterQuad.
#define ONE_SIXTYFOURTH 0.015625 |
Definition at line 54 of file HeadUpDisplay.m.
#define SET_COLOR | ( | d | ) |
Definition at line 68 of file HeadUpDisplay.m.
#define SET_COLOR_CRITICAL | ( | d | ) |
Definition at line 72 of file HeadUpDisplay.m.
#define SET_COLOR_HIGH | ( | d | ) |
Definition at line 71 of file HeadUpDisplay.m.
#define SET_COLOR_LOW | ( | d | ) |
Definition at line 69 of file HeadUpDisplay.m.
#define SET_COLOR_MEDIUM | ( | d | ) |
Definition at line 70 of file HeadUpDisplay.m.
#define SET_COLOR_SURROUND | ( | d | ) |
Definition at line 73 of file HeadUpDisplay.m.
#define WIDGET_CACHE 1 |
Definition at line 62 of file HeadUpDisplay.m.
#define WIDGET_INFO 0 |
Definition at line 61 of file HeadUpDisplay.m.
#define WIDGET_SELECTOR 2 |
Definition at line 63 of file HeadUpDisplay.m.
#define WIDGET_SELECTOR_NAME 3 |
Definition at line 64 of file HeadUpDisplay.m.
anonymous enum |
Enumerator | |
---|---|
kFontTextureOptions |
Definition at line 112 of file HeadUpDisplay.m.
|
static |
|
static |
|
static |
Definition at line 4495 of file HeadUpDisplay.m.
References ALPHA_KEY, OOColor::colorWithDescription:, count, OOColor::getRed:green:blue:alpha:, and nil.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Referenced by HeadUpDisplay::hudDrawReticleOnTarget, and HeadUpDisplay::hudDrawWaypoint.
|
static |
|
static |
Definition at line 4475 of file HeadUpDisplay.m.
References OOColor::colorWithDescription:, OOColor::getRed:green:blue:alpha:, and nil.
OOINLINE float useDefined | ( | float | val, |
float | validVal ) |
|
static |
Definition at line 204 of file HeadUpDisplay.m.
|
static |
Definition at line 198 of file HeadUpDisplay.m.
|
static |
Definition at line 197 of file HeadUpDisplay.m.
Referenced by HeadUpDisplay::hudDrawWaypoint.
|
static |
Definition at line 196 of file HeadUpDisplay.m.
|
static |
Definition at line 195 of file HeadUpDisplay.m.
Referenced by HeadUpDisplay::hudDrawReticleOnTarget.
|
static |
Definition at line 2537 of file HeadUpDisplay.m.
Referenced by HeadUpDisplay(Private)::drawASCTarget:.
|
static |
Definition at line 2536 of file HeadUpDisplay.m.
Referenced by HeadUpDisplay(Private)::drawASCTarget:.
|
static |
Definition at line 2538 of file HeadUpDisplay.m.
|
static |
Definition at line 199 of file HeadUpDisplay.m.
|
static |
Definition at line 192 of file HeadUpDisplay.m.
|
static |
Definition at line 193 of file HeadUpDisplay.m.
|
static |
Definition at line 81 of file HeadUpDisplay.m.
|
static |
Definition at line 109 of file HeadUpDisplay.m.
Referenced by HeadUpDisplay::InitTextEngine(void), and HeadUpDisplay::OOHUDResetTextEngine(void).
|
static |
Definition at line 202 of file HeadUpDisplay.m.
Referenced by HeadUpDisplay::InitTextEngine(void), and HeadUpDisplay::OODrawPlanetInfo.
|
static |
Definition at line 203 of file HeadUpDisplay.m.
Referenced by HeadUpDisplay::InitTextEngine(void), and HeadUpDisplay::OODrawPlanetInfo.
Definition at line 108 of file HeadUpDisplay.m.
Referenced by HeadUpDisplay::InitTextEngine(void), and HeadUpDisplay::OOHUDResetTextEngine(void).
|
static |
Definition at line 201 of file HeadUpDisplay.m.
Referenced by HeadUpDisplay::drawCharacterQuad, HeadUpDisplay::InitTextEngine(void), HeadUpDisplay::OODrawHilightedPlanetInfo, and HeadUpDisplay::OORectFromString.
|
static |
Definition at line 194 of file HeadUpDisplay.m.