#include <OOPolygonSprite.h>
Definition at line 4439 of file HeadUpDisplay.m.
◆ 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 4441 of file HeadUpDisplay.m.
4441 :(NSPoint)where
size:(NSSize)
size alpha:(GLfloat)alpha z:(GLfloat)z
4442{
4443 GLfloat
x = where.x -
size.width;
4444 GLfloat
y = where.y - 1.5 *
size.height;
4445
4446 GLfloat ox =
x -
size.width * 0.5;
4447 GLfloat oy =
y -
size.height * 0.5;
4448 GLfloat width =
size.width * (1.0f / 6.0f);
4449 GLfloat height =
size.height * (1.0f / 6.0f);
4450
4454 [self drawFilled];
4455 glColor4f(0.0, 0.0, 0.0, 0.5 * alpha);
4456 [self drawOutline];
4458}
void OOGLScaleModelView(Vector scale)
void OOGLPushModelView(void)
void OOGLTranslateModelView(Vector vector)
OOMatrix OOGLPopModelView(void)
References OOPolygonSprite::drawFilled, OOPolygonSprite::drawOutline, OOGLPopModelView(), OOGLPushModelView(), OOGLScaleModelView(), OOGLTranslateModelView(), x, and y.
The documentation for this category was generated from the following file: