Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

classe custom para ser enviada ao javascript - compila mas nao aparec…

…e um sprite
  • Loading branch information...
commit f6633595eae770b5cc241d4d165b48331aeeeae3 1 parent 0995fa3
@prsolucoes authored
View
15 CMakeLists.txt
@@ -9,15 +9,15 @@ set(
../main.cpp
../sf_v8.cpp
../v8wrap.cpp
- ../character.cpp
+ ../JSCharacter.cpp
+ ../Character.cpp
)
if(APPLE)
list(APPEND GAME_ALL_SOURCES ../ResourcePath.mm)
endif()
-#if(ARCH_32BITS) // usar depois
-
+# define target
if(APPLE)
set(TARGET_SYSTEM "mac")
set(MACOSX_BUNDLE true)
@@ -120,3 +120,12 @@ elseif(WIN32)
else()
# implementar
endif()
+
+# define target mode "debug" ou "release"
+set(TARGET_MODE "debug")
+
+if(TARGET_MODE STREQUAL "debug")
+ set(CMAKE_BUILD_TYPE Debug)
+else()
+ set(CMAKE_BUILD_TYPE Release)
+endif()
View
27 Character.cpp
@@ -0,0 +1,27 @@
+#include "Character.h"
+
+Character::Character()
+{
+}
+
+void Character::setType(std::string type)
+{
+ this->type = type;
+ loadSprite();
+}
+
+sf::Sprite *Character::getSprite()
+{
+ return sprite;
+}
+
+void Character::loadSprite()
+{
+ sf::Texture texture;
+ if (!texture.loadFromFile(resourcePath() + "images/" + type + ".png"))
+ {
+ throw new std::exception();
+ }
+ sprite = new sf::Sprite(texture);
+ sprite->setPosition(100, 200);
+}
View
27 Character.h
@@ -0,0 +1,27 @@
+#ifndef CHARACTER_H
+#define CHARACTER_H
+
+#include <SFML/Graphics.hpp>
+
+#if __APPLE__
+ #include "ResourcePath.hpp"
+#else
+ std::string resourcePath(void) { return ""; }
+#endif
+
+class Character
+{
+
+public:
+ Character();
+ void setType(std::string type);
+ sf::Sprite *getSprite();
+
+private:
+ sf::Sprite *sprite;
+ std::string type;
+ void loadSprite();
+
+};
+
+#endif // CHARACTER_H
View
59 character.cpp → JSCharacter.cpp
@@ -1,62 +1,47 @@
-#include "character.h"
+#include "JSCharacter.h"
-const char *Character::Bases = "Character\0\0";
-const char *Character::ClassName = "Character";
-/*
-Character::Character()
-{
-
-}
-
-Character::Character(const std::string type)
-{
- this->type = type;
- loadSprite();
-}
+const char *JSCharacter::Bases = "JSCharacter\0\0";
+const char *JSCharacter::ClassName = "JSCharacter";
-void Character::loadSprite()
+v8::Handle<v8::Value> JSCharacter::Create(const v8::Arguments &args)
{
- sf::Texture texture;
- if (!texture.loadFromFile(resourcePath() + "images/" + type + ".png"))
+ if (args.IsConstructCall())
{
- throw new std::exception();
- }
- sprite = new sf::Sprite(texture);
-}
-*/
-v8::Handle<v8::Value> Character::Create(const v8::Arguments &args)
-{
- if ( args.IsConstructCall() ) {
- if ( args.Length() == 0 ) {
+ if (args.Length() == 0)
+ {
v8::Handle<v8::Object> JSinst = POT->NewInstance();
JSinst->SetPrototype(args.This()->GetPrototype());
MyClass *inst = new MyClass();
MakeReference(JSinst, inst);
return JSinst;
- } else {
+ }
+ else
+ {
return v8::ThrowException(v8::Exception::Error(v8::String::New(v8wrap::sInvalidArgs)));
}
- } else {
+ }
+ else
+ {
return v8::ThrowException(v8::Exception::Error(v8::String::New(v8wrap::sUseNew)));
}
}
-void Character::Delete(MyClass *inst)
+void JSCharacter::Delete(MyClass *inst)
{
delete inst;
}
-void Character::InitPOT(v8::Handle<v8::ObjectTemplate> target)
+void JSCharacter::InitPOT(v8::Handle<v8::ObjectTemplate> target)
{
if ( POT.IsEmpty() )
{
POT = v8::Persistent<v8::ObjectTemplate>::New(v8::ObjectTemplate::New());
- POT->SetInternalFieldCount(1);
+ POT->SetInternalFieldCount(3);
Register(POT);
}
}
-void Character::InitPFT(v8::Handle<v8::ObjectTemplate> target)
+void JSCharacter::InitPFT(v8::Handle<v8::ObjectTemplate> target)
{
if ( PFT.IsEmpty() )
{
@@ -68,13 +53,13 @@ void Character::InitPFT(v8::Handle<v8::ObjectTemplate> target)
target->Set(v8::String::New("Time"), FO);
}
-void Character::Register(v8::Handle<v8::ObjectTemplate> target)
+void JSCharacter::Register(v8::Handle<v8::ObjectTemplate> target)
{
target->Set("className", v8::String::New(ClassName));
target->Set("_delete", v8::FunctionTemplate::New(Object_delete));
}
-void Character::Register(v8::Handle<v8::FunctionTemplate> target)
+void JSCharacter::Register(v8::Handle<v8::FunctionTemplate> target)
{
if ( PFT.IsEmpty() )
{
@@ -84,17 +69,17 @@ void Character::Register(v8::Handle<v8::FunctionTemplate> target)
}
}
-v8::Handle<v8::Value> Character::Object_copy(const v8::Arguments &args)
+v8::Handle<v8::Value> JSCharacter::Object_copy(const v8::Arguments &args)
{
v8::HandleScope scope;
v8::Handle<v8::Value> result;
MyClass *inst = ((MyClass*)v8::External::Unwrap(args.Holder()->GetInternalField(0)));
MyClass *copy = new MyClass(*inst);
- result = CastToJS(copy);
+ result = v8wrap::CastToJS(copy);
return scope.Close(result);
}
-v8::Handle<v8::Value> Character::Object_delete(const v8::Arguments &args)
+v8::Handle<v8::Value> JSCharacter::Object_delete(const v8::Arguments &args)
{
v8::HandleScope scope;
v8::Handle<v8::Value> result = v8::Undefined();
View
22 character.h → JSCharacter.h
@@ -1,22 +1,13 @@
-#ifndef CHARACTER_H
-#define CHARACTER_H
+#ifndef JSCHARACTER_H
+#define JSCHARACTER_H
-#include <SFML/Graphics.hpp>
#include "v8wrap.h"
+#include "Character.h"
-#if __APPLE__
- #include "ResourcePath.hpp"
-#else
- std::string resourcePath(void) { return ""; }
-#endif
-
-class Character : public v8wrap::V8ClassTemplate<Character, Character>
+class JSCharacter : public v8wrap::V8ClassTemplate<JSCharacter, Character>
{
public:
- //Character();
- //Character(const std::string type);
-
static const char *Bases;
static const char *ClassName;
static v8::Handle<v8::Value> Create(const v8::Arguments &args);
@@ -27,12 +18,9 @@ class Character : public v8wrap::V8ClassTemplate<Character, Character>
static void Register(v8::Handle<v8::ObjectTemplate> target);
private:
- //sf::Sprite *sprite;
- //std::string type;
- //void loadSprite();
static v8::Handle<v8::Value> Object_copy(const v8::Arguments &args);
static v8::Handle<v8::Value> Object_delete(const v8::Arguments &args);
};
-#endif // CHARACTER_H
+#endif // JSCHARACTER_H
View
2  build/build.sh
@@ -1,2 +1,2 @@
cmake ../
-make
+make VERBOSE=1
View
1  build/clean-dsstore.sh
@@ -1 +0,0 @@
-find ../ -name '*.DS_Store' -type f -delete
View
1  build/clean.sh
@@ -1,3 +1,4 @@
+find ../ -name '*.DS_Store' -type f -delete
rm -rf CMakeCache.txt
rm -rf CMakeFiles
rm -rf Makefile
View
4 js/robot1.js
@@ -2,5 +2,5 @@ var randomnumber = Math.floor(Math.random() * 500);
var randomnumber2 = Math.floor(Math.random() * 200);
//robot1; //.setPosition(100, randomnumber);
-robot1.setPosition(200, randomnumber);
-robot1.rotate(randomnumber2);
+//robot1.setPosition(200, randomnumber);
+//robot1.rotate(randomnumber2);
View
40 main.cpp
@@ -7,7 +7,8 @@
std::string resourcePath(void) { return ""; }
#endif
-#include "character.h"
+#include "Character.h"
+#include "JSCharacter.h"
v8::Persistent<v8::Context> CreateShellContext() {
v8::Handle<v8::ObjectTemplate> global = v8::ObjectTemplate::New();
@@ -50,13 +51,15 @@ char *get(v8::Handle<v8::String> value, const char *fallback = "") {
return str;
}
+Character *robot1;
+
int main()
{
v8::HandleScope handleScope;
v8::Persistent<v8::Context> context = v8::Context::New();
v8::Context::Scope context_scope(context);
- context->Global()->Set(v8::String::New("sf"), sf_v8::sf::Init());
+ //context->Global()->Set(v8::String::New("sf"), sf_v8::sf::Init());
/*
// EXEMPLO - IMPRIMIR STRING
@@ -76,21 +79,37 @@ int main()
sf::RenderWindow window(sf::VideoMode(800, 600, 32), "SFML Sample Application");
+
+ // teste com classe customizada
+ robot1 = new Character();
+ robot1->setType("robot1");
+
+ /*
+ JSCharacter::InitPOT(JSCharacter::POT);
+ v8::Handle<v8::Object> Result = JSCharacter::POT->NewInstance();
+ JSCharacter::MakeReference(Result, robot1);
+ context->Global()->Set(v8::String::New("robot1"), Result);
+ */
+
+ /*
+ // teste com sprite somente
sf::Texture texture;
if (!texture.loadFromFile(resourcePath() + "images/robot1.png"))
return EXIT_FAILURE;
sf::Sprite sprite(texture);
- /*
- Character *robot1 = new Character();
- v8::Handle<v8::Object> Result = Character::POT->NewInstance();
- Character::MakeReference(Result, robot1);
- context->Global()->Set(v8::String::New("robot1"), Result);
- */
sf::Sprite *robot1 = &sprite;
v8::Handle<v8::Object> Result = sf_v8::sf_Sprite::POT->NewInstance();
sf_v8::sf_Sprite::MakeReference(Result, robot1);
context->Global()->Set(v8::String::New("robot1"), Result);
+ */
+
+ sf::Texture texture;
+ if (!texture.loadFromFile(resourcePath() + "images/robot1.png"))
+ {
+ throw new std::exception();
+ }
+ sf::Sprite *sprite = new sf::Sprite(texture);
while (window.isOpen())
{
@@ -112,13 +131,16 @@ int main()
v8::Handle<v8::Value> result = script->Run();
window.clear(sf::Color(255, 255, 255));
- window.draw(sprite);
+ window.draw(*robot1->getSprite());
+ window.draw(*sprite);
window.display();
sleep(1);
}
context.Dispose();
+ delete robot1;
+ delete sprite;
return 0;
}
View
1,556 sf_v8.cpp
423 additions, 1,133 deletions not shown
View
865 sf_v8.h
@@ -1,5 +1,6 @@
-/*
+/***
SFML-V8-Binding Project
+The zlib/libpng License
Copyright (c) 2012 Steven Christy
This software is provided 'as-is', without any express or implied warranty. In no event will
@@ -15,13 +16,11 @@ documentation would be appreciated but is not required.
being the original software.
3. This notice may not be removed or altered from any source distribution.
-*/
+***/
//----------------------------------------
-// Created: 2012-07-18 05:34:56
+// Created: 2012-07-01 17:32:52
//----------------------------------------
-#ifndef __sf_v8_H__
-#define __sf_v8_H__
#include <SFML/Graphics.hpp>
#include <SFML/Audio.hpp>
#include <SFML/Graphics.hpp>
@@ -33,780 +32,701 @@ being the original software.
#include <v8.h>
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::Font &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Font &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Font &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Font *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Font *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Font *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::Font &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Font &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Font &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Font *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Font *&CPP);
}
//----------------------------------------
#ifndef NO_SFML_NETWORK
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::SocketSelector &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::SocketSelector &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::SocketSelector &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::SocketSelector *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::SocketSelector *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::SocketSelector *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::SocketSelector &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::SocketSelector &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::SocketSelector &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::SocketSelector *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::SocketSelector *&CPP);
}
//----------------------------------------
#endif
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::View &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::View &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::View &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::View *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::View *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::View *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::View &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::View &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::View &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::View *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::View *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS2(const ::sf::RenderWindow &JS);
-v8::Handle<v8::Value> CastToJS(::sf::RenderWindow *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::RenderWindow *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::RenderWindow *&CPP);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::RenderWindow &JS);
+inline v8::Handle<v8::Value> CastToJS(::sf::RenderWindow *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::RenderWindow *&CPP);
}
//----------------------------------------
#ifndef NO_SFML_NETWORK
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::Ftp::Response &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Ftp::Response &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Ftp::Response &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Ftp::Response *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Ftp::Response *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Ftp::Response *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::Ftp::Response &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Ftp::Response &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Ftp::Response &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Ftp::Response *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Ftp::Response *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(::sf::Ftp::Response::Status JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Ftp::Response::Status &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Ftp::Response::Status JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Ftp::Response::Status &CPP);
}
//----------------------------------------
#endif
#ifndef NO_SFML_NETWORK
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::Ftp::DirectoryResponse &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Ftp::DirectoryResponse &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Ftp::DirectoryResponse &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Ftp::DirectoryResponse *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Ftp::DirectoryResponse *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Ftp::DirectoryResponse *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::Ftp::DirectoryResponse &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Ftp::DirectoryResponse &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Ftp::DirectoryResponse &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Ftp::DirectoryResponse *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Ftp::DirectoryResponse *&CPP);
}
//----------------------------------------
#endif
#ifndef NO_SFML_NETWORK
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::Ftp::ListingResponse &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Ftp::ListingResponse &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Ftp::ListingResponse &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Ftp::ListingResponse *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Ftp::ListingResponse *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Ftp::ListingResponse *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::Ftp::ListingResponse &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Ftp::ListingResponse &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Ftp::ListingResponse &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Ftp::ListingResponse *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Ftp::ListingResponse *&CPP);
}
//----------------------------------------
#endif
#ifndef NO_SFML_NETWORK
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS2(const ::sf::Ftp &JS);
-v8::Handle<v8::Value> CastToJS(::sf::Ftp *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Ftp *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Ftp *&CPP);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Ftp &JS);
+inline v8::Handle<v8::Value> CastToJS(::sf::Ftp *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Ftp *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(::sf::Ftp::TransferMode JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Ftp::TransferMode &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Ftp::TransferMode JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Ftp::TransferMode &CPP);
}
//----------------------------------------
#endif
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS2(const ::sf::RenderTexture &JS);
-v8::Handle<v8::Value> CastToJS(::sf::RenderTexture *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::RenderTexture *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::RenderTexture *&CPP);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::RenderTexture &JS);
+inline v8::Handle<v8::Value> CastToJS(::sf::RenderTexture *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::RenderTexture *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::SoundStream::Chunk &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::SoundStream::Chunk &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::SoundStream::Chunk &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::SoundStream::Chunk *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::SoundStream::Chunk *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::SoundStream::Chunk *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::SoundStream::Chunk &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::SoundStream::Chunk &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::SoundStream::Chunk &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::SoundStream::Chunk *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::SoundStream::Chunk *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS2(const ::sf::SoundStream &JS);
-v8::Handle<v8::Value> CastToJS(::sf::SoundStream *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::SoundStream *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::SoundStream *&CPP);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::SoundStream &JS);
+inline v8::Handle<v8::Value> CastToJS(::sf::SoundStream *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::SoundStream *&CPP);
}
//----------------------------------------
#ifndef NO_SFML_NETWORK
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::Http::Request &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Http::Request &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Http::Request &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Http::Request *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Http::Request *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Http::Request *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::Http::Request &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Http::Request &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Http::Request &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Http::Request *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Http::Request *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(::sf::Http::Request::Method JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Http::Request::Method &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Http::Request::Method JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Http::Request::Method &CPP);
}
//----------------------------------------
#endif
#ifndef NO_SFML_NETWORK
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::Http::Response &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Http::Response &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Http::Response &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Http::Response *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Http::Response *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Http::Response *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::Http::Response &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Http::Response &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Http::Response &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Http::Response *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Http::Response *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(::sf::Http::Response::Status JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Http::Response::Status &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Http::Response::Status JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Http::Response::Status &CPP);
}
//----------------------------------------
#endif
#ifndef NO_SFML_NETWORK
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS2(const ::sf::Http &JS);
-v8::Handle<v8::Value> CastToJS(::sf::Http *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Http *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Http *&CPP);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Http &JS);
+inline v8::Handle<v8::Value> CastToJS(::sf::Http *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Http *&CPP);
}
//----------------------------------------
#endif
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::CircleShape &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::CircleShape &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::CircleShape &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::CircleShape *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::CircleShape *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::CircleShape *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::CircleShape &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::CircleShape &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::CircleShape &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::CircleShape *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::CircleShape *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::Vector3i &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Vector3i &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Vector3i &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Vector3i *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Vector3i *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Vector3i *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::Vector3i &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Vector3i &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Vector3i &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Vector3i *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Vector3i *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::VertexArray &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::VertexArray &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::VertexArray &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::VertexArray *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::VertexArray *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::VertexArray *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::VertexArray &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::VertexArray &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::VertexArray &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::VertexArray *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::VertexArray *&CPP);
}
//----------------------------------------
#ifndef NO_SFML_NETWORK
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::Packet &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Packet &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Packet &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Packet *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Packet *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Packet *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::Packet &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Packet &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Packet &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Packet *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Packet *&CPP);
}
//----------------------------------------
#endif
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::Text &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Text &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Text &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Text *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Text *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Text *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::Text &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Text &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Text &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Text *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Text *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(::sf::Text::Style JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Text::Style &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Text::Style JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Text::Style &CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::Vertex &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Vertex &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Vertex &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Vertex *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Vertex *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Vertex *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::Vertex &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Vertex &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Vertex &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Vertex *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Vertex *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::Shader::CurrentTextureType &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Shader::CurrentTextureType &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Shader::CurrentTextureType &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Shader::CurrentTextureType *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Shader::CurrentTextureType *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Shader::CurrentTextureType *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::Shader::CurrentTextureType &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Shader::CurrentTextureType &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Shader::CurrentTextureType &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Shader::CurrentTextureType *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Shader::CurrentTextureType *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS2(const ::sf::Shader &JS);
-v8::Handle<v8::Value> CastToJS(::sf::Shader *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Shader *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Shader *&CPP);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Shader &JS);
+inline v8::Handle<v8::Value> CastToJS(::sf::Shader *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Shader *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(::sf::Shader::Type JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Shader::Type &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Shader::Type JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Shader::Type &CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS2(const ::sf::InputStream &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::InputStream &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::InputStream *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::InputStream *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::InputStream *&CPP);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::InputStream &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::InputStream &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::InputStream *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::InputStream *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::IntRect &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::IntRect &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::IntRect &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::IntRect *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::IntRect *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::IntRect *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::IntRect &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::IntRect &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::IntRect &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::IntRect *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::IntRect *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::String &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::String &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::String &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::String *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::String *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::String *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::String &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::String &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::String &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::String *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::String *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::RenderStates &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::RenderStates &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::RenderStates &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::RenderStates *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::RenderStates *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::RenderStates *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::RenderStates &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::RenderStates &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::RenderStates &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::RenderStates *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::RenderStates *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::VideoMode &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::VideoMode &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::VideoMode &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::VideoMode *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::VideoMode *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::VideoMode *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::VideoMode &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::VideoMode &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::VideoMode &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::VideoMode *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::VideoMode *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS2(const ::sf::SoundBufferRecorder &JS);
-v8::Handle<v8::Value> CastToJS(::sf::SoundBufferRecorder *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::SoundBufferRecorder *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::SoundBufferRecorder *&CPP);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::SoundBufferRecorder &JS);
+inline v8::Handle<v8::Value> CastToJS(::sf::SoundBufferRecorder *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::SoundBufferRecorder *&CPP);
}
//----------------------------------------
#ifndef NO_SFML_NETWORK
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS2(const ::sf::Socket &JS);
-v8::Handle<v8::Value> CastToJS(::sf::Socket *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Socket *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Socket *&CPP);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Socket &JS);
+inline v8::Handle<v8::Value> CastToJS(::sf::Socket *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Socket *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(::sf::Socket::Status JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Socket::Status &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Socket::Status JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Socket::Status &CPP);
}
//----------------------------------------
#endif
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::Sound &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Sound &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Sound &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Sound *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Sound *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Sound *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::Sound &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Sound &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Sound &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Sound *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Sound *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS2(const ::sf::Music &JS);
-v8::Handle<v8::Value> CastToJS(::sf::Music *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Music *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Music *&CPP);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Music &JS);
+inline v8::Handle<v8::Value> CastToJS(::sf::Music *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Music *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS2(const ::sf::Shape &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Shape &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Shape *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Shape *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Shape *&CPP);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Shape &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Shape &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Shape *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Shape *&CPP);
}
//----------------------------------------
#ifndef NO_SFML_NETWORK
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS2(const ::sf::UdpSocket &JS);
-v8::Handle<v8::Value> CastToJS(::sf::UdpSocket *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::UdpSocket *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::UdpSocket *&CPP);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::UdpSocket &JS);
+inline v8::Handle<v8::Value> CastToJS(::sf::UdpSocket *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::UdpSocket *&CPP);
}
//----------------------------------------
#endif
#ifndef NO_SFML_NETWORK
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::IpAddress &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::IpAddress &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::IpAddress &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::IpAddress *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::IpAddress *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::IpAddress *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::IpAddress &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::IpAddress &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::IpAddress &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::IpAddress *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::IpAddress *&CPP);
}
//----------------------------------------
#endif
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::FloatRect &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::FloatRect &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::FloatRect &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::FloatRect *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::FloatRect *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::FloatRect *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::FloatRect &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::FloatRect &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::FloatRect &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::FloatRect *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::FloatRect *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS2(const ::sf::NonCopyable &JS);
-v8::Handle<v8::Value> CastToJS(::sf::NonCopyable *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::NonCopyable *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::NonCopyable *&CPP);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::NonCopyable &JS);
+inline v8::Handle<v8::Value> CastToJS(::sf::NonCopyable *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::NonCopyable *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::Utf8 &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Utf8 &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Utf8 &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Utf8 *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Utf8 *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Utf8 *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::Utf8 &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Utf8 &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Utf8 &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Utf8 *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Utf8 *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::Vector2f &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Vector2f &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Vector2f &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Vector2f *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Vector2f *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Vector2f *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::Vector2f &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Vector2f &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Vector2f &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Vector2f *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Vector2f *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::Vector2i &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Vector2i &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Vector2i &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Vector2i *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Vector2i *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Vector2i *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::Vector2i &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Vector2i &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Vector2i &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Vector2i *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Vector2i *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::Vector2u &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Vector2u &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Vector2u &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Vector2u *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Vector2u *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Vector2u *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::Vector2u &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Vector2u &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Vector2u &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Vector2u *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Vector2u *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::Vector3f &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Vector3f &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Vector3f &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Vector3f *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Vector3f *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Vector3f *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::Vector3f &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Vector3f &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Vector3f &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Vector3f *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Vector3f *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::Transformable &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Transformable &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Transformable &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Transformable *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Transformable *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Transformable *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::Transformable &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Transformable &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Transformable &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Transformable *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Transformable *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::Clock &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Clock &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Clock &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Clock *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Clock *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Clock *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::Clock &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Clock &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Clock &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Clock *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Clock *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::Mouse &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Mouse &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Mouse &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Mouse *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Mouse *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Mouse *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::Mouse &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Mouse &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Mouse &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Mouse *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Mouse *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(::sf::Mouse::Button JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Mouse::Button &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Mouse::Button JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Mouse::Button &CPP);
}
//----------------------------------------
#ifndef NO_SFML_NETWORK
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS2(const ::sf::TcpSocket &JS);
-v8::Handle<v8::Value> CastToJS(::sf::TcpSocket *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::TcpSocket *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::TcpSocket *&CPP);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::TcpSocket &JS);
+inline v8::Handle<v8::Value> CastToJS(::sf::TcpSocket *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::TcpSocket *&CPP);
}
//----------------------------------------
#endif
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS2(const ::sf::SoundRecorder &JS);
-v8::Handle<v8::Value> CastToJS(::sf::SoundRecorder *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::SoundRecorder *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::SoundRecorder *&CPP);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::SoundRecorder &JS);
+inline v8::Handle<v8::Value> CastToJS(::sf::SoundRecorder *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::SoundRecorder *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::Color &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Color &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Color &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Color *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Color *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Color *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::Color &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Color &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Color &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Color *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Color *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::Texture &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Texture &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Texture &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Texture *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Texture *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Texture *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::Texture &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Texture &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Texture &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Texture *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Texture *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(::sf::Texture::CoordinateType JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Texture::CoordinateType &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Texture::CoordinateType JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Texture::CoordinateType &CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::ContextSettings &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::ContextSettings &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::ContextSettings &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::ContextSettings *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::ContextSettings *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::ContextSettings *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::ContextSettings &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::ContextSettings &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::ContextSettings &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::ContextSettings *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::ContextSettings *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS2(const ::sf::Context &JS);
-v8::Handle<v8::Value> CastToJS(::sf::Context *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Context *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Context *&CPP);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Context &JS);
+inline v8::Handle<v8::Value> CastToJS(::sf::Context *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Context *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::SoundBuffer &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::SoundBuffer &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::SoundBuffer &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::SoundBuffer *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::SoundBuffer *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::SoundBuffer *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::SoundBuffer &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::SoundBuffer &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::SoundBuffer &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::SoundBuffer *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::SoundBuffer *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::Image &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Image &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Image &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Image *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Image *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Image *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::Image &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Image &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Image &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Image *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Image *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::Sprite &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Sprite &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Sprite &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Sprite *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Sprite *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Sprite *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::Sprite &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Sprite &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Sprite &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Sprite *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Sprite *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::ConvexShape &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::ConvexShape &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::ConvexShape &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::ConvexShape *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::ConvexShape *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::ConvexShape *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::ConvexShape &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::ConvexShape &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::ConvexShape &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::ConvexShape *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::ConvexShape *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS2(const ::sf::Window &JS);
-v8::Handle<v8::Value> CastToJS(::sf::Window *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Window *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Window *&CPP);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Window &JS);
+inline v8::Handle<v8::Value> CastToJS(::sf::Window *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Window *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::Time &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Time &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Time &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Time *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Time *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Time *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::Time &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Time &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Time &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Time *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Time *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::Glyph &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Glyph &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Glyph &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Glyph *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Glyph *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Glyph *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::Glyph &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Glyph &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Glyph &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Glyph *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Glyph *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::Transform &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Transform &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Transform &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Transform *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Transform *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Transform *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::Transform &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Transform &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Transform &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Transform *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Transform *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::Joystick &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Joystick &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Joystick &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Joystick *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Joystick *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Joystick *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::Joystick &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Joystick &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Joystick &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Joystick *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Joystick *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(::sf::Joystick::Axis JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Joystick::Axis &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Joystick::Axis JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Joystick::Axis &CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS2(const ::sf::RenderTarget &JS);
-v8::Handle<v8::Value> CastToJS(::sf::RenderTarget *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::RenderTarget *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::RenderTarget *&CPP);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::RenderTarget &JS);
+inline v8::Handle<v8::Value> CastToJS(::sf::RenderTarget *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::RenderTarget *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::Listener &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Listener &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Listener &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Listener *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Listener *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Listener *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::Listener &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Listener &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Listener &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Listener *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Listener *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::SoundSource &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::SoundSource &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::SoundSource &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::SoundSource *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::SoundSource *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::SoundSource *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::SoundSource &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::SoundSource &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::SoundSource &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::SoundSource *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::SoundSource *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(::sf::SoundSource::Status JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::SoundSource::Status &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::SoundSource::Status JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::SoundSource::Status &CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::Event::SizeEvent &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Event::SizeEvent &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Event::SizeEvent &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Event::SizeEvent *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Event::SizeEvent *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Event::SizeEvent *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::Event::SizeEvent &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Event::SizeEvent &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Event::SizeEvent &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Event::SizeEvent *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Event::SizeEvent *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::Event::KeyEvent &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Event::KeyEvent &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Event::KeyEvent &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Event::KeyEvent *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Event::KeyEvent *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Event::KeyEvent *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::Event::KeyEvent &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Event::KeyEvent &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Event::KeyEvent &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Event::KeyEvent *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Event::KeyEvent *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::Event::TextEvent &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Event::TextEvent &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Event::TextEvent &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Event::TextEvent *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Event::TextEvent *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Event::TextEvent *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::Event::TextEvent &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Event::TextEvent &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Event::TextEvent &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Event::TextEvent *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Event::TextEvent *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::Event::MouseMoveEvent &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Event::MouseMoveEvent &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Event::MouseMoveEvent &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Event::MouseMoveEvent *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Event::MouseMoveEvent *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Event::MouseMoveEvent *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::Event::MouseMoveEvent &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Event::MouseMoveEvent &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Event::MouseMoveEvent &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Event::MouseMoveEvent *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Event::MouseMoveEvent *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::Event::MouseButtonEvent &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Event::MouseButtonEvent &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Event::MouseButtonEvent &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Event::MouseButtonEvent *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Event::MouseButtonEvent *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Event::MouseButtonEvent *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::Event::MouseButtonEvent &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Event::MouseButtonEvent &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Event::MouseButtonEvent &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Event::MouseButtonEvent *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Event::MouseButtonEvent *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::Event::MouseWheelEvent &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Event::MouseWheelEvent &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Event::MouseWheelEvent &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Event::MouseWheelEvent *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Event::MouseWheelEvent *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Event::MouseWheelEvent *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::Event::MouseWheelEvent &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Event::MouseWheelEvent &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Event::MouseWheelEvent &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Event::MouseWheelEvent *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Event::MouseWheelEvent *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::Event::JoystickConnectEvent &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Event::JoystickConnectEvent &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Event::JoystickConnectEvent &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Event::JoystickConnectEvent *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Event::JoystickConnectEvent *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Event::JoystickConnectEvent *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::Event::JoystickConnectEvent &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Event::JoystickConnectEvent &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Event::JoystickConnectEvent &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Event::JoystickConnectEvent *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Event::JoystickConnectEvent *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::Event::JoystickMoveEvent &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Event::JoystickMoveEvent &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Event::JoystickMoveEvent &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Event::JoystickMoveEvent *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Event::JoystickMoveEvent *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Event::JoystickMoveEvent *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::Event::JoystickMoveEvent &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Event::JoystickMoveEvent &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Event::JoystickMoveEvent &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Event::JoystickMoveEvent *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Event::JoystickMoveEvent *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::Event::JoystickButtonEvent &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Event::JoystickButtonEvent &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Event::JoystickButtonEvent &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Event::JoystickButtonEvent *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Event::JoystickButtonEvent *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Event::JoystickButtonEvent *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::Event::JoystickButtonEvent &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Event::JoystickButtonEvent &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Event::JoystickButtonEvent &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Event::JoystickButtonEvent *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Event::JoystickButtonEvent *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::Event &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Event &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Event &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Event *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Event *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Event *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::Event &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Event &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Event &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Event *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Event *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(::sf::Event::EventType JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Event::EventType &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Event::EventType JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Event::EventType &CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::GlResource &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::GlResource &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::GlResource &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::GlResource *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::GlResource *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::GlResource *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::GlResource &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::GlResource &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::GlResource &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::GlResource *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::GlResource *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::RectangleShape &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::RectangleShape &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::RectangleShape &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::RectangleShape *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::RectangleShape *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::RectangleShape *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::RectangleShape &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::RectangleShape &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::RectangleShape &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::RectangleShape *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::RectangleShape *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::Utf16 &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Utf16 &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Utf16 &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Utf16 *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Utf16 *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Utf16 *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::Utf16 &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Utf16 &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Utf16 &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Utf16 *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Utf16 *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::Utf32 &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Utf32 &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Utf32 &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Utf32 *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Utf32 *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Utf32 *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::Utf32 &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Utf32 &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Utf32 &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Utf32 *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Utf32 *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(const ::sf::Keyboard &JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Keyboard &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Keyboard &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Keyboard *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Keyboard *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Keyboard *&CPP);
+inline v8::Handle<v8::Value> CastToJS(const ::sf::Keyboard &JS);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Keyboard &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Keyboard &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Keyboard *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Keyboard *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(::sf::Keyboard::Key JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Keyboard::Key &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Keyboard::Key JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Keyboard::Key &CPP);
}
//----------------------------------------
#ifndef NO_SFML_NETWORK
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS2(const ::sf::TcpListener &JS);
-v8::Handle<v8::Value> CastToJS(::sf::TcpListener *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::TcpListener *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::TcpListener *&CPP);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::TcpListener &JS);
+inline v8::Handle<v8::Value> CastToJS(::sf::TcpListener *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::TcpListener *&CPP);
}
//----------------------------------------
#endif
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS2(const ::sf::Drawable &JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Drawable &CPP);
-v8::Handle<v8::Value> CastToJS(::sf::Drawable *JS);
-v8::Handle<v8::Value> CastToJS2(const ::sf::Drawable *JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Drawable *&CPP);
+inline v8::Handle<v8::Value> CastToJS2(const ::sf::Drawable &JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Drawable &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::Drawable *JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::Drawable *&CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(::sf::PrimitiveType JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::PrimitiveType &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::PrimitiveType JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::PrimitiveType &CPP);
}
//----------------------------------------
namespace v8wrap {
-v8::Handle<v8::Value> CastToJS(::sf::BlendMode JS);
-void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::BlendMode &CPP);
+inline v8::Handle<v8::Value> CastToJS(::sf::BlendMode JS);
+inline void AutoCastToCPP(v8::Handle<v8::Value> Value, ::sf::BlendMode &CPP);
}
//----------------------------------------
#include "v8wrap.h"
@@ -2665,4 +2585,3 @@ class sf_Style: public v8wrap::V8NamespaceTemplate<sf_Style> {
//----------------------------------------
}
//----------------------------------------
-#endif
View
22 sfml-cmake.pro
@@ -2,10 +2,23 @@ TEMPLATE = app
CONFIG += console
CONFIG -= qt
+macx {
+ CONFIG_PLATFORM_PATH = mac
+}
+
+win32 {
+ CONFIG_PLATFORM_PATH = win32
+}
+
+unix:!macx {
+ CONFIG_PLATFORM_PATH = unix
+}
+
SOURCES += main.cpp \
sf_v8.cpp \
v8wrap.cpp \
- character.cpp
+ JSCharacter.cpp \
+ Character.cpp
OTHER_FILES += \
build.sh \
@@ -14,7 +27,6 @@ OTHER_FILES += \
CMakeLists.txt \
.gitignore \
build/cmake/modules/FindSFML.cmake \
- build/clean-dsstore.sh \
ResourcePath.mm \
js/robot1.js
@@ -22,5 +34,9 @@ HEADERS += \
v8wrap.h \
sf_v8.h \
ResourcePath.hpp \
- character.h
+ JSCharacter.h \
+ Character.h
+INCLUDEPATH += "$${PWD}/library/sfml/$${CONFIG_PLATFORM_PATH}/include"
+INCLUDEPATH += "$${PWD}/library/v8/$${CONFIG_PLATFORM_PATH}/include"
+INCLUDEPATH += "$${PWD}/library/sndfile/$${CONFIG_PLATFORM_PATH}/include"
Please sign in to comment.
Something went wrong with that request. Please try again.