10#include "opengl_tex.h"
17typedef enum RadarShape_ {
41void gui_updateEffects(
void );
72void gui_renderSpob(
int ind, RadarShape shape,
double w,
double h,
double res,
73 double alpha,
int overlay );
75 double res,
double alpha,
int overlay );
77 double res,
int overlay );
void gui_renderSpob(int ind, RadarShape shape, double w, double h, double res, double alpha, int overlay)
Draws the spobs in the minimap.
int gui_radarClickEvent(SDL_Event *event)
Handles a click at a position in the current system.
void gui_clearMessages(void)
Clears the GUI messages.
int gui_init(void)
Initializes the GUI system.
int gui_radarInit(int circle, int w, int h)
Initializes the radar.
void gui_setTarget(void)
Player just changed their pilot target.
void gui_renderPlayer(double res, int overlay)
Renders the player cross on the radar or whatever.
int gui_handleEvent(SDL_Event *evt)
Handles GUI events.
void gui_messageScrollDown(int lines)
Scrolls down the message box.
glTexture * gui_hailIcon(void)
Gets the hail icon texture.
void gui_setDefaults(void)
int gui_borderClickEvent(SDL_Event *event)
Handles clicks on the GUI border icons.
void gui_setSystem(void)
Player just changed their system.
const char * gui_pick(void)
Determines which GUI should be used.
void gui_radarRender(double x, double y)
Renders the GUI radar.
void gui_setRadarRel(int mod)
Modifies the radar resolution.
void gui_renderAsteroid(const Asteroid *a, double w, double h, double res, int overlay)
Renders an asteroid in the GUI radar.
int gui_exists(const char *name)
Checks to see if a GUI exists.
void gui_mouseMoveEnable(int enable)
Enables the mouse movement callback.
void gui_messageScrollUp(int lines)
Scrolls up the message box.
void gui_mouseClickEnable(int enable)
Enables the mouse click callback.
void gui_updateFaction(void)
Player's relationship with a faction was modified.
int gui_load(const char *name)
Attempts to load the actual GUI.
void gui_getOffset(double *x, double *y)
Gets the GUI offset.
void gui_setShip(void)
Player just upgraded their ship or modified it.
void gui_free(void)
Frees the gui stuff.
void gui_messageInit(int width, int x, int y)
Initializes the message system.
void gui_clearViewport(void)
Resets the viewport.
void gui_radarGetRes(double *res)
Outputs the radar's resolution.
void gui_reload(void)
Reloads the GUI.
void gui_forceBlink(void)
Force sets the spob and pilot radar blink.
int gui_onScreenPilot(double *rx, double *ry, const Pilot *pilot)
Takes a pilot and returns whether it's on screen, plus its relative position.
void gui_targetPilotGFX(const glTexture *gfx)
Sets the pilot target GFX.
void gui_cooldownEnd(void)
Notifies GUI scripts that the player broke out of cooldown.
void gui_renderJumpPoint(int ind, RadarShape shape, double w, double h, double res, double alpha, int overlay)
Renders a jump point on the minimap.
int gui_onScreenSpob(double *rx, double *ry, const JumpPoint *jp, const Spob *pnt)
Takes a spob or jump point and returns whether it's on screen, plus its relative position.
void gui_cleanup(void)
Cleans up the GUI.
void gui_renderPilot(const Pilot *p, RadarShape shape, double w, double h, double res, int overlay)
Renders a pilot in the GUI radar.
void gui_targetSpobGFX(const glTexture *gfx)
Sets the spob target GFX.
void gui_setNav(void)
Player just changed their nav computer target.
void gui_renderReticles(double dt)
Renders the gui targeting reticles.
void gui_render(double dt)
Renders the player's GUI.
void gui_setGeneric(const Pilot *pilot)
Calls trigger functions depending on who the pilot is.
void gui_setViewport(double x, double y, double w, double h)
Sets the viewport.
void gui_setRadarResolution(double res)
Sets the radar resolution.
void gui_setCargo(void)
Player just changed their cargo.
Represents a single asteroid.
The representation of an in-game pilot.
Represents a Space Object (SPOB), including and not limited to planets, stations, wormholes,...
Abstraction for rendering sprite sheets.