aboutsummaryrefslogtreecommitdiff
path: root/src/parsec/include/g_planet.h
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2026-08-24 11:16:07 +0200
committerFelix Morgner <felix.morgner@gmail.com>2026-08-24 11:16:07 +0200
commitc068f22329d5cc722622a2183bbb22eef2093df7 (patch)
tree12d56c1aede67988a55e241364606bfbb4dba933 /src/parsec/include/g_planet.h
downloadopenparsec-main.tar.xz
openparsec-main.zip
initial importHEADmain
Diffstat (limited to 'src/parsec/include/g_planet.h')
-rw-r--r--src/parsec/include/g_planet.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/parsec/include/g_planet.h b/src/parsec/include/g_planet.h
new file mode 100644
index 0000000..54633f1
--- /dev/null
+++ b/src/parsec/include/g_planet.h
@@ -0,0 +1,47 @@
+/*
+ * PARSEC HEADER: s_planet.h
+ */
+
+#ifndef _S_PLANET_H_
+#define _S_PLANET_H_
+
+
+// planet limits and constants ------------------------------------------------
+//
+#define MAX_PLANET_NAME 255
+#define MAX_RING_TEXNAME 63
+
+#define PLANET_RING_SEGMENTS 128
+
+#define PLANET_RING_TEXTURE "ringtex1"
+#define PLANET_RING_TEX_WIDTH 16
+#define PLANET_RING_TEX_HEIGHT 64
+
+
+// planet custom type structure -----------------------------------------------
+//
+struct Planet : PlanetObject {
+
+ bams_t RotSpeed;
+ bams_t CurOrbitPos;
+ bams_t OrbitSpeed;
+ geomv_t OrbitRadius;
+ GenObject* OrbitParent;
+ int HasRing;
+ geomv_t RingInnerRadius;
+ geomv_t RingOuterRadius;
+ char RingTexName[ MAX_RING_TEXNAME + 1 ];
+ TextureMap* RingTexture;
+
+ char Name[ MAX_PLANET_NAME + 1 ];
+ int NumOrbitShips;
+};
+
+
+// external functions
+
+// ...
+
+#endif // _S_PLANET_H_
+
+