[Change] Split the star rendering to be able to switch to nebulae soon.
This commit is contained in:
parent
475aa1f1fa
commit
862ef7759b
@ -16,6 +16,7 @@
|
|||||||
#include "toolkit.h"
|
#include "toolkit.h"
|
||||||
#include "spfx.h"
|
#include "spfx.h"
|
||||||
#include "ltime.h"
|
#include "ltime.h"
|
||||||
|
#include "nebulae.h"
|
||||||
#include "player.h"
|
#include "player.h"
|
||||||
|
|
||||||
#define XML_PLANET_ID "Planets"
|
#define XML_PLANET_ID "Planets"
|
||||||
@ -70,6 +71,7 @@ static int mstars = 0; /* Memory stars are taking. */
|
|||||||
|
|
||||||
/* Intern. */
|
/* Intern. */
|
||||||
static Planet* planet_pull(const char* name);
|
static Planet* planet_pull(const char* name);
|
||||||
|
static void space_renderStars(double dt);
|
||||||
static void space_addFleet(Fleet* fleet);
|
static void space_addFleet(Fleet* fleet);
|
||||||
static StarSystem* system_parse(const xmlNodePtr parent);
|
static StarSystem* system_parse(const xmlNodePtr parent);
|
||||||
static void system_parseJumps(const xmlNodePtr parent);
|
static void system_parseJumps(const xmlNodePtr parent);
|
||||||
@ -790,6 +792,12 @@ int space_load(void) {
|
|||||||
|
|
||||||
/* Render the system. -- Just playing god now. */
|
/* Render the system. -- Just playing god now. */
|
||||||
void space_render(double dt) {
|
void space_render(double dt) {
|
||||||
|
space_renderStars(dt);
|
||||||
|
/* nebu_render(); */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Render stars. */
|
||||||
|
static void space_renderStars(double dt) {
|
||||||
int i;
|
int i;
|
||||||
unsigned int t, timer;
|
unsigned int t, timer;
|
||||||
double x, y, m, b;
|
double x, y, m, b;
|
||||||
|
Loading…
Reference in New Issue
Block a user