namespace v8wrap {
v8::Handle<v8::Value> CastToJS(const Character &JS);
v8::Handle<v8::Value> CastToJS2(const Character &JS);
void AutoCastToCPP(v8::Handle<v8::Value> Value, Character &CPP);
v8::Handle<v8::Value> CastToJS(Character *JS);
v8::Handle<v8::Value> CastToJS2(const Character *JS);
void AutoCastToCPP(v8::Handle<v8::Value> Value, Character *&CPP);
}
Im with a small problem here that my sprite that is in my class "Character" doesnt "draw" with "window.draw", but if i create a local sprite (the same sprite code and image) it draw.Do you call window.display()?
I need implement that methods for cast on every class that i send to v8? Example:I don't think any/many will know how this V8 thing works with SFML, specificly with your code, also not many if any will go and read your full code just to understand what the problem actually is.
window.clear(sf::Color(255, 255, 255));
window.draw(*robot1->getSprite()); // it dont display
window.draw(*sprite); // it display
window.display();
And don't dynmically allocate the exceptions that you throw.
I dont understand it ^Good: