mirror of
https://github.com/edubart/otclient.git
synced 2025-10-24 00:05:02 +02:00
Lua binder compability changes
* A lot of changes in lua binder to compile with clang's libc++ * Add more portability to luabinder * Remove const keyword from bound lua functions * Deprecate std::bind usage with luabinder replace its usage with registerSingletonClass/bindSingletonFunction for binding singleton classes * Fix a bug in lua binder where calling functions with bil object would make the client crash * More fixes to compile with clang
This commit is contained in:
@@ -67,10 +67,10 @@ public:
|
||||
void updateCaches();
|
||||
bool isHardwareCached() { return m_hardwareCached; }
|
||||
|
||||
float *getVertexArray() const { return m_vertexArray.vertices(); }
|
||||
float *getTextureCoordArray() const { return m_textureCoordArray.vertices(); }
|
||||
int getVertexCount() const { return m_vertexArray.vertexCount(); }
|
||||
int getTextureCoordCount() const { return m_textureCoordArray.vertexCount(); }
|
||||
float *getVertexArray() { return m_vertexArray.vertices(); }
|
||||
float *getTextureCoordArray() { return m_textureCoordArray.vertices(); }
|
||||
int getVertexCount() { return m_vertexArray.vertexCount(); }
|
||||
int getTextureCoordCount() { return m_textureCoordArray.vertexCount(); }
|
||||
|
||||
HardwareBuffer *getHardwareVertexArray() { return m_hardwareVertexArray; }
|
||||
HardwareBuffer *getHardwareTextureCoordArray() { return m_hardwareTextureCoordArray; }
|
||||
|
||||
Reference in New Issue
Block a user