naev 0.12.6
background.h
1/*
2 * See Licensing and Copyright notice in naev.h
3 */
4#pragma once
5
6#include "colour.h"
7#include "opengl_tex.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,
16 const glColour *col, int foreground,
17 const glColour *radiosity );
18
19/* Space Dust. */
20void background_initDust( int n );
21void background_renderDust( const double dt );
22void background_moveDust( double x, double y );
23
24/* Init. */
25int background_init( void );
26int background_load( const char *name );
27
28/* Clean up. */
29void background_clear( void );
30void background_free( void );
31
32/* Get textures for any star images and ambient (e.g. nebula) image in the
33 * background. */
glTexture ** background_getStarTextures(void)
Returns an array (array.h) of star background images in the system background.
Definition background.c:629
void background_clear(void)
Cleans up the background stuff.
Definition background.c:570
int background_init(void)
Initializes the background system.
Definition background.c:492
void background_initDust(int n)
Initializes background dust.
Definition background.c:97
void background_renderOverlay(double dt)
Renders the background overlay.
Definition background.c:290
void background_moveDust(double x, double y)
Displaces the dust, useful with camera.
Definition background.c:145
void background_free(void)
Cleans up and frees memory after the backgrounds.
Definition background.c:602
glTexture * background_getAmbientTexture(void)
Returns an overall background image (nebula, for instance), or NULL if none exists.
Definition background.c:644
void background_renderDust(const double dt)
Renders the dustry background.
Definition background.c:156
void background_render(double dt)
Render the background.
Definition background.c:245
int background_load(const char *name)
Loads a background script by name.
Definition background.c:502
unsigned int background_addImage(const glTexture *image, double x, double y, double move, double scale, double angle, const glColour *col, int foreground, const glColour *radiosity)
Adds a new background image.
Definition background.c:328
Abstraction for rendering sprite sheets.
Definition opengl_tex.h:43