I'm trying to figure out how one would convert
VertexArray to
const Vertex* so that the binding in my
latest commit is correct.
Because the
draw function in
sf::Window has the
const Vertex* signature as the first param, I need to match that param so that the compiler can match the signature when resolving. Unfortunately, I can't just pass in a standard
VertexArray type because the Haxe compiler complains that the types mismatch. Obviously this is nothing to do with C++.
I have an extern that identifies the type needed to match the signature:
@:include("SFML/Graphics.hpp")
@:native("const sf::Vertex *")
extern class ConstVertexArray { }
But I need a way to convert the standard extern over to this one. The standard extern looks like this:
@:include("SFML/Graphics.hpp")
@:structAccess
@:native("sf::VertexArray&")
extern class VertexArray implements Drawable {
...
Any help would be greatly appreciated.