aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCNLohr <lohr85@gmail.com>2017-03-17 00:42:05 -0400
committerCNLohr <lohr85@gmail.com>2017-03-17 00:42:05 -0400
commitc9be7c057aa9570d0f67109c87b74e3aab640322 (patch)
treebc5bce0b89d0e4a8c0338318bd4cb50ba1b2229d
parent313b1b31e589dcfb7e6ac14d446c01a14af16ed8 (diff)
downloadlibsurvive-c9be7c057aa9570d0f67109c87b74e3aab640322.tar.gz
libsurvive-c9be7c057aa9570d0f67109c87b74e3aab640322.tar.bz2
Update, adding rawdrawnull for OSX.
-rw-r--r--.gitignore2
-rw-r--r--redist/RawDrawNull.c74
2 files changed, 76 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 3ff5664..034a8bc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,6 +7,8 @@ windows/calibrate.def
windows/udev[USB_DEV_LIGHTHOUSE]
windows/config.json
winbuild/x64/*
+winbuild/calibrate/calinfo/*
+winbuild/calibrate/config.json
winbuild/calibrate/x64/*
winbuild/libsurvive/x64/*
winbuild/.vs/*
diff --git a/redist/RawDrawNull.c b/redist/RawDrawNull.c
new file mode 100644
index 0000000..34346cc
--- /dev/null
+++ b/redist/RawDrawNull.c
@@ -0,0 +1,74 @@
+//Copyright (c) 2017 <>< Charles Lohr - Under the MIT/x11 or NewBSD License you choose.
+
+#include "DrawFunctions.h"
+
+static int w, h;
+void CNFGGetDimensions( short * x, short * y )
+{
+ *x = w;
+ *y = h;
+}
+
+static void InternalLinkScreenAndGo( const char * WindowName )
+{
+}
+
+void CNFGSetupFullscreen( const char * WindowName, int screen_no )
+{
+ CNFGSetup( WindowName, 640, 480 );
+}
+
+
+void CNFGTearDown()
+{
+}
+
+void CNFGSetup( const char * WindowName, int sw, int sh )
+{
+ w = sw;
+ h = sh;
+}
+
+void CNFGHandleInput()
+{
+}
+
+
+void CNFGUpdateScreenWithBitmap( unsigned long * data, int w, int h )
+{
+}
+
+
+#ifndef RASTERIZER
+
+
+uint32_t CNFGColor( uint32_t RGB )
+{
+}
+
+void CNFGClearFrame()
+{
+}
+
+void CNFGSwapBuffers()
+{
+}
+
+void CNFGTackSegment( short x1, short y1, short x2, short y2 )
+{
+}
+
+void CNFGTackPixel( short x1, short y1 )
+{
+}
+
+void CNFGTackRectangle( short x1, short y1, short x2, short y2 )
+{
+}
+
+void CNFGTackPoly( RDPoint * points, int verts )
+{
+}
+
+#endif
+