naev 0.11.5
background.h
1/*
2 * See Licensing and Copyright notice in naev.h
3 */
4#pragma once
5
6#include "colour.h"
7#include "opengl.h"
8
9/* Render. */
10void background_render( double dt );
11void background_renderOverlay( double dt );
12
13/* Add images. */
14unsigned int background_addImage( const glTexture *image, double x, double y,
15 double move, double scale, double angle, const glColour *col, int foreground );
16
17/* Space Dust. */
18void background_initDust( int n );
19void background_renderDust( const double dt );
20void background_moveDust( double x, double y );
21
22/* Init. */
23int background_init (void);
24int background_load( const char *name );
25
26/* Clean up. */
27void background_clear (void);
28void background_free (void);
29
30/* Get textures for any star images and ambient (e.g. nebula) image in the background. */
glTexture ** background_getStarTextures(void)
Returns an array (array.h) of star background images in the system background.
Definition background.c:544
void background_clear(void)
Cleans up the background stuff.
Definition background.c:489
int background_init(void)
Initializes the background system.
Definition background.c:417
void background_initDust(int n)
Initializes background dust.
Definition background.c:90
void background_renderOverlay(double dt)
Renders the background overlay.
Definition background.c:267
unsigned int background_addImage(const glTexture *image, double x, double y, double move, double scale, double angle, const glColour *col, int foreground)
Adds a new background image.
Definition background.c:307
void background_moveDust(double x, double y)
Displaces the dust, useful with camera.
Definition background.c:134
void background_free(void)
Cleans up and frees memory after the backgrounds.
Definition background.c:518
glTexture * background_getAmbientTexture(void)
Returns an overall background image (nebula, for instance), or NULL if none exists.
Definition background.c:556
void background_renderDust(const double dt)
Renders the dustry background.
Definition background.c:145
void background_render(double dt)
Render the background.
Definition background.c:229
int background_load(const char *name)
Loads a background script by name.
Definition background.c:427
Abstraction for rendering sprite sheets.
Definition opengl_tex.h:36