summaryrefslogtreecommitdiff
path: root/macosx/system.cpp
diff options
context:
space:
mode:
authorleo2006-03-09 20:13:14 +0000
committerleo2006-03-09 20:13:14 +0000
commit97a43ce96b8d6f62eb3e013e96fd7e049ceba42a (patch)
tree2b44fc17ec975b6891e1a753d8e4df4215367080 /macosx/system.cpp
parente600f8d4fb7a442a4771441df98f0914383b207e (diff)
Mac OSX port.
git-svn-id: http://svn.leocad.org/trunk@519 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'macosx/system.cpp')
-rw-r--r--macosx/system.cpp233
1 files changed, 233 insertions, 0 deletions
diff --git a/macosx/system.cpp b/macosx/system.cpp
new file mode 100644
index 0000000..afe0516
--- /dev/null
+++ b/macosx/system.cpp
@@ -0,0 +1,233 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include "camera.h"
+#include "str.h"
+
+int Sys_MessageBox (const char* text, const char* caption, int type)
+{
+ return 0;
+}
+
+// =============================================================================
+// Memory rendering
+
+void* Sys_StartMemoryRender(int width, int height)
+{
+ return NULL;
+}
+
+void Sys_FinishMemoryRender(void* param)
+{
+}
+
+// =============================================================================
+// Misc stuff
+
+// FIXME: should have a table of LC_KEY_* defined
+bool Sys_KeyDown (int key)
+{
+ return false;
+}
+
+// String
+char* strupr(char* string)
+{
+ char *cp;
+ for (cp=string; *cp; ++cp)
+ {
+ if ('a' <= *cp && *cp <= 'z')
+ *cp += 'A' - 'a';
+ }
+
+ return string;
+}
+
+char* strlwr(char* string)
+{
+ char *cp;
+ for (cp = string; *cp; ++cp)
+ {
+ if ('A' <= *cp && *cp <= 'Z')
+ *cp += 'a' - 'A';
+ }
+
+ return string;
+}
+
+int stricmp(const char* str1, const char* str2)
+{
+ return strcmp(str1, str2);
+}
+
+// Profile functions
+bool Sys_ProfileSaveInt (const char *section, const char *key, int value)
+{
+ return true;
+}
+
+bool Sys_ProfileSaveString (const char *section, const char *key, const char *value)
+{
+ return true;
+}
+
+int Sys_ProfileLoadInt (const char *section, const char *key, int default_value)
+{
+ return default_value;
+}
+
+char* Sys_ProfileLoadString (const char *section, const char *key, const char *default_value)
+{
+ return (char*)default_value;
+}
+
+
+
+
+
+void SystemPumpMessages()
+{
+}
+
+long SystemGetTicks()
+{
+ return 0;
+}
+
+// User Interface
+void SystemUpdateViewport(int new_vp, int old_vp)
+{
+}
+
+void SystemUpdateCategories(bool SearchOnly)
+{
+}
+
+void SystemUpdateAction(int new_action, int old_action)
+{
+}
+
+void SystemUpdateColorList(int new_color)
+{
+}
+
+void SystemUpdateRenderingMode(bool bBackground, bool bFast)
+{
+}
+
+void SystemUpdateUndoRedo(char* undo, char* redo)
+{
+}
+
+void SystemUpdateSnap(const unsigned long snap)
+{
+}
+
+void SystemUpdateCurrentCamera(Camera* pOld, Camera* pNew, Camera* pCamera)
+{
+}
+
+void SystemUpdateCameraMenu(Camera* pCamera)
+{
+}
+
+void SystemUpdateTime(bool bAnimation, int nTime, int nTotal)
+{
+}
+
+void SystemUpdateAnimation(bool bAnimation, bool bAddKeys)
+{
+}
+
+void SystemUpdateSnap(unsigned short move_snap, unsigned short RotateSnap)
+{
+}
+
+void SystemUpdateSelected(unsigned long flags, int SelectedCount, class Object* Focus)
+{
+}
+
+void SystemUpdateRecentMenu (String names[4])
+{
+}
+
+void SystemUpdatePaste(bool enable)
+{
+}
+
+void SystemUpdatePlay(bool play, bool stop)
+{
+}
+
+void SystemInit()
+{
+}
+
+void SystemFinish()
+{
+}
+
+// FIXME: remove
+int SystemDoMessageBox(char* prompt, int mode)
+{
+ return 0;
+}
+
+bool SystemDoDialog(int mode, void* param)
+{
+ return false;
+}
+
+void SystemDoPopupMenu(int nMenu, int x, int y)
+{
+}
+
+void SystemDoWaitCursor(int code)
+{
+}
+
+void SystemExportClipboard(File* clip)
+{
+}
+
+File* SystemImportClipboard()
+{
+ return NULL;
+}
+
+void SystemSetWindowCaption(char* caption)
+{
+}
+
+void SystemRedrawView()
+{
+}
+
+void SystemPieceComboAdd(char* name)
+{
+}
+
+
+void SystemCaptureMouse()
+{
+}
+
+void SystemReleaseMouse()
+{
+}
+
+void SystemSwapBuffers()
+{
+}
+
+void SystemStartProgressBar(int nLower, int nUpper, int nStep, const char* Text)
+{
+}
+
+void SytemEndProgressBar()
+{
+}
+
+void SytemStepProgressBar()
+{
+}