git » fp-git.git » commit 3efa413

added summy output interface

author ecalot
2004-06-20 16:37:10 UTC
committer ecalot
2004-06-20 16:37:10 UTC
parent bf66e74b0d2bf078218fa45c2af9b13cce09a300

added summy output interface

FP/src/out/output.c +87 -0

diff --git a/FP/src/out/output.c b/FP/src/out/output.c
new file mode 100644
index 0000000..f5f26e5
--- /dev/null
+++ b/FP/src/out/output.c
@@ -0,0 +1,87 @@
+/*  Princed V3 - Prince of Persia Level Editor for PC Version
+    Copyright (C) 2003 Princed Development Team
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with this program; if not, write to the Free Software
+    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+
+    The authors of this program may be contacted at http://forum.princed.com.ar
+*/
+
+/*
+resources.h: Free Prince : Output Devices Handler
+\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf\xaf
+
+ Description: 
+ 	Platform and device independent functions for handling output
+	(text, graphics, sound, music...).
+
+ Copyright 2004 Princed Development Team
+  Created: 23 Mar 2004
+
+  Author: vhgh <fhdht.cod@princed.com.ar>
+
+ Note:
+  DO NOT remove this copyright notice
+*/
+
+#ifndef _OUTPUT_H_
+#define _OUTPUT_H_
+
+#include "resources.h"
+
+/* Text Primitives*/
+void outputDrawText(const char* text, int x, int y) {}
+void outputDrawMessage(const char* text) {}
+
+/* Sound */
+void outputPlayWav(tMemory sound) {} /* Starts the reproduction of the sample and returns */
+void outputPlayMid(tMemory music) {} /* Starts the music reproduction and returns */
+
+/* Graph */
+
+ /* Graph: Primitives for resources module */
+void* outputLoadBitmap(unsigned char* data, int size, unsigned char* palette, int h,int w,int invert, int firstColorTransparent) {
+ /* Returns an abstract object allocated in memory using the data information ti build it
+	* invert is 0 when no invertion is needed and non-zero when an inversion is performed
+	*/
+
+	/* Dummy function */
+	printf("outputLoadBitmap: I'm creating an SDL structure :p\n");
+	printf("outputLoadBitmap: invert=%d. transparent=%d. size=%d\n",invert,firstColorTransparent,size);
+
+}
+void outputFreeBitmap(void* image) {}
+ /* Frees the abstract object created by the loadBitmap function
+	*/
+
+ /* Graph: Primitives for the kernel */
+void outputDrawBitmap(void* image,int x, int y) {}
+ /* Draws an abstract image
+	*/
+
+void outputClearScreen() {}
+ /* Crears the screen
+	*/
+
+/* Initialization */
+void outputInit() {}
+/* This function must be called before starting using the output functions
+ * it will initialize the screen and the output module
+ */
+
+void outputStop() {}
+/* Finish all output modes, including the screen mode
+ */
+
+#endif