summaryrefslogtreecommitdiffstats
path: root/servers/server_wrap_mt_common.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-06-17 23:26:49 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-06-17 23:27:42 -0300
commit5c6cac4e53058c987ca3c065ae49670e9cd9edbc (patch)
treef98405b608d71ffd266e6f3b33dbaba5d148b8c3 /servers/server_wrap_mt_common.h
parentf41cc5b590ab2d0cad38213caa1c338f4b8b97af (diff)
downloadredot-engine-5c6cac4e53058c987ca3c065ae49670e9cd9edbc.tar.gz
Add normalmap support for drawing in all low level primitives. Only added support in Sprite so far.
Diffstat (limited to 'servers/server_wrap_mt_common.h')
-rw-r--r--servers/server_wrap_mt_common.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/servers/server_wrap_mt_common.h b/servers/server_wrap_mt_common.h
index d434a6622e..e285483e2b 100644
--- a/servers/server_wrap_mt_common.h
+++ b/servers/server_wrap_mt_common.h
@@ -766,3 +766,12 @@
server_name->m_type(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10); \
} \
}
+
+#define FUNC11(m_type, m_arg1, m_arg2, m_arg3, m_arg4, m_arg5, m_arg6, m_arg7, m_arg8, m_arg9, m_arg10, m_arg11) \
+ virtual void m_type(m_arg1 p1, m_arg2 p2, m_arg3 p3, m_arg4 p4, m_arg5 p5, m_arg6 p6, m_arg7 p7, m_arg8 p8, m_arg9 p9, m_arg10 p10, m_arg11 p11) { \
+ if (Thread::get_caller_ID() != server_thread) { \
+ command_queue.push(server_name, &ServerName::m_type, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11); \
+ } else { \
+ server_name->m_type(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11); \
+ } \
+ }