From 759578ff14dcbfa8e9d9d8a5135e69197021a65f Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Thu, 23 Apr 2015 17:11:21 +0600 Subject: [PATCH] Replace TextDrawer by TextDrawerStub for GL ES. --- projects/android/Android.mk | 2 +- src/TextDrawerStub.cpp | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 src/TextDrawerStub.cpp diff --git a/projects/android/Android.mk b/projects/android/Android.mk index 44ef2575..7da663ae 100644 --- a/projects/android/Android.mk +++ b/projects/android/Android.mk @@ -58,7 +58,7 @@ LOCAL_SRC_FILES := \ $(SRCDIR)/mupenplus/Config_mupenplus.cpp \ $(SRCDIR)/mupenplus/MupenPlusAPIImpl.cpp \ $(SRCDIR)/mupenplus/OpenGL_mupenplus.cpp \ -# $(SRCDIR)/TextDrawer.cpp \ + $(SRCDIR)/TextDrawerStub.cpp \ LOCAL_CFLAGS := \ $(COMMON_CFLAGS) \ diff --git a/src/TextDrawerStub.cpp b/src/TextDrawerStub.cpp new file mode 100644 index 00000000..1487c4bc --- /dev/null +++ b/src/TextDrawerStub.cpp @@ -0,0 +1,11 @@ +#include "TextDrawer.h" + +TextDrawer::TextDrawer() {} +void TextDrawer::init() {} +void TextDrawer::destroy() {} +void TextDrawer::renderText(const char * /*_pText*/, float /*x*/, float /*y*/) const {} +TextDrawer & TextDrawer::get() { + static TextDrawer drawer; + return drawer; +} +