Oolite 1.91.0.7646-241128-10e222e
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 4441 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 4384 of file HeadUpDisplay.m.

4443 :(NSPoint)where size:(NSSize)size alpha:(GLfloat)alpha z:(GLfloat)z
4444{
4445 GLfloat x = where.x - size.width;
4446 GLfloat y = where.y - 1.5 * size.height;
4447
4448 GLfloat ox = x - size.width * 0.5;
4449 GLfloat oy = y - size.height * 0.5;
4450 GLfloat width = size.width * (1.0f / 6.0f);
4451 GLfloat height = size.height * (1.0f / 6.0f);
4452
4454 OOGLTranslateModelView(make_vector(ox, oy, z));
4455 OOGLScaleModelView(make_vector(width, height, 1.0f));
4456 [self drawFilled];
4457 glColor4f(0.0, 0.0, 0.0, 0.5 * alpha);
4458 [self drawOutline];
4460}
void OOGLScaleModelView(Vector scale)
void OOGLPushModelView(void)
void OOGLTranslateModelView(Vector vector)
OOMatrix OOGLPopModelView(void)
float y
float x
voidpf void uLong size
Definition ioapi.h:134

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