unsigned byte color!
hymedia <[email protected]>
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <003501c99c26$a61a94e0$f24fbea0$@ca> |
Hello everyone,
Any particular reason why Luabind is choking on UChar?
.cpp
typedef unsigned char UChar;
class Color
{
public:
UChar r, g, b, a;
inline Color(UChar in_r, UChar in_g, UChar in_b, UChar in_a):
r(in_r),
g(in_g),
b(in_b),
a(in_a) {}
///SNIP...
}
Luabind
module(in_lua)
[
class_<Color>("Color")
.def(constructor<UChar, UChar, UChar, UChar>())
];
.lua
myColor = Color4i(255, 0, 0, 100);
result: No matching overload found
If I repalce every UChar by a float it does work. hummm. hocus pocus.
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
luabind-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luabind-user