Oolite
Loading...
Searching...
No Matches
OOPolygonSprite(OOHUDBeaconIcon) Category Reference

#include <OOPolygonSprite.h>

Inheritance diagram for OOPolygonSprite(OOHUDBeaconIcon):
Collaboration diagram for OOPolygonSprite(OOHUDBeaconIcon):

Instance Methods

(void) - oo_drawHUDBeaconIconAt:size:alpha:z: [implementation]

Detailed Description

Definition at line 4103 of file HeadUpDisplay.m.

Method Documentation

◆ oo_drawHUDBeaconIconAt:size:alpha:z:

- (void) oo_drawHUDBeaconIconAt: (NSPoint) where
size: (NSSize) size
alpha: (GLfloat) alpha
z: (GLfloat) z 
implementation

Extends class OOPolygonSprite.

Definition at line 4105 of file HeadUpDisplay.m.

4105 :(NSPoint)where size:(NSSize)size alpha:(GLfloat)alpha z:(GLfloat)z
4106{
4107 GLfloat x = where.x - size.width;
4108 GLfloat y = where.y - 1.5 * size.height;
4109
4110 GLfloat ox = x - size.width * 0.5;
4111 GLfloat oy = y - size.height * 0.5;
4112 GLfloat width = size.width * (1.0f / 6.0f);
4113 GLfloat height = size.height * (1.0f / 6.0f);
4114
4117 OOGLScaleModelView(make_vector(width, height, 1.0f));
4118 [self drawFilled];
4119 glColor4f(0.0, 0.0, 0.0, 0.5 * alpha);
4120 [self drawOutline];
4122}
void OOGLScaleModelView(Vector scale)
void OOGLPushModelView(void)
void OOGLTranslateModelView(Vector vector)
OOMatrix OOGLPopModelView(void)
float y
float x
OOINLINE Vector make_vector(OOScalar vx, OOScalar vy, OOScalar vz) INLINE_CONST_FUNC
Definition OOVector.h:149
voidpf void uLong size
Definition ioapi.h:126

References OOPolygonSprite::drawFilled, OOPolygonSprite::drawOutline, make_vector(), OOGLPopModelView(), OOGLPushModelView(), OOGLScaleModelView(), OOGLTranslateModelView(), x, and y.

Here is the call graph for this function:

The documentation for this category was generated from the following file: