]> git.sur5r.net Git - cc65/blobdiff - src/sp65/color.h
Add sample linker configurations for Atari binary output in C.
[cc65] / src / sp65 / color.h
index 6502bc9ffd6c7d994fb7f5ab5d9b83ff8fc73675..31688bff461c6f7dd986a641aa9ff2f6115ddb48 100644 (file)
@@ -60,10 +60,37 @@ struct Color {
 /*****************************************************************************/
 
 
+                                                             
+#if defined(HAVE_INLINE)
 
-/* End of color.h */
+INLINE Color RGB (unsigned char R, unsigned char G, unsigned char B)
+/* Generate a color value */
+{
+    Color C;
+    C.R = R; C.G = G; C.B = B; C.A = 0;
+    return C;
+}
+
+INLINE Color RGBA (unsigned char R, unsigned char G, unsigned char B, unsigned char A)
+/* Generate a color value */
+{
+    Color C;
+    C.R = R; C.G = G; C.B = B; C.A = A;
+    return C;
+}
+
+#else
+
+Color RGB (unsigned char R, unsigned char G, unsigned char B);
+/* Generate a color value */
+
+Color RGBA (unsigned char R, unsigned char G, unsigned char B, unsigned char A);
+/* Generate a color value */
 
 #endif
 
 
 
+/* End of color.h */
+
+#endif