/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (http://www.swig.org).
 * Version 2.0.4
 * 
 * This file is not intended to be easily readable and contains a number of 
 * coding conventions designed to improve portability and efficiency. Do not make
 * changes to this file unless you know what you are doing--modify the SWIG 
 * interface file instead. 
 * ----------------------------------------------------------------------------- */

#define WIN32_LEAN_AND_MEAN
#pragma warning(disable : 4312)
#pragma warning(disable : 4311)
#pragma warning(disable : 4267)


#define SWIGRUBY
#define SWIG_DIRECTORS


#ifdef __cplusplus
/* SwigValueWrapper is described in swig.swg */
template<typename T> class SwigValueWrapper {
  struct SwigMovePointer {
    T *ptr;
    SwigMovePointer(T *p) : ptr(p) { }
    ~SwigMovePointer() { delete ptr; }
    SwigMovePointer& operator=(SwigMovePointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
  } pointer;
  SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
  SwigValueWrapper(const SwigValueWrapper<T>& rhs);
public:
  SwigValueWrapper() : pointer(0) { }
  SwigValueWrapper& operator=(const T& t) { SwigMovePointer tmp(new T(t)); pointer = tmp; return *this; }
  operator T&() const { return *pointer.ptr; }
  T *operator&() { return pointer.ptr; }
};

template <typename T> T SwigValueInit() {
  return T();
}
#endif

/* -----------------------------------------------------------------------------
 *  This section contains generic SWIG labels for method/variable
 *  declarations/attributes, and other compiler dependent labels.
 * ----------------------------------------------------------------------------- */

/* template workaround for compilers that cannot correctly implement the C++ standard */
#ifndef SWIGTEMPLATEDISAMBIGUATOR
# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
#  define SWIGTEMPLATEDISAMBIGUATOR template
# elif defined(__HP_aCC)
/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
#  define SWIGTEMPLATEDISAMBIGUATOR template
# else
#  define SWIGTEMPLATEDISAMBIGUATOR
# endif
#endif

/* inline attribute */
#ifndef SWIGINLINE
# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
#   define SWIGINLINE inline
# else
#   define SWIGINLINE
# endif
#endif

/* attribute recognised by some compilers to avoid 'unused' warnings */
#ifndef SWIGUNUSED
# if defined(__GNUC__)
#   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
#     define SWIGUNUSED __attribute__ ((__unused__)) 
#   else
#     define SWIGUNUSED
#   endif
# elif defined(__ICC)
#   define SWIGUNUSED __attribute__ ((__unused__)) 
# else
#   define SWIGUNUSED 
# endif
#endif

#ifndef SWIG_MSC_UNSUPPRESS_4505
# if defined(_MSC_VER)
#   pragma warning(disable : 4505) /* unreferenced local function has been removed */
# endif 
#endif

#ifndef SWIGUNUSEDPARM
# ifdef __cplusplus
#   define SWIGUNUSEDPARM(p)
# else
#   define SWIGUNUSEDPARM(p) p SWIGUNUSED 
# endif
#endif

/* internal SWIG method */
#ifndef SWIGINTERN
# define SWIGINTERN static SWIGUNUSED
#endif

/* internal inline SWIG method */
#ifndef SWIGINTERNINLINE
# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
#endif

/* exporting methods */
#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
#  ifndef GCC_HASCLASSVISIBILITY
#    define GCC_HASCLASSVISIBILITY
#  endif
#endif

#ifndef SWIGEXPORT
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
#   if defined(STATIC_LINKED)
#     define SWIGEXPORT
#   else
#     define SWIGEXPORT __declspec(dllexport)
#   endif
# else
#   if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
#     define SWIGEXPORT __attribute__ ((visibility("default")))
#   else
#     define SWIGEXPORT
#   endif
# endif
#endif

/* calling conventions for Windows */
#ifndef SWIGSTDCALL
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
#   define SWIGSTDCALL __stdcall
# else
#   define SWIGSTDCALL
# endif 
#endif

/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
# define _CRT_SECURE_NO_DEPRECATE
#endif

/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
# define _SCL_SECURE_NO_DEPRECATE
#endif


/* -----------------------------------------------------------------------------
 *  This section contains generic SWIG labels for method/variable
 *  declarations/attributes, and other compiler dependent labels.
 * ----------------------------------------------------------------------------- */

/* template workaround for compilers that cannot correctly implement the C++ standard */
#ifndef SWIGTEMPLATEDISAMBIGUATOR
# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
#  define SWIGTEMPLATEDISAMBIGUATOR template
# elif defined(__HP_aCC)
/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
#  define SWIGTEMPLATEDISAMBIGUATOR template
# else
#  define SWIGTEMPLATEDISAMBIGUATOR
# endif
#endif

/* inline attribute */
#ifndef SWIGINLINE
# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
#   define SWIGINLINE inline
# else
#   define SWIGINLINE
# endif
#endif

/* attribute recognised by some compilers to avoid 'unused' warnings */
#ifndef SWIGUNUSED
# if defined(__GNUC__)
#   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
#     define SWIGUNUSED __attribute__ ((__unused__)) 
#   else
#     define SWIGUNUSED
#   endif
# elif defined(__ICC)
#   define SWIGUNUSED __attribute__ ((__unused__)) 
# else
#   define SWIGUNUSED 
# endif
#endif

#ifndef SWIG_MSC_UNSUPPRESS_4505
# if defined(_MSC_VER)
#   pragma warning(disable : 4505) /* unreferenced local function has been removed */
# endif 
#endif

#ifndef SWIGUNUSEDPARM
# ifdef __cplusplus
#   define SWIGUNUSEDPARM(p)
# else
#   define SWIGUNUSEDPARM(p) p SWIGUNUSED 
# endif
#endif

/* internal SWIG method */
#ifndef SWIGINTERN
# define SWIGINTERN static SWIGUNUSED
#endif

/* internal inline SWIG method */
#ifndef SWIGINTERNINLINE
# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
#endif

/* exporting methods */
#if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
#  ifndef GCC_HASCLASSVISIBILITY
#    define GCC_HASCLASSVISIBILITY
#  endif
#endif

#ifndef SWIGEXPORT
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
#   if defined(STATIC_LINKED)
#     define SWIGEXPORT
#   else
#     define SWIGEXPORT __declspec(dllexport)
#   endif
# else
#   if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
#     define SWIGEXPORT __attribute__ ((visibility("default")))
#   else
#     define SWIGEXPORT
#   endif
# endif
#endif

/* calling conventions for Windows */
#ifndef SWIGSTDCALL
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
#   define SWIGSTDCALL __stdcall
# else
#   define SWIGSTDCALL
# endif 
#endif

/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
# define _CRT_SECURE_NO_DEPRECATE
#endif

/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
# define _SCL_SECURE_NO_DEPRECATE
#endif


/* -----------------------------------------------------------------------------
 * swigrun.swg
 *
 * This file contains generic C API SWIG runtime support for pointer
 * type checking.
 * ----------------------------------------------------------------------------- */

/* This should only be incremented when either the layout of swig_type_info changes,
   or for whatever reason, the runtime changes incompatibly */
#define SWIG_RUNTIME_VERSION "4"

/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
#ifdef SWIG_TYPE_TABLE
# define SWIG_QUOTE_STRING(x) #x
# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
#else
# define SWIG_TYPE_TABLE_NAME
#endif

/*
  You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
  creating a static or dynamic library from the SWIG runtime code.
  In 99.9% of the cases, SWIG just needs to declare them as 'static'.
  
  But only do this if strictly necessary, ie, if you have problems
  with your compiler or suchlike.
*/

#ifndef SWIGRUNTIME
# define SWIGRUNTIME SWIGINTERN
#endif

#ifndef SWIGRUNTIMEINLINE
# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
#endif

/*  Generic buffer size */
#ifndef SWIG_BUFFER_SIZE
# define SWIG_BUFFER_SIZE 1024
#endif

/* Flags for pointer conversions */
#define SWIG_POINTER_DISOWN        0x1
#define SWIG_CAST_NEW_MEMORY       0x2

/* Flags for new pointer objects */
#define SWIG_POINTER_OWN           0x1


/* 
   Flags/methods for returning states.
   
   The SWIG conversion methods, as ConvertPtr, return an integer 
   that tells if the conversion was successful or not. And if not,
   an error code can be returned (see swigerrors.swg for the codes).
   
   Use the following macros/flags to set or process the returning
   states.
   
   In old versions of SWIG, code such as the following was usually written:

     if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
       // success code
     } else {
       //fail code
     }

   Now you can be more explicit:

    int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
    if (SWIG_IsOK(res)) {
      // success code
    } else {
      // fail code
    }

   which is the same really, but now you can also do

    Type *ptr;
    int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
    if (SWIG_IsOK(res)) {
      // success code
      if (SWIG_IsNewObj(res) {
        ...
	delete *ptr;
      } else {
        ...
      }
    } else {
      // fail code
    }
    
   I.e., now SWIG_ConvertPtr can return new objects and you can
   identify the case and take care of the deallocation. Of course that
   also requires SWIG_ConvertPtr to return new result values, such as

      int SWIG_ConvertPtr(obj, ptr,...) {         
        if (<obj is ok>) {			       
          if (<need new object>) {		       
            *ptr = <ptr to new allocated object>; 
            return SWIG_NEWOBJ;		       
          } else {				       
            *ptr = <ptr to old object>;	       
            return SWIG_OLDOBJ;		       
          } 				       
        } else {				       
          return SWIG_BADOBJ;		       
        }					       
      }

   Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
   more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
   SWIG errors code.

   Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
   allows to return the 'cast rank', for example, if you have this

       int food(double)
       int fooi(int);

   and you call
 
      food(1)   // cast rank '1'  (1 -> 1.0)
      fooi(1)   // cast rank '0'

   just use the SWIG_AddCast()/SWIG_CheckState()
*/

#define SWIG_OK                    (0) 
#define SWIG_ERROR                 (-1)
#define SWIG_IsOK(r)               (r >= 0)
#define SWIG_ArgError(r)           ((r != SWIG_ERROR) ? r : SWIG_TypeError)  

/* The CastRankLimit says how many bits are used for the cast rank */
#define SWIG_CASTRANKLIMIT         (1 << 8)
/* The NewMask denotes the object was created (using new/malloc) */
#define SWIG_NEWOBJMASK            (SWIG_CASTRANKLIMIT  << 1)
/* The TmpMask is for in/out typemaps that use temporal objects */
#define SWIG_TMPOBJMASK            (SWIG_NEWOBJMASK << 1)
/* Simple returning values */
#define SWIG_BADOBJ                (SWIG_ERROR)
#define SWIG_OLDOBJ                (SWIG_OK)
#define SWIG_NEWOBJ                (SWIG_OK | SWIG_NEWOBJMASK)
#define SWIG_TMPOBJ                (SWIG_OK | SWIG_TMPOBJMASK)
/* Check, add and del mask methods */
#define SWIG_AddNewMask(r)         (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
#define SWIG_DelNewMask(r)         (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
#define SWIG_IsNewObj(r)           (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
#define SWIG_AddTmpMask(r)         (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
#define SWIG_DelTmpMask(r)         (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
#define SWIG_IsTmpObj(r)           (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))

/* Cast-Rank Mode */
#if defined(SWIG_CASTRANK_MODE)
#  ifndef SWIG_TypeRank
#    define SWIG_TypeRank             unsigned long
#  endif
#  ifndef SWIG_MAXCASTRANK            /* Default cast allowed */
#    define SWIG_MAXCASTRANK          (2)
#  endif
#  define SWIG_CASTRANKMASK          ((SWIG_CASTRANKLIMIT) -1)
#  define SWIG_CastRank(r)           (r & SWIG_CASTRANKMASK)
SWIGINTERNINLINE int SWIG_AddCast(int r) { 
  return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
}
SWIGINTERNINLINE int SWIG_CheckState(int r) { 
  return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; 
}
#else /* no cast-rank mode */
#  define SWIG_AddCast
#  define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
#endif


#include <string.h>

#ifdef __cplusplus
extern "C" {
#endif

typedef void *(*swig_converter_func)(void *, int *);
typedef struct swig_type_info *(*swig_dycast_func)(void **);

/* Structure to store information on one type */
typedef struct swig_type_info {
  const char             *name;			/* mangled name of this type */
  const char             *str;			/* human readable name of this type */
  swig_dycast_func        dcast;		/* dynamic cast function down a hierarchy */
  struct swig_cast_info  *cast;			/* linked list of types that can cast into this type */
  void                   *clientdata;		/* language specific type data */
  int                    owndata;		/* flag if the structure owns the clientdata */
} swig_type_info;

/* Structure to store a type and conversion function used for casting */
typedef struct swig_cast_info {
  swig_type_info         *type;			/* pointer to type that is equivalent to this type */
  swig_converter_func     converter;		/* function to cast the void pointers */
  struct swig_cast_info  *next;			/* pointer to next cast in linked list */
  struct swig_cast_info  *prev;			/* pointer to the previous cast */
} swig_cast_info;

/* Structure used to store module information
 * Each module generates one structure like this, and the runtime collects
 * all of these structures and stores them in a circularly linked list.*/
typedef struct swig_module_info {
  swig_type_info         **types;		/* Array of pointers to swig_type_info structures that are in this module */
  size_t                 size;		        /* Number of types in this module */
  struct swig_module_info *next;		/* Pointer to next element in circularly linked list */
  swig_type_info         **type_initial;	/* Array of initially generated type structures */
  swig_cast_info         **cast_initial;	/* Array of initially generated casting structures */
  void                    *clientdata;		/* Language specific module data */
} swig_module_info;

/* 
  Compare two type names skipping the space characters, therefore
  "char*" == "char *" and "Class<int>" == "Class<int >", etc.

  Return 0 when the two name types are equivalent, as in
  strncmp, but skipping ' '.
*/
SWIGRUNTIME int
SWIG_TypeNameComp(const char *f1, const char *l1,
		  const char *f2, const char *l2) {
  for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
    while ((*f1 == ' ') && (f1 != l1)) ++f1;
    while ((*f2 == ' ') && (f2 != l2)) ++f2;
    if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
  }
  return (int)((l1 - f1) - (l2 - f2));
}

/*
  Check type equivalence in a name list like <name1>|<name2>|...
  Return 0 if not equal, 1 if equal
*/
SWIGRUNTIME int
SWIG_TypeEquiv(const char *nb, const char *tb) {
  int equiv = 0;
  const char* te = tb + strlen(tb);
  const char* ne = nb;
  while (!equiv && *ne) {
    for (nb = ne; *ne; ++ne) {
      if (*ne == '|') break;
    }
    equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
    if (*ne) ++ne;
  }
  return equiv;
}

/*
  Check type equivalence in a name list like <name1>|<name2>|...
  Return 0 if equal, -1 if nb < tb, 1 if nb > tb
*/
SWIGRUNTIME int
SWIG_TypeCompare(const char *nb, const char *tb) {
  int equiv = 0;
  const char* te = tb + strlen(tb);
  const char* ne = nb;
  while (!equiv && *ne) {
    for (nb = ne; *ne; ++ne) {
      if (*ne == '|') break;
    }
    equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
    if (*ne) ++ne;
  }
  return equiv;
}


/*
  Check the typename
*/
SWIGRUNTIME swig_cast_info *
SWIG_TypeCheck(const char *c, swig_type_info *ty) {
  if (ty) {
    swig_cast_info *iter = ty->cast;
    while (iter) {
      if (strcmp(iter->type->name, c) == 0) {
        if (iter == ty->cast)
          return iter;
        /* Move iter to the top of the linked list */
        iter->prev->next = iter->next;
        if (iter->next)
          iter->next->prev = iter->prev;
        iter->next = ty->cast;
        iter->prev = 0;
        if (ty->cast) ty->cast->prev = iter;
        ty->cast = iter;
        return iter;
      }
      iter = iter->next;
    }
  }
  return 0;
}

/* 
  Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
*/
SWIGRUNTIME swig_cast_info *
SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
  if (ty) {
    swig_cast_info *iter = ty->cast;
    while (iter) {
      if (iter->type == from) {
        if (iter == ty->cast)
          return iter;
        /* Move iter to the top of the linked list */
        iter->prev->next = iter->next;
        if (iter->next)
          iter->next->prev = iter->prev;
        iter->next = ty->cast;
        iter->prev = 0;
        if (ty->cast) ty->cast->prev = iter;
        ty->cast = iter;
        return iter;
      }
      iter = iter->next;
    }
  }
  return 0;
}

/*
  Cast a pointer up an inheritance hierarchy
*/
SWIGRUNTIMEINLINE void *
SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
  return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
}

/* 
   Dynamic pointer casting. Down an inheritance hierarchy
*/
SWIGRUNTIME swig_type_info *
SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
  swig_type_info *lastty = ty;
  if (!ty || !ty->dcast) return ty;
  while (ty && (ty->dcast)) {
    ty = (*ty->dcast)(ptr);
    if (ty) lastty = ty;
  }
  return lastty;
}

/*
  Return the name associated with this type
*/
SWIGRUNTIMEINLINE const char *
SWIG_TypeName(const swig_type_info *ty) {
  return ty->name;
}

/*
  Return the pretty name associated with this type,
  that is an unmangled type name in a form presentable to the user.
*/
SWIGRUNTIME const char *
SWIG_TypePrettyName(const swig_type_info *type) {
  /* The "str" field contains the equivalent pretty names of the
     type, separated by vertical-bar characters.  We choose
     to print the last name, as it is often (?) the most
     specific. */
  if (!type) return NULL;
  if (type->str != NULL) {
    const char *last_name = type->str;
    const char *s;
    for (s = type->str; *s; s++)
      if (*s == '|') last_name = s+1;
    return last_name;
  }
  else
    return type->name;
}

/* 
   Set the clientdata field for a type
*/
SWIGRUNTIME void
SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
  swig_cast_info *cast = ti->cast;
  /* if (ti->clientdata == clientdata) return; */
  ti->clientdata = clientdata;
  
  while (cast) {
    if (!cast->converter) {
      swig_type_info *tc = cast->type;
      if (!tc->clientdata) {
	SWIG_TypeClientData(tc, clientdata);
      }
    }    
    cast = cast->next;
  }
}
SWIGRUNTIME void
SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
  SWIG_TypeClientData(ti, clientdata);
  ti->owndata = 1;
}
  
/*
  Search for a swig_type_info structure only by mangled name
  Search is a O(log #types)
  
  We start searching at module start, and finish searching when start == end.  
  Note: if start == end at the beginning of the function, we go all the way around
  the circular list.
*/
SWIGRUNTIME swig_type_info *
SWIG_MangledTypeQueryModule(swig_module_info *start, 
                            swig_module_info *end, 
		            const char *name) {
  swig_module_info *iter = start;
  do {
    if (iter->size) {
      register size_t l = 0;
      register size_t r = iter->size - 1;
      do {
	/* since l+r >= 0, we can (>> 1) instead (/ 2) */
	register size_t i = (l + r) >> 1; 
	const char *iname = iter->types[i]->name;
	if (iname) {
	  register int compare = strcmp(name, iname);
	  if (compare == 0) {	    
	    return iter->types[i];
	  } else if (compare < 0) {
	    if (i) {
	      r = i - 1;
	    } else {
	      break;
	    }
	  } else if (compare > 0) {
	    l = i + 1;
	  }
	} else {
	  break; /* should never happen */
	}
      } while (l <= r);
    }
    iter = iter->next;
  } while (iter != end);
  return 0;
}

/*
  Search for a swig_type_info structure for either a mangled name or a human readable name.
  It first searches the mangled names of the types, which is a O(log #types)
  If a type is not found it then searches the human readable names, which is O(#types).
  
  We start searching at module start, and finish searching when start == end.  
  Note: if start == end at the beginning of the function, we go all the way around
  the circular list.
*/
SWIGRUNTIME swig_type_info *
SWIG_TypeQueryModule(swig_module_info *start, 
                     swig_module_info *end, 
		     const char *name) {
  /* STEP 1: Search the name field using binary search */
  swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
  if (ret) {
    return ret;
  } else {
    /* STEP 2: If the type hasn't been found, do a complete search
       of the str field (the human readable name) */
    swig_module_info *iter = start;
    do {
      register size_t i = 0;
      for (; i < iter->size; ++i) {
	if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
	  return iter->types[i];
      }
      iter = iter->next;
    } while (iter != end);
  }
  
  /* neither found a match */
  return 0;
}

/* 
   Pack binary data into a string
*/
SWIGRUNTIME char *
SWIG_PackData(char *c, void *ptr, size_t sz) {
  static const char hex[17] = "0123456789abcdef";
  register const unsigned char *u = (unsigned char *) ptr;
  register const unsigned char *eu =  u + sz;
  for (; u != eu; ++u) {
    register unsigned char uu = *u;
    *(c++) = hex[(uu & 0xf0) >> 4];
    *(c++) = hex[uu & 0xf];
  }
  return c;
}

/* 
   Unpack binary data from a string
*/
SWIGRUNTIME const char *
SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
  register unsigned char *u = (unsigned char *) ptr;
  register const unsigned char *eu = u + sz;
  for (; u != eu; ++u) {
    register char d = *(c++);
    register unsigned char uu;
    if ((d >= '0') && (d <= '9'))
      uu = ((d - '0') << 4);
    else if ((d >= 'a') && (d <= 'f'))
      uu = ((d - ('a'-10)) << 4);
    else 
      return (char *) 0;
    d = *(c++);
    if ((d >= '0') && (d <= '9'))
      uu |= (d - '0');
    else if ((d >= 'a') && (d <= 'f'))
      uu |= (d - ('a'-10));
    else 
      return (char *) 0;
    *u = uu;
  }
  return c;
}

/* 
   Pack 'void *' into a string buffer.
*/
SWIGRUNTIME char *
SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
  char *r = buff;
  if ((2*sizeof(void *) + 2) > bsz) return 0;
  *(r++) = '_';
  r = SWIG_PackData(r,&ptr,sizeof(void *));
  if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
  strcpy(r,name);
  return buff;
}

SWIGRUNTIME const char *
SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
  if (*c != '_') {
    if (strcmp(c,"NULL") == 0) {
      *ptr = (void *) 0;
      return name;
    } else {
      return 0;
    }
  }
  return SWIG_UnpackData(++c,ptr,sizeof(void *));
}

SWIGRUNTIME char *
SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
  char *r = buff;
  size_t lname = (name ? strlen(name) : 0);
  if ((2*sz + 2 + lname) > bsz) return 0;
  *(r++) = '_';
  r = SWIG_PackData(r,ptr,sz);
  if (lname) {
    strncpy(r,name,lname+1);
  } else {
    *r = 0;
  }
  return buff;
}

SWIGRUNTIME const char *
SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
  if (*c != '_') {
    if (strcmp(c,"NULL") == 0) {
      memset(ptr,0,sz);
      return name;
    } else {
      return 0;
    }
  }
  return SWIG_UnpackData(++c,ptr,sz);
}

#ifdef __cplusplus
}
#endif

/*  Errors in SWIG */
#define  SWIG_UnknownError    	   -1 
#define  SWIG_IOError        	   -2 
#define  SWIG_RuntimeError   	   -3 
#define  SWIG_IndexError     	   -4 
#define  SWIG_TypeError      	   -5 
#define  SWIG_DivisionByZero 	   -6 
#define  SWIG_OverflowError  	   -7 
#define  SWIG_SyntaxError    	   -8 
#define  SWIG_ValueError     	   -9 
#define  SWIG_SystemError    	   -10
#define  SWIG_AttributeError 	   -11
#define  SWIG_MemoryError    	   -12 
#define  SWIG_NullReferenceError   -13



#include <ruby.h>

/* Ruby 1.9.1 has a "memoisation optimisation" when compiling with GCC which
 * breaks using rb_intern as an lvalue, as SWIG does.  We work around this
 * issue for now by disabling this.
 * https://sourceforge.net/tracker/?func=detail&aid=2859614&group_id=1645&atid=101645
 */
#ifdef rb_intern
# undef rb_intern
#endif

/* Remove global macros defined in Ruby's win32.h */
#ifdef write
# undef write
#endif
#ifdef read
# undef read
#endif
#ifdef bind
# undef bind
#endif
#ifdef close
# undef close
#endif
#ifdef connect
# undef connect
#endif


/* Ruby 1.7 defines NUM2LL(), LL2NUM() and ULL2NUM() macros */
#ifndef NUM2LL
#define NUM2LL(x) NUM2LONG((x))
#endif
#ifndef LL2NUM
#define LL2NUM(x) INT2NUM((long) (x))
#endif
#ifndef ULL2NUM
#define ULL2NUM(x) UINT2NUM((unsigned long) (x))
#endif

/* Ruby 1.7 doesn't (yet) define NUM2ULL() */
#ifndef NUM2ULL
#ifdef HAVE_LONG_LONG
#define NUM2ULL(x) rb_num2ull((x))
#else
#define NUM2ULL(x) NUM2ULONG(x)
#endif
#endif

/* RSTRING_LEN, etc are new in Ruby 1.9, but ->ptr and ->len no longer work */
/* Define these for older versions so we can just write code the new way */
#ifndef RSTRING_LEN
# define RSTRING_LEN(x) RSTRING(x)->len
#endif
#ifndef RSTRING_PTR
# define RSTRING_PTR(x) RSTRING(x)->ptr
#endif
#ifndef RSTRING_END
# define RSTRING_END(x) (RSTRING_PTR(x) + RSTRING_LEN(x))
#endif
#ifndef RARRAY_LEN
# define RARRAY_LEN(x) RARRAY(x)->len
#endif
#ifndef RARRAY_PTR
# define RARRAY_PTR(x) RARRAY(x)->ptr
#endif
#ifndef RFLOAT_VALUE
# define RFLOAT_VALUE(x) RFLOAT(x)->value
#endif
#ifndef DOUBLE2NUM
# define DOUBLE2NUM(x) rb_float_new(x)
#endif
#ifndef RHASH_TBL
# define RHASH_TBL(x) (RHASH(x)->tbl)
#endif
#ifndef RHASH_ITER_LEV
# define RHASH_ITER_LEV(x) (RHASH(x)->iter_lev)
#endif
#ifndef RHASH_IFNONE
# define RHASH_IFNONE(x) (RHASH(x)->ifnone)
#endif
#ifndef RHASH_SIZE
# define RHASH_SIZE(x) (RHASH(x)->tbl->num_entries)
#endif
#ifndef RHASH_EMPTY_P
# define RHASH_EMPTY_P(x) (RHASH_SIZE(x) == 0)
#endif
#ifndef RSTRUCT_LEN
# define RSTRUCT_LEN(x) RSTRUCT(x)->len
#endif
#ifndef RSTRUCT_PTR
# define RSTRUCT_PTR(x) RSTRUCT(x)->ptr
#endif



/*
 * Need to be very careful about how these macros are defined, especially
 * when compiling C++ code or C code with an ANSI C compiler.
 *
 * VALUEFUNC(f) is a macro used to typecast a C function that implements
 * a Ruby method so that it can be passed as an argument to API functions
 * like rb_define_method() and rb_define_singleton_method().
 *
 * VOIDFUNC(f) is a macro used to typecast a C function that implements
 * either the "mark" or "free" stuff for a Ruby Data object, so that it
 * can be passed as an argument to API functions like Data_Wrap_Struct()
 * and Data_Make_Struct().
 */
 
#ifdef __cplusplus
#  ifndef RUBY_METHOD_FUNC /* These definitions should work for Ruby 1.4.6 */
#    define PROTECTFUNC(f) ((VALUE (*)()) f)
#    define VALUEFUNC(f) ((VALUE (*)()) f)
#    define VOIDFUNC(f)  ((void (*)()) f)
#  else
#    ifndef ANYARGS /* These definitions should work for Ruby 1.6 */
#      define PROTECTFUNC(f) ((VALUE (*)()) f)
#      define VALUEFUNC(f) ((VALUE (*)()) f)
#      define VOIDFUNC(f)  ((RUBY_DATA_FUNC) f)
#    else /* These definitions should work for Ruby 1.7+ */
#      define PROTECTFUNC(f) ((VALUE (*)(VALUE)) f)
#      define VALUEFUNC(f) ((VALUE (*)(ANYARGS)) f)
#      define VOIDFUNC(f)  ((RUBY_DATA_FUNC) f)
#    endif
#  endif
#else
#  define VALUEFUNC(f) (f)
#  define VOIDFUNC(f) (f)
#endif

/* Don't use for expressions have side effect */
#ifndef RB_STRING_VALUE
#define RB_STRING_VALUE(s) (TYPE(s) == T_STRING ? (s) : (*(volatile VALUE *)&(s) = rb_str_to_str(s)))
#endif
#ifndef StringValue
#define StringValue(s) RB_STRING_VALUE(s)
#endif
#ifndef StringValuePtr
#define StringValuePtr(s) RSTRING_PTR(RB_STRING_VALUE(s))
#endif
#ifndef StringValueLen
#define StringValueLen(s) RSTRING_LEN(RB_STRING_VALUE(s))
#endif
#ifndef SafeStringValue
#define SafeStringValue(v) do {\
    StringValue(v);\
    rb_check_safe_str(v);\
} while (0)
#endif

#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
#define rb_define_alloc_func(klass, func) rb_define_singleton_method((klass), "new", VALUEFUNC((func)), -1)
#define rb_undef_alloc_func(klass) rb_undef_method(CLASS_OF((klass)), "new")
#endif

static VALUE _mSWIG = Qnil;

/* -----------------------------------------------------------------------------
 * error manipulation
 * ----------------------------------------------------------------------------- */


/* Define some additional error types */
#define SWIG_ObjectPreviouslyDeletedError  -100


/* Define custom exceptions for errors that do not map to existing Ruby
   exceptions.  Note this only works for C++ since a global cannot be
   initialized by a function in C.  For C, fallback to rb_eRuntimeError.*/

SWIGINTERN VALUE 
getNullReferenceError(void) {
  static int init = 0;
  static VALUE rb_eNullReferenceError ;
  if (!init) {
    init = 1;
    rb_eNullReferenceError = rb_define_class("NullReferenceError", rb_eRuntimeError);
  }
  return rb_eNullReferenceError;
} 

SWIGINTERN VALUE 
getObjectPreviouslyDeletedError(void) {
  static int init = 0;
  static VALUE rb_eObjectPreviouslyDeleted ;
  if (!init) {
    init = 1;
    rb_eObjectPreviouslyDeleted = rb_define_class("ObjectPreviouslyDeleted", rb_eRuntimeError);
  }
  return rb_eObjectPreviouslyDeleted;
} 


SWIGINTERN VALUE
SWIG_Ruby_ErrorType(int SWIG_code) {
  VALUE type;
  switch (SWIG_code) {
  case SWIG_MemoryError:
    type = rb_eNoMemError;
    break;
  case SWIG_IOError:
    type = rb_eIOError;
    break;
  case SWIG_RuntimeError:
    type = rb_eRuntimeError;
    break;
  case SWIG_IndexError:
    type = rb_eIndexError;
    break;
  case SWIG_TypeError:
    type = rb_eTypeError;
    break;
  case SWIG_DivisionByZero:
    type = rb_eZeroDivError;
    break;
  case SWIG_OverflowError:
    type = rb_eRangeError;
    break;
  case SWIG_SyntaxError:
    type = rb_eSyntaxError;
    break;
  case SWIG_ValueError:
    type = rb_eArgError;
    break;
  case SWIG_SystemError:
    type = rb_eFatal;
    break;
  case SWIG_AttributeError:
    type = rb_eRuntimeError;
    break;
  case SWIG_NullReferenceError:
    type = getNullReferenceError();
    break;
  case SWIG_ObjectPreviouslyDeletedError:
    type = getObjectPreviouslyDeletedError();
    break;
  case SWIG_UnknownError:
    type = rb_eRuntimeError;
    break;
  default:
    type = rb_eRuntimeError;
  }
  return type;
}


/* This function is called when a user inputs a wrong argument to
   a method.
 */
SWIGINTERN 
const char* Ruby_Format_TypeError( const char* msg,
				   const char* type, 
				   const char* name, 
				   const int argn,
				   VALUE input )
{
  char buf[128];
  VALUE str;
  VALUE asStr;
  if ( msg && *msg )
    {
      str = rb_str_new2(msg);
    }
  else
    {
      str = rb_str_new(NULL, 0);
    }

  str = rb_str_cat2( str, "Expected argument " );
  sprintf( buf, "%d of type ", argn-1 );
  str = rb_str_cat2( str, buf );
  str = rb_str_cat2( str, type );
  str = rb_str_cat2( str, ", but got " );
  str = rb_str_cat2( str, rb_obj_classname(input) );
  str = rb_str_cat2( str, " " );
  asStr = rb_inspect(input);
  if ( RSTRING_LEN(asStr) > 30 )
    {
      str = rb_str_cat( str, StringValuePtr(asStr), 30 );
      str = rb_str_cat2( str, "..." );
    }
  else
    {
      str = rb_str_append( str, asStr );
    }

  if ( name )
    {
      str = rb_str_cat2( str, "\n\tin SWIG method '" );
      str = rb_str_cat2( str, name );
      str = rb_str_cat2( str, "'" );
    }

  return StringValuePtr( str );
}

/* This function is called when an overloaded method fails */
SWIGINTERN 
void Ruby_Format_OverloadedError(
				 const int argc,
				 const int maxargs,
				 const char* method, 
				 const char* prototypes 
				 )
{
  const char* msg = "Wrong # of arguments";
  if ( argc <= maxargs ) msg = "Wrong arguments";
  rb_raise(rb_eArgError,"%s for overloaded method '%s'.\n"  
	   "Possible C/C++ prototypes are:\n%s",
	   msg, method, prototypes);
}

/* -----------------------------------------------------------------------------
 * rubytracking.swg
 *
 * This file contains support for tracking mappings from 
 * Ruby objects to C++ objects.  This functionality is needed
 * to implement mark functions for Ruby's mark and sweep
 * garbage collector.
 * ----------------------------------------------------------------------------- */

#ifdef __cplusplus
extern "C" {
#endif

/* Ruby 1.8 actually assumes the first case. */
#if SIZEOF_VOIDP == SIZEOF_LONG
#  define SWIG2NUM(v) LONG2NUM((unsigned long)v)
#  define NUM2SWIG(x) (unsigned long)NUM2LONG(x)
#elif SIZEOF_VOIDP == SIZEOF_LONG_LONG
#  define SWIG2NUM(v) LL2NUM((unsigned long long)v)
#  define NUM2SWIG(x) (unsigned long long)NUM2LL(x)
#else
#  error sizeof(void*) is not the same as long or long long
#endif


/* Global Ruby hash table to store Trackings from C/C++
   structs to Ruby Objects. 
*/
static VALUE swig_ruby_trackings = Qnil;

/* Global variable that stores a reference to the ruby
   hash table delete function. */
static ID swig_ruby_hash_delete;

/* Setup a Ruby hash table to store Trackings */
SWIGRUNTIME void SWIG_RubyInitializeTrackings(void) {
  /* Create a ruby hash table to store Trackings from C++ 
     objects to Ruby objects. */

  /* Try to see if some other .so has already created a 
     tracking hash table, which we keep hidden in an instance var
     in the SWIG module.
     This is done to allow multiple DSOs to share the same
     tracking table.
  */
  ID trackings_id = rb_intern( "@__trackings__" );
  VALUE verbose = rb_gv_get("VERBOSE");
  rb_gv_set("VERBOSE", Qfalse);
  swig_ruby_trackings = rb_ivar_get( _mSWIG, trackings_id );
  rb_gv_set("VERBOSE", verbose);

  /* No, it hasn't.  Create one ourselves */ 
  if ( swig_ruby_trackings == Qnil )
    {
      swig_ruby_trackings = rb_hash_new();
      rb_ivar_set( _mSWIG, trackings_id, swig_ruby_trackings );
    }

  /* Now store a reference to the hash table delete function
     so that we only have to look it up once.*/
  swig_ruby_hash_delete = rb_intern("delete");
}

/* Get a Ruby number to reference a pointer */
SWIGRUNTIME VALUE SWIG_RubyPtrToReference(void* ptr) {
  /* We cast the pointer to an unsigned long
     and then store a reference to it using
     a Ruby number object. */

  /* Convert the pointer to a Ruby number */
  return SWIG2NUM(ptr);
}

/* Get a Ruby number to reference an object */
SWIGRUNTIME VALUE SWIG_RubyObjectToReference(VALUE object) {
  /* We cast the object to an unsigned long
     and then store a reference to it using
     a Ruby number object. */

  /* Convert the Object to a Ruby number */
  return SWIG2NUM(object);
}

/* Get a Ruby object from a previously stored reference */
SWIGRUNTIME VALUE SWIG_RubyReferenceToObject(VALUE reference) {
  /* The provided Ruby number object is a reference
     to the Ruby object we want.*/

  /* Convert the Ruby number to a Ruby object */
  return NUM2SWIG(reference);
}

/* Add a Tracking from a C/C++ struct to a Ruby object */
SWIGRUNTIME void SWIG_RubyAddTracking(void* ptr, VALUE object) {
  /* In a Ruby hash table we store the pointer and
     the associated Ruby object.  The trick here is
     that we cannot store the Ruby object directly - if
     we do then it cannot be garbage collected.  So
     instead we typecast it as a unsigned long and
     convert it to a Ruby number object.*/

  /* Get a reference to the pointer as a Ruby number */
  VALUE key = SWIG_RubyPtrToReference(ptr);

  /* Get a reference to the Ruby object as a Ruby number */
  VALUE value = SWIG_RubyObjectToReference(object);

  /* Store the mapping to the global hash table. */
  rb_hash_aset(swig_ruby_trackings, key, value);
}

/* Get the Ruby object that owns the specified C/C++ struct */
SWIGRUNTIME VALUE SWIG_RubyInstanceFor(void* ptr) {
  /* Get a reference to the pointer as a Ruby number */
  VALUE key = SWIG_RubyPtrToReference(ptr);

  /* Now lookup the value stored in the global hash table */
  VALUE value = rb_hash_aref(swig_ruby_trackings, key);
	
  if (value == Qnil) {
    /* No object exists - return nil. */
    return Qnil;
  }
  else {
    /* Convert this value to Ruby object */
    return SWIG_RubyReferenceToObject(value);
  }
}

/* Remove a Tracking from a C/C++ struct to a Ruby object.  It
   is very important to remove objects once they are destroyed
   since the same memory address may be reused later to create
   a new object. */
SWIGRUNTIME void SWIG_RubyRemoveTracking(void* ptr) {
  /* Get a reference to the pointer as a Ruby number */
  VALUE key = SWIG_RubyPtrToReference(ptr);

  /* Delete the object from the hash table by calling Ruby's
     do this we need to call the Hash.delete method.*/
  rb_funcall(swig_ruby_trackings, swig_ruby_hash_delete, 1, key);
}

/* This is a helper method that unlinks a Ruby object from its
   underlying C++ object.  This is needed if the lifetime of the
   Ruby object is longer than the C++ object */
SWIGRUNTIME void SWIG_RubyUnlinkObjects(void* ptr) {
  VALUE object = SWIG_RubyInstanceFor(ptr);

  if (object != Qnil) {
    DATA_PTR(object) = 0;
  }
}


#ifdef __cplusplus
}
#endif

/* -----------------------------------------------------------------------------
 * Ruby API portion that goes into the runtime
 * ----------------------------------------------------------------------------- */

#ifdef __cplusplus
extern "C" {
#endif

SWIGINTERN VALUE
SWIG_Ruby_AppendOutput(VALUE target, VALUE o) {
  if (NIL_P(target)) {
    target = o;
  } else {
    if (TYPE(target) != T_ARRAY) {
      VALUE o2 = target;
      target = rb_ary_new();
      rb_ary_push(target, o2);
    }
    rb_ary_push(target, o);
  }
  return target;
}

/* For ruby1.8.4 and earlier. */
#ifndef RUBY_INIT_STACK
   RUBY_EXTERN void Init_stack(VALUE* addr);
#  define RUBY_INIT_STACK \
   VALUE variable_in_this_stack_frame; \
   Init_stack(&variable_in_this_stack_frame);
#endif


#ifdef __cplusplus
}
#endif


/* -----------------------------------------------------------------------------
 * rubyrun.swg
 *
 * This file contains the runtime support for Ruby modules
 * and includes code for managing global variables and pointer
 * type checking.
 * ----------------------------------------------------------------------------- */

/* For backward compatibility only */
#define SWIG_POINTER_EXCEPTION  0

/* for raw pointers */
#define SWIG_ConvertPtr(obj, pptr, type, flags)         SWIG_Ruby_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own)  SWIG_Ruby_ConvertPtrAndOwn(obj, pptr, type, flags, own)
#define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Ruby_NewPointerObj(ptr, type, flags)
#define SWIG_AcquirePtr(ptr, own)                       SWIG_Ruby_AcquirePtr(ptr, own)
#define swig_owntype                                    ruby_owntype

/* for raw packed data */
#define SWIG_ConvertPacked(obj, ptr, sz, ty)            SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty, flags)
#define SWIG_NewPackedObj(ptr, sz, type)                SWIG_Ruby_NewPackedObj(ptr, sz, type)

/* for class or struct pointers */
#define SWIG_ConvertInstance(obj, pptr, type, flags)    SWIG_ConvertPtr(obj, pptr, type, flags)
#define SWIG_NewInstanceObj(ptr, type, flags)           SWIG_NewPointerObj(ptr, type, flags)

/* for C or C++ function pointers */
#define SWIG_ConvertFunctionPtr(obj, pptr, type)        SWIG_ConvertPtr(obj, pptr, type, 0)
#define SWIG_NewFunctionPtrObj(ptr, type)               SWIG_NewPointerObj(ptr, type, 0)

/* for C++ member pointers, ie, member methods */
#define SWIG_ConvertMember(obj, ptr, sz, ty)            SWIG_Ruby_ConvertPacked(obj, ptr, sz, ty)
#define SWIG_NewMemberObj(ptr, sz, type)                SWIG_Ruby_NewPackedObj(ptr, sz, type)


/* Runtime API */

#define SWIG_GetModule(clientdata)                      SWIG_Ruby_GetModule()	
#define SWIG_SetModule(clientdata, pointer) 		SWIG_Ruby_SetModule(pointer)


/* Error manipulation */

#define SWIG_ErrorType(code)                            SWIG_Ruby_ErrorType(code)               
#define SWIG_Error(code, msg)            		rb_raise(SWIG_Ruby_ErrorType(code), "%s", msg)
#define SWIG_fail                        		goto fail				 


/* Ruby-specific SWIG API */

#define SWIG_InitRuntime()                              SWIG_Ruby_InitRuntime()              
#define SWIG_define_class(ty)                        	SWIG_Ruby_define_class(ty)
#define SWIG_NewClassInstance(value, ty)             	SWIG_Ruby_NewClassInstance(value, ty)
#define SWIG_MangleStr(value)                        	SWIG_Ruby_MangleStr(value)		  
#define SWIG_CheckConvert(value, ty)                 	SWIG_Ruby_CheckConvert(value, ty)	  

#include "assert.h"

/* -----------------------------------------------------------------------------
 * pointers/data manipulation
 * ----------------------------------------------------------------------------- */

#ifdef __cplusplus
extern "C" {
#endif

typedef struct {
  VALUE klass;
  VALUE mImpl;
  void  (*mark)(void *);
  void  (*destroy)(void *);
  int trackObjects;
} swig_class;


/* Global pointer used to keep some internal SWIG stuff */
static VALUE _cSWIG_Pointer = Qnil;
static VALUE swig_runtime_data_type_pointer = Qnil;

/* Global IDs used to keep some internal SWIG stuff */
static ID swig_arity_id = 0;
static ID swig_call_id  = 0;

/*
  If your swig extension is to be run within an embedded ruby and has
  director callbacks, you should set -DRUBY_EMBEDDED during compilation.  
  This will reset ruby's stack frame on each entry point from the main 
  program the first time a virtual director function is invoked (in a 
  non-recursive way).
  If this is not done, you run the risk of Ruby trashing the stack.
*/

#ifdef RUBY_EMBEDDED

#  define SWIG_INIT_STACK                            \
      if ( !swig_virtual_calls ) { RUBY_INIT_STACK } \
      ++swig_virtual_calls;
#  define SWIG_RELEASE_STACK --swig_virtual_calls;
#  define Ruby_DirectorTypeMismatchException(x) \
          rb_raise( rb_eTypeError, "%s", x ); return c_result;

      static unsigned int swig_virtual_calls = 0;

#else  /* normal non-embedded extension */

#  define SWIG_INIT_STACK
#  define SWIG_RELEASE_STACK
#  define Ruby_DirectorTypeMismatchException(x) \
          throw Swig::DirectorTypeMismatchException( x );

#endif  /* RUBY_EMBEDDED */


SWIGRUNTIME VALUE 
getExceptionClass(void) {
  static int init = 0;
  static VALUE rubyExceptionClass ;
  if (!init) {
    init = 1;
    rubyExceptionClass = rb_const_get(_mSWIG, rb_intern("Exception"));
  }
  return rubyExceptionClass;
} 

/* This code checks to see if the Ruby object being raised as part
   of an exception inherits from the Ruby class Exception.  If so,
   the object is simply returned.  If not, then a new Ruby exception
   object is created and that will be returned to Ruby.*/
SWIGRUNTIME VALUE
SWIG_Ruby_ExceptionType(swig_type_info *desc, VALUE obj) {
  VALUE exceptionClass = getExceptionClass();
  if (rb_obj_is_kind_of(obj, exceptionClass)) {
    return obj;
  }  else {
    return rb_exc_new3(rb_eRuntimeError, rb_obj_as_string(obj));
  }
}

/* Initialize Ruby runtime support */
SWIGRUNTIME void
SWIG_Ruby_InitRuntime(void)
{
  if (_mSWIG == Qnil) {
    _mSWIG = rb_define_module("SWIG");
    swig_call_id  = rb_intern("call");
    swig_arity_id = rb_intern("arity");
  }
}

/* Define Ruby class for C type */
SWIGRUNTIME void
SWIG_Ruby_define_class(swig_type_info *type)
{
  VALUE klass;
  char *klass_name = (char *) malloc(4 + strlen(type->name) + 1);
  sprintf(klass_name, "TYPE%s", type->name);
  if (NIL_P(_cSWIG_Pointer)) {
    _cSWIG_Pointer = rb_define_class_under(_mSWIG, "Pointer", rb_cObject);
    rb_undef_method(CLASS_OF(_cSWIG_Pointer), "new");
  }
  klass = rb_define_class_under(_mSWIG, klass_name, _cSWIG_Pointer);
  free((void *) klass_name);
}

/* Create a new pointer object */
SWIGRUNTIME VALUE
SWIG_Ruby_NewPointerObj(void *ptr, swig_type_info *type, int flags)
{
  int own =  flags & SWIG_POINTER_OWN; 
  int track;
  char *klass_name;
  swig_class *sklass;
  VALUE klass;
  VALUE obj;
  
  if (!ptr)
    return Qnil;
  
  if (type->clientdata) {
    sklass = (swig_class *) type->clientdata;
		
    /* Are we tracking this class and have we already returned this Ruby object? */
    track = sklass->trackObjects;
    if (track) {
      obj = SWIG_RubyInstanceFor(ptr);
      
      /* Check the object's type and make sure it has the correct type.
        It might not in cases where methods do things like 
        downcast methods. */
      if (obj != Qnil) {
        VALUE value = rb_iv_get(obj, "@__swigtype__");
        char* type_name = RSTRING_PTR(value);
				
        if (strcmp(type->name, type_name) == 0) {
          return obj;
        }
      }
    }

    /* Create a new Ruby object */
    obj = Data_Wrap_Struct(sklass->klass, VOIDFUNC(sklass->mark), 
			   ( own ? VOIDFUNC(sklass->destroy) : 
			     (track ? VOIDFUNC(SWIG_RubyRemoveTracking) : 0 )
			     ), ptr);

    /* If tracking is on for this class then track this object. */
    if (track) {
      SWIG_RubyAddTracking(ptr, obj);
    }
  } else {
    klass_name = (char *) malloc(4 + strlen(type->name) + 1);
    sprintf(klass_name, "TYPE%s", type->name);
    klass = rb_const_get(_mSWIG, rb_intern(klass_name));
    free((void *) klass_name);
    obj = Data_Wrap_Struct(klass, 0, 0, ptr);
  }
  rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name));
  
  return obj;
}

/* Create a new class instance (always owned) */
SWIGRUNTIME VALUE
SWIG_Ruby_NewClassInstance(VALUE klass, swig_type_info *type)
{
  VALUE obj;
  swig_class *sklass = (swig_class *) type->clientdata;
  obj = Data_Wrap_Struct(klass, VOIDFUNC(sklass->mark), VOIDFUNC(sklass->destroy), 0);
  rb_iv_set(obj, "@__swigtype__", rb_str_new2(type->name));
  return obj;
}

/* Get type mangle from class name */
SWIGRUNTIMEINLINE char *
SWIG_Ruby_MangleStr(VALUE obj)
{
  VALUE stype = rb_iv_get(obj, "@__swigtype__");
  return StringValuePtr(stype);
}

/* Acquire a pointer value */
typedef void (*ruby_owntype)(void*);

SWIGRUNTIME ruby_owntype
SWIG_Ruby_AcquirePtr(VALUE obj, ruby_owntype own) {
  if (obj) {
    ruby_owntype oldown = RDATA(obj)->dfree;
    RDATA(obj)->dfree = own;
    return oldown;
  } else {
    return 0;
  }
}

/* Convert a pointer value */
SWIGRUNTIME int
SWIG_Ruby_ConvertPtrAndOwn(VALUE obj, void **ptr, swig_type_info *ty, int flags, ruby_owntype *own)
{
  char *c;
  swig_cast_info *tc;
  void *vptr = 0;

  /* Grab the pointer */
  if (NIL_P(obj)) {
    *ptr = 0;
    return SWIG_OK;
  } else {
    if (TYPE(obj) != T_DATA) {
      return SWIG_ERROR;
    }
    Data_Get_Struct(obj, void, vptr);
  }
  
  if (own) *own = RDATA(obj)->dfree;
    
  /* Check to see if the input object is giving up ownership
     of the underlying C struct or C++ object.  If so then we
     need to reset the destructor since the Ruby object no 
     longer owns the underlying C++ object.*/ 
  if (flags & SWIG_POINTER_DISOWN) {
    /* Is tracking on for this class? */
    int track = 0;
    if (ty && ty->clientdata) {
      swig_class *sklass = (swig_class *) ty->clientdata;
      track = sklass->trackObjects;
    }
		
    if (track) {
      /* We are tracking objects for this class.  Thus we change the destructor
       * to SWIG_RubyRemoveTracking.  This allows us to
       * remove the mapping from the C++ to Ruby object
       * when the Ruby object is garbage collected.  If we don't
       * do this, then it is possible we will return a reference 
       * to a Ruby object that no longer exists thereby crashing Ruby. */
      RDATA(obj)->dfree = SWIG_RubyRemoveTracking;
    } else {    
      RDATA(obj)->dfree = 0;
    }
  }

  /* Do type-checking if type info was provided */
  if (ty) {
    if (ty->clientdata) {
      if (rb_obj_is_kind_of(obj, ((swig_class *) (ty->clientdata))->klass)) {
        if (vptr == 0) {
          /* The object has already been deleted */
          return SWIG_ObjectPreviouslyDeletedError;
        }
        *ptr = vptr;
        return SWIG_OK;
      }
    }
    if ((c = SWIG_MangleStr(obj)) == NULL) {
      return SWIG_ERROR;
    }
    tc = SWIG_TypeCheck(c, ty);
    if (!tc) {
      return SWIG_ERROR;
    } else {
      int newmemory = 0;
      *ptr = SWIG_TypeCast(tc, vptr, &newmemory);
      assert(!newmemory); /* newmemory handling not yet implemented */
    }
  } else {
    *ptr = vptr;
  }
  
  return SWIG_OK;
}

/* Check convert */
SWIGRUNTIMEINLINE int
SWIG_Ruby_CheckConvert(VALUE obj, swig_type_info *ty)
{
  char *c = SWIG_MangleStr(obj);
  if (!c) return 0;
  return SWIG_TypeCheck(c,ty) != 0;
}

SWIGRUNTIME VALUE
SWIG_Ruby_NewPackedObj(void *ptr, int sz, swig_type_info *type) {
  char result[1024];
  char *r = result;
  if ((2*sz + 1 + strlen(type->name)) > 1000) return 0;
  *(r++) = '_';
  r = SWIG_PackData(r, ptr, sz);
  strcpy(r, type->name);
  return rb_str_new2(result);
}

/* Convert a packed value value */
SWIGRUNTIME int
SWIG_Ruby_ConvertPacked(VALUE obj, void *ptr, int sz, swig_type_info *ty) {
  swig_cast_info *tc;
  const char  *c;

  if (TYPE(obj) != T_STRING) goto type_error;
  c = StringValuePtr(obj);
  /* Pointer values must start with leading underscore */
  if (*c != '_') goto type_error;
  c++;
  c = SWIG_UnpackData(c, ptr, sz);
  if (ty) {
    tc = SWIG_TypeCheck(c, ty);
    if (!tc) goto type_error;
  }
  return SWIG_OK;

 type_error:
  return SWIG_ERROR;
}

SWIGRUNTIME swig_module_info *
SWIG_Ruby_GetModule(void)
{
  VALUE pointer;
  swig_module_info *ret = 0;
  VALUE verbose = rb_gv_get("VERBOSE");

 /* temporarily disable warnings, since the pointer check causes warnings with 'ruby -w' */
  rb_gv_set("VERBOSE", Qfalse);
  
  /* first check if pointer already created */
  pointer = rb_gv_get("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME);
  if (pointer != Qnil) {
    Data_Get_Struct(pointer, swig_module_info, ret);
  }

  /* reinstate warnings */
  rb_gv_set("VERBOSE", verbose);
  return ret;
}

SWIGRUNTIME void 
SWIG_Ruby_SetModule(swig_module_info *pointer)
{
  /* register a new class */
  VALUE cl = rb_define_class("swig_runtime_data", rb_cObject);
  /* create and store the structure pointer to a global variable */
  swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer);
  rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
}

/* This function can be used to check whether a proc or method or similarly
   callable function has been passed.  Usually used in a %typecheck, like:

   %typecheck(c_callback_t, precedence=SWIG_TYPECHECK_POINTER) {
        $result = SWIG_Ruby_isCallable( $input );
   }
 */
SWIGINTERN
int SWIG_Ruby_isCallable( VALUE proc )
{
  if ( rb_respond_to( proc, swig_call_id ) == Qtrue )
    return 1;
  return 0;
}

/* This function can be used to check the arity (number of arguments)
   a proc or method can take.  Usually used in a %typecheck.
   Valid arities will be that equal to minimal or those < 0
   which indicate a variable number of parameters at the end.
 */
SWIGINTERN
int SWIG_Ruby_arity( VALUE proc, int minimal )
{
  if ( rb_respond_to( proc, swig_arity_id ) == Qtrue )
    {
      VALUE num = rb_funcall( proc, swig_arity_id, 0 );
      int arity = NUM2INT(num);
      if ( arity < 0 && (arity+1) < -minimal ) return 1;
      if ( arity == minimal ) return 1;
      return 1;
    }
  return 0;
}


#ifdef __cplusplus
}
#endif



#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) 

#define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else 


/* -----------------------------------------------------------------------------
 * director.swg
 *
 * This file contains support for director classes that proxy
 * method calls from C++ to Ruby extensions.
 * ----------------------------------------------------------------------------- */

/*
  Use -DSWIG_DIRECTOR_NOUEH if you prefer to avoid the use of the
  Undefined Exception Handler provided by swift
*/
#ifndef SWIG_DIRECTOR_NOUEH
#ifndef SWIG_DIRECTOR_UEH
#define SWIG_DIRECTOR_UEH
#endif
#endif

#ifdef __cplusplus

#include <string>
#include <iostream>
#include <map>

# define SWIG_DIRECTOR_CAST(ARG) dynamic_cast<Swig::Director *>(ARG)

namespace Swig {
  /* memory handler */
  struct GCItem 
  {
    virtual ~GCItem()
    {
    }

    virtual ruby_owntype get_own() const
    {
      return 0;
    }
  };
  
  struct GCItem_var
  {
    GCItem_var(GCItem *item = 0) : _item(item)
    {
    }

    GCItem_var& operator=(GCItem *item)
    {
      GCItem *tmp = _item;
      _item = item;
      delete tmp;
      return *this;
    }
    
    ~GCItem_var() 
    {
      delete _item;
    }
    
    GCItem * operator->() const
    {
      return _item;
    }
    
  private:
    GCItem *_item;
  };


  template <typename Type>
  struct GCItem_T : GCItem
  {
    GCItem_T(Type *ptr) : _ptr(ptr)
    {
    }
    
    virtual ~GCItem_T() 
    {
      delete _ptr;
    }
    
  private:
    Type *_ptr;
  };

  struct GCItem_Object : GCItem
  {
    GCItem_Object(ruby_owntype own) : _own(own)
    {
    }
    
    virtual ~GCItem_Object() 
    {
    }

    ruby_owntype get_own() const
    {
      return _own;
    }
    
  private:
    ruby_owntype _own;
  };


  template <typename Type>
  struct GCArray_T : GCItem
  {
    GCArray_T(Type *ptr) : _ptr(ptr)
    {
    }
    
    virtual ~GCArray_T() 
    {
      delete[] _ptr;
    }
    
  private:
    Type *_ptr;
  };


  /* body args */
  struct body_args {
    VALUE recv;
    ID id;
    int argc;
    VALUE *argv;
  };
  
  /* Base class for director exceptions */
  class DirectorException {
  protected:
    VALUE swig_error;
    std::string swig_msg;
  protected:
    DirectorException(VALUE error)
      : swig_error(error)
    {
    }
    
    DirectorException(VALUE error, const char* hdr, const char* msg ="") 
      : swig_error(error), swig_msg(hdr) {
      if (strlen(msg)) {
	swig_msg += " ";
	swig_msg += msg;
      }
      if (swig_msg.size()) {
	VALUE str = rb_str_new(swig_msg.data(), swig_msg.size());
	swig_error = rb_exc_new3(error, str);
      } else {
	swig_error = error;
      }
    }
  public:
    VALUE getType() const  { 
      return CLASS_OF(swig_error); 
    }
    VALUE getError() const {
      return swig_error;
    }
    const std::string& getMessage() const 
    {
      return swig_msg;
    }
    
    virtual ~DirectorException() {}
  };
  
  /* unknown exception handler  */

  class UnknownExceptionHandler 
  {
#ifdef SWIG_DIRECTOR_UEH
    static void handler() {
      try {
	throw;
      } catch (DirectorException& e) {
	std::cerr << "SWIG Director exception caught:" << std::endl
		  << e.getMessage() << std::endl;
      } catch (std::exception& e) {
	std::cerr << "std::exception caught: "<< e.what() << std::endl;
      } catch (...) {
	std::cerr << "Unknown exception caught." << std::endl;
      }      
      std::cerr << std::endl
		<< "Ruby interpreter traceback:" << std::endl;
      std::cerr << std::endl;      
      std::cerr << "This exception was caught by the SWIG unexpected exception handler." << std::endl
		<< "Try using %feature(\"director:except\") to avoid reaching this point." << std::endl
		<< std::endl
		<< "Exception is being re-thrown, program will like abort/terminate." << std::endl;
      throw;
    }
    
  public:    
    std::unexpected_handler old;
    UnknownExceptionHandler(std::unexpected_handler nh = handler)
    {
      old = std::set_unexpected(nh);
    }

    ~UnknownExceptionHandler()
    {
      std::set_unexpected(old);
    }
#endif
  };


  /* Type mismatch in the return value from a Ruby method call */
  class DirectorTypeMismatchException : public Swig::DirectorException {
  public:
    DirectorTypeMismatchException(VALUE error, const char *msg="")
      : Swig::DirectorException(error, "SWIG director type mismatch", msg) 
    {
    }

    DirectorTypeMismatchException(const char *msg="")
      : Swig::DirectorException(rb_eTypeError, "SWIG director type mismatch", msg) 
    {
    }

    static void raise(VALUE error, const char *msg) {
      throw DirectorTypeMismatchException(error, msg);
    }

    static void raise(const char *msg) {
      throw DirectorTypeMismatchException(msg);
    }
  };

  /* Any Ruby exception that occurs during a director method call */
  class DirectorMethodException : public Swig::DirectorException {
  public:
    DirectorMethodException(VALUE error) 
      : Swig::DirectorException(error) {
    }

    DirectorMethodException(const char* msg = "") 
      : Swig::DirectorException(rb_eRuntimeError, "SWIG director method error.", msg) {
    }
    
    static void raise(VALUE error)
    {
      throw DirectorMethodException(error);
    }    
  };

  /* Attempted to call a pure virtual method via a director method */
  class DirectorPureVirtualException : public Swig::DirectorException
  {
  public:
    DirectorPureVirtualException(const char* msg = "") 
      : DirectorException(rb_eRuntimeError, "SWIG director pure virtual method called", msg)
    { 
    }

    static void raise(const char *msg) 
    {
      throw DirectorPureVirtualException(msg);
    }
  };

  /* Simple thread abstraction for pthreads on win32 */
#ifdef __THREAD__
# define __PTHREAD__
# if defined(_WIN32) || defined(__WIN32__)
#  define pthread_mutex_lock EnterCriticalSection
#  define pthread_mutex_unlock LeaveCriticalSection
#  define pthread_mutex_t CRITICAL_SECTION
#  define SWIG_MUTEX_INIT(var) var
# else
#  include <pthread.h>
#  define SWIG_MUTEX_INIT(var) var = PTHREAD_MUTEX_INITIALIZER 
# endif
#endif

#ifdef  __PTHREAD__
  struct Guard
  {
    pthread_mutex_t *_mutex;
    
    Guard(pthread_mutex_t &mutex) : _mutex(&mutex)
    {
      pthread_mutex_lock(_mutex);
    }
    
    ~Guard()
    {
      pthread_mutex_unlock(_mutex);
    }
  };
# define SWIG_GUARD(mutex) Guard _guard(mutex)
#else
# define SWIG_GUARD(mutex) 
#endif

  /* director base class */
  class Director {
  private:
    /* pointer to the wrapped Ruby object */
    VALUE swig_self;
    /* flag indicating whether the object is owned by Ruby or c++ */
    mutable bool swig_disown_flag;

  public:
    /* wrap a Ruby object, optionally taking ownership */
    Director(VALUE self) : swig_self(self), swig_disown_flag(false) {
    }

    /* discard our reference at destruction */
    virtual ~Director() {
    }

    /* return a pointer to the wrapped Ruby object */
    VALUE swig_get_self() const { 
      return swig_self; 
    }

    /* acquire ownership of the wrapped Ruby object (the sense of "disown"
     * is from Ruby) */
    void swig_disown() const { 
      if (!swig_disown_flag) { 
        swig_disown_flag = true;
      } 
    }

  /* ownership management */
  private:
    typedef std::map<void*, GCItem_var> swig_ownership_map;
    mutable swig_ownership_map swig_owner;
#ifdef __PTHREAD__
    static pthread_mutex_t swig_mutex_own;
#endif

  public:
    template <typename Type>
    void swig_acquire_ownership_array(Type *vptr)  const
    {
      if (vptr) {
	SWIG_GUARD(swig_mutex_own);
	swig_owner[vptr] = new GCArray_T<Type>(vptr);
      }
    }
    
    template <typename Type>
    void swig_acquire_ownership(Type *vptr)  const
    {
      if (vptr) {	
	SWIG_GUARD(swig_mutex_own);
	swig_owner[vptr] = new GCItem_T<Type>(vptr);
      }
    }

    void swig_acquire_ownership_obj(void *vptr, ruby_owntype own) const
    {
      if (vptr && own) {
	SWIG_GUARD(swig_mutex_own);
	swig_owner[vptr] = new GCItem_Object(own);
      }
    }
    
    ruby_owntype swig_release_ownership(void *vptr) const
    {
      ruby_owntype own = 0;
      if (vptr) {
	SWIG_GUARD(swig_mutex_own);
	swig_ownership_map::iterator iter = swig_owner.find(vptr);
	if (iter != swig_owner.end()) {
	  own = iter->second->get_own();
	  swig_owner.erase(iter);
	}
      }
      return own;
    }
  };
}

#endif /* __cplusplus */



/* -------- TYPES TABLE (BEGIN) -------- */

#define SWIGTYPE_p_OneU__CharEvent swig_types[0]
#define SWIGTYPE_p_OneU__IAudio swig_types[1]
#define SWIGTYPE_p_OneU__IControl swig_types[2]
#define SWIGTYPE_p_OneU__IGame swig_types[3]
#define SWIGTYPE_p_OneU__IInputReceiver swig_types[4]
#define SWIGTYPE_p_OneU__ILabel swig_types[5]
#define SWIGTYPE_p_OneU__IScene swig_types[6]
#define SWIGTYPE_p_OneU__IShape swig_types[7]
#define SWIGTYPE_p_OneU__ISprite swig_types[8]
#define SWIGTYPE_p_OneU__IVideo swig_types[9]
#define SWIGTYPE_p_OneU__KeyEvent swig_types[10]
#define SWIGTYPE_p_OneU__ListT_OneU__video__Mode_t swig_types[11]
#define SWIGTYPE_p_OneU__MouseEvent swig_types[12]
#define SWIGTYPE_p_OneU__Vector2T_float_t swig_types[13]
#define SWIGTYPE_p_OneU__Vector2T_int_t swig_types[14]
#define SWIGTYPE_p_OneU__Vector3T_float_t swig_types[15]
#define SWIGTYPE_p_OneU__Vector3T_int_t swig_types[16]
#define SWIGTYPE_p_OneU__Vector4T_float_t swig_types[17]
#define SWIGTYPE_p_OneU__Vector4T_int_t swig_types[18]
#define SWIGTYPE_p_OneU__color_t swig_types[19]
#define SWIGTYPE_p_OneU__image_t swig_types[20]
#define SWIGTYPE_p_OneU__rect_tT_float_t swig_types[21]
#define SWIGTYPE_p_OneU__rect_tT_int_t swig_types[22]
#define SWIGTYPE_p_OneU__sound_t swig_types[23]
#define SWIGTYPE_p_OneU__video__ILayer swig_types[24]
#define SWIGTYPE_p_OneU__video__INode swig_types[25]
#define SWIGTYPE_p_OneU__video__IRenderScene swig_types[26]
#define SWIGTYPE_p_OneU__video__Mode swig_types[27]
#define SWIGTYPE_p_Scene swig_types[28]
#define SWIGTYPE_p_char swig_types[29]
#define SWIGTYPE_p_long swig_types[30]
#define SWIGTYPE_p_long_long swig_types[31]
#define SWIGTYPE_p_short swig_types[32]
#define SWIGTYPE_p_unsigned_char swig_types[33]
#define SWIGTYPE_p_unsigned_long swig_types[34]
#define SWIGTYPE_p_unsigned_long_long swig_types[35]
#define SWIGTYPE_p_unsigned_short swig_types[36]
#define SWIGTYPE_p_wchar_t swig_types[37]
static swig_type_info *swig_types[39];
static swig_module_info swig_module = {swig_types, 38, 0, 0, 0, 0};
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)

/* -------- TYPES TABLE (END) -------- */

#define SWIG_init    Init_OUE
#define SWIG_name    "OUE"

static VALUE mOUE;

#define SWIG_RUBY_THREAD_BEGIN_BLOCK
#define SWIG_RUBY_THREAD_END_BLOCK


#define SWIGVERSION 0x020004 
#define SWIG_VERSION SWIGVERSION


#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) 
#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) 


#include <stdexcept>


#include "../OUE.h"


/*#include <ruby/encoding.h>*/


#include <limits.h>
#if !defined(SWIG_NO_LLONG_MAX)
# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
#   define LLONG_MAX __LONG_LONG_MAX__
#   define LLONG_MIN (-LLONG_MAX - 1LL)
#   define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
# endif
#endif


SWIGINTERN VALUE
SWIG_ruby_failed(void)
{
  return Qnil;
} 


/*@SWIG:D:\swigwin-2.0.4\Lib\ruby\rubyprimtypes.swg,19,%ruby_aux_method@*/
SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args)
{
  VALUE obj = args[0];
  VALUE type = TYPE(obj);
  long *res = (long *)(args[1]);
  *res = type == T_FIXNUM ? NUM2LONG(obj) : rb_big2long(obj);
  return obj;
}
/*@SWIG@*/

SWIGINTERN int
SWIG_AsVal_long (VALUE obj, long* val)
{
  VALUE type = TYPE(obj);
  if ((type == T_FIXNUM) || (type == T_BIGNUM)) {
    long v;
    VALUE a[2];
    a[0] = obj;
    a[1] = (VALUE)(&v);
    if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2LONG), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
      if (val) *val = v;
      return SWIG_OK;
    }
  }
  return SWIG_TypeError;
}


SWIGINTERN int
SWIG_AsVal_int (VALUE obj, int *val)
{
  long v;
  int res = SWIG_AsVal_long (obj, &v);
  if (SWIG_IsOK(res)) {
    if ((v < INT_MIN || v > INT_MAX)) {
      return SWIG_OverflowError;
    } else {
      if (val) *val = static_cast< int >(v);
    }
  }  
  return res;
}


  #define SWIG_From_long   LONG2NUM 


SWIGINTERNINLINE VALUE
SWIG_From_int  (int value)
{    
  return SWIG_From_long  (value);
}


#include <float.h>


/*@SWIG:D:\swigwin-2.0.4\Lib\ruby\rubyprimtypes.swg,19,%ruby_aux_method@*/
SWIGINTERN VALUE SWIG_AUX_NUM2DBL(VALUE *args)
{
  VALUE obj = args[0];
  VALUE type = TYPE(obj);
  double *res = (double *)(args[1]);
  *res = NUM2DBL(obj);
  return obj;
}
/*@SWIG@*/

SWIGINTERN int
SWIG_AsVal_double (VALUE obj, double *val)
{
  VALUE type = TYPE(obj);
  if ((type == T_FLOAT) || (type == T_FIXNUM) || (type == T_BIGNUM)) {
    double v;
    VALUE a[2];
    a[0] = obj;
    a[1] = (VALUE)(&v);
    if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2DBL), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
      if (val) *val = v;
      return SWIG_OK;
    }
  }
  return SWIG_TypeError;
}


SWIGINTERN int
SWIG_AsVal_float (VALUE obj, float *val)
{
  double v;
  int res = SWIG_AsVal_double (obj, &v);
  if (SWIG_IsOK(res)) {
    if ((v < -FLT_MAX || v > FLT_MAX)) {
      return SWIG_OverflowError;
    } else {
      if (val) *val = static_cast< float >(v);
    }
  }  
  return res;
}


  #define SWIG_From_double   rb_float_new 


SWIGINTERNINLINE VALUE
SWIG_From_float  (float value)
{    
  return SWIG_From_double  (value);
}


#include "../VideoNode.h"


SWIGINTERN int
SWIG_AsVal_bool (VALUE obj, bool *val)
{
  if (obj == Qtrue) {
    if (val) *val = true;
    return SWIG_OK;
  } else if (obj == Qfalse) {
    if (val) *val = false;
    return SWIG_OK;
  } else {
    int res = 0;
    if (SWIG_AsVal_int (obj, &res) == SWIG_OK) {    
      if (val) *val = res ? true : false;
      return SWIG_OK;
    }
  }  
  return SWIG_TypeError;
}


SWIGINTERNINLINE VALUE
SWIG_From_bool  (bool value)
{
  return value ? Qtrue : Qfalse;
}


SWIGINTERN swig_type_info*
SWIG_pchar_descriptor(void)
{
  static int init = 0;
  static swig_type_info* info = 0;
  if (!init) {
    info = SWIG_TypeQuery("_p_char");
    init = 1;
  }
  return info;
}


SWIGINTERN int
SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
{
  if (TYPE(obj) == T_STRING) {
    #if defined(StringValuePtr)
    char *cstr = StringValuePtr(obj); 
    #else
    char *cstr = STR2CSTR(obj);
    #endif
    size_t size = RSTRING_LEN(obj) + 1;
    if (cptr)  {
      if (alloc) {
	if (*alloc == SWIG_NEWOBJ) {
	  *cptr = reinterpret_cast< char* >(memcpy((new char[size]), cstr, sizeof(char)*(size)));
	} else {
	  *cptr = cstr;
	  *alloc = SWIG_OLDOBJ;
	}
      }
    }
    if (psize) *psize = size;
    return SWIG_OK;
  } else {
    swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
    if (pchar_descriptor) {
      void* vptr = 0;
      if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
	if (cptr) *cptr = (char *)vptr;
	if (psize) *psize = vptr ? (strlen((char*)vptr) + 1) : 0;
	if (alloc) *alloc = SWIG_OLDOBJ;
	return SWIG_OK;
      }
    }
  }  
  return SWIG_TypeError;
}




SWIGINTERN bool OneU_video_ILayer_addChild__SWIG_0(OneU::video::ILayer *self,OneU::video::INode *child,int z=0,OneU::pcwstr tag=NULL){
					return self->addChild(child, z, tag, false);//≤Ľ◊™“∆ownership
				}

#include "../Video.h"


/*@SWIG:D:\swigwin-2.0.4\Lib\ruby\rubyprimtypes.swg,19,%ruby_aux_method@*/
SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE *args)
{
  VALUE obj = args[0];
  VALUE type = TYPE(obj);
  unsigned long *res = (unsigned long *)(args[1]);
  *res = type == T_FIXNUM ? NUM2ULONG(obj) : rb_big2ulong(obj);
  return obj;
}
/*@SWIG@*/

SWIGINTERN int
SWIG_AsVal_unsigned_SS_long (VALUE obj, unsigned long *val) 
{
  VALUE type = TYPE(obj);
  if ((type == T_FIXNUM) || (type == T_BIGNUM)) {
    unsigned long v;
    VALUE a[2];
    a[0] = obj;
    a[1] = (VALUE)(&v);
    if (rb_rescue(RUBY_METHOD_FUNC(SWIG_AUX_NUM2ULONG), (VALUE)a, RUBY_METHOD_FUNC(SWIG_ruby_failed), 0) != Qnil) {
      if (val) *val = v;
      return SWIG_OK;
    }
  }
  return SWIG_TypeError;
}


SWIGINTERNINLINE VALUE
SWIG_From_unsigned_SS_long  (unsigned long value)
{
  return ULONG2NUM(value); 
}

SWIGINTERN OneU::uint32 OneU_image_t_getWidth(OneU::image_t *self){ return self->get()->getWidth(); }
SWIGINTERN OneU::uint32 OneU_image_t_getHeight(OneU::image_t *self){ return self->get()->getHeight(); }

#include "../Scene.h"


class Scene : public OneU::IScene
{
public:
	bool __isActive;
	OneU::IGame* __game;
	Scene():__isActive(false){}
	~Scene(){if(__isActive) __game->replaceScene(NULL); }
	
	void update(float dt){}
};


#include "../Game.h"

SWIGINTERN void OneU_IGame_replaceScene(OneU::IGame *self,Scene *scene){
			if(scene){ scene->__isActive = true; scene->__game = self; }
			OneU::IScene* ret = self->replaceScene(scene);
			if(!ret) return;
			Scene* s = dynamic_cast<Scene*>(ret);
			if(!s) rb_raise(rb_eRuntimeError, "Doesn't allow scene not created by script.");
			s->__isActive = false;
		}

#include "../Audio.h"

SWIGINTERN float OneU_sound_t_getVolume(OneU::sound_t *self){ return self->get() ? self->get()->getVolume() : 0.0f; }
SWIGINTERN void OneU_sound_t_setVolume(OneU::sound_t *self,float volume){ if(self->get()) self->get()->setVolume(volume); }
SWIGINTERN OneU::uint32 OneU_sound_t_getFrequency(OneU::sound_t *self){ return self->get() ? self->get()->getFrequency() : 0; }
SWIGINTERN void OneU_sound_t_setFrequency(OneU::sound_t *self,OneU::uint32 freq){ if(self->get()) self->get()->setFrequency(freq); }
SWIGINTERN float OneU_sound_t_getPan(OneU::sound_t *self){ return self->get() ? self->get()->getPan() : 0.0f; }
SWIGINTERN void OneU_sound_t_setPan(OneU::sound_t *self,float pan){ if(self->get()) self->get()->setPan(pan); }

#include "../Control.h"


	enum{
	IK_ESCAPE = 0x01,
	IK_1 = 0x02,
	IK_2 = 0x03,
	IK_3 = 0x04,
	IK_4 = 0x0,
	IK_5 = 0x06,
	IK_6 = 0x07,
	IK_7 = 0x08,
	IK_8 = 0x09,
	IK_9 = 0x0A,
	IK_0 = 0x0B,
	IK_MINUS = 0x0C,
	IK_EQUALS = 0x0D,
	IK_BACK = 0x0E,
	IK_TAB = 0x0F,
	IK_Q = 0x10,
	IK_W = 0x11,
	IK_E = 0x12,
	IK_R = 0x13,
	IK_T = 0x14,
	IK_Y = 0x15,
	IK_U = 0x16,
	IK_I = 0x17,
	IK_O = 0x18,
	IK_P = 0x19,
	IK_LBRACKET = 0x1A,
	IK_RBRACKET = 0x1B,
	IK_RETURN = 0x1C,
	IK_LCONTROL = 0x1D,
	IK_A = 0x1E,
	IK_S = 0x1F,
	IK_D = 0x20,
	IK_F = 0x21,
	IK_G = 0x22,
	IK_H = 0x23,
	IK_J = 0x24,
	IK_K = 0x25,
	IK_L = 0x26,
	IK_SEMICOLON = 0x27,
	IK_APOSTROPHE = 0x28,
	IK_GRAVE = 0x29,
	IK_LSHIFT = 0x2A,
	IK_BACKSLASH = 0x2B,
	IK_Z = 0x2C,
	IK_X = 0x2D,
	IK_C = 0x2E,
	IK_V = 0x2F,
	IK_B = 0x30,
	IK_N = 0x31,
	IK_M = 0x32,
	IK_COMMA = 0x33,
	IK_PERIOD = 0x34,
	IK_SLASH = 0x35,
	IK_RSHIFT = 0x36,
	IK_MULTIPLY = 0x37,
	IK_LMENU = 0x38,
	IK_SPACE = 0x39,
	IK_CAPITAL = 0x3A,
	IK_F1 = 0x3B,
	IK_F2 = 0x3C,
	IK_F3 = 0x3D,
	IK_F4 = 0x3E,
	IK_F5 = 0x3F,
	IK_F6 = 0x40,
	IK_F7 = 0x41,
	IK_F8 = 0x42,
	IK_F9 = 0x43,
	IK_F10 = 0x44,
	IK_NUMLOCK = 0x45,
	IK_SCROLL = 0x46,
	IK_NUMPAD7 = 0x47,
	IK_NUMPAD8 = 0x48,
	IK_NUMPAD9 = 0x49,
	IK_SUBTRACT = 0x4A,
	IK_NUMPAD4 = 0x4B,
	IK_NUMPAD5 = 0x4C,
	IK_NUMPAD6 = 0x4D,
	IK_ADD = 0x4E,
	IK_NUMPAD1 = 0x4F,
	IK_NUMPAD2 = 0x50,
	IK_NUMPAD3 = 0x51,
	IK_NUMPAD0 = 0x52,
	IK_DECIMAL = 0x53,
	IK_OEM_102 = 0x56,
	IK_F11 = 0x57,
	IK_F12 = 0x58,
	IK_F13 = 0x64,
	IK_F14 = 0x65,
	IK_F15 = 0x66,
	IK_KANA = 0x70,
	IK_ABNT_C1 = 0x73,
	IK_CONVERT = 0x79,
	IK_NOCONVERT = 0x7B,
	IK_YEN = 0x7D,
	IK_ABNT_C2 = 0x7E,
	IK_NUMPADEQUALS = 0x8D,
	IK_PREVTRACK = 0x90,
	IK_AT = 0x91,
	IK_COLON = 0x92,
	IK_UNDERLINE = 0x93,
	IK_KANJI = 0x94,
	IK_STOP = 0x95,
	IK_AX = 0x96,
	IK_UNLABELED = 0x97,
	IK_NEXTTRACK = 0x99,
	IK_NUMPADENTER = 0x9C,
	IK_RCONTROL = 0x9D,
	IK_MUTE = 0xA0,
	IK_CALCULATOR = 0xA1,
	IK_PLAYPAUSE = 0xA2,
	IK_MEDIASTOP = 0xA4,
	IK_VOLUMEDOWN = 0xAE,
	IK_VOLUMEUP = 0xB0,
	IK_WEBHOME = 0xB2,
	IK_NUMPADCOMMA = 0xB3,
	IK_DIVIDE = 0xB5,
	IK_SYSRQ = 0xB7,
	IK_RMENU = 0xB8,
	IK_PAUSE = 0xC5,
	IK_HOME = 0xC7,
	IK_UP = 0xC8,
	IK_PRIOR = 0xC9,
	IK_LEFT = 0xCB,
	IK_RIGHT = 0xCD,
	IK_END = 0xCF,
	IK_DOWN = 0xD0,
	IK_NEXT = 0xD1,
	IK_INSERT = 0xD2,
	IK_DELETE = 0xD3,
	IK_LWIN = 0xDB,
	IK_RWIN = 0xDC,
	IK_APPS = 0xDD,
	IK_POWER = 0xDE,
	IK_SLEEP = 0xDF,
	IK_WAKE = 0xE3,
	IK_WEBSEARCH = 0xE5,
	IK_WEBFAVORITES = 0xE6,
	IK_WEBREFRESH = 0xE7,
	IK_WEBSTOP = 0xE8,
	IK_WEBFORWARD = 0xE9,
	IK_WEBBACK = 0xEA,
	IK_MYCOMPUTER = 0xEB,
	IK_MAIL = 0xEC,
	IK_MEDIASELECT = 0xED,

	/*
	*  Alternate names for keys, to facilitate transition from DOS.
	*/
	IK_BACKSPACE = OIK_BACK,
	IK_NUMPADSTAR = OIK_MULTIPLY,
	IK_LALT = OIK_LMENU,
	IK_CAPSLOCK = OIK_CAPITAL,
	IK_NUMPADMINUS = OIK_SUBTRACT,
	IK_NUMPADPLUS = OIK_ADD,
	IK_NUMPADPERIOD = OIK_DECIMAL,
	IK_NUMPADSLASH = OIK_DIVIDE,
	IK_RALT = OIK_RMENU,
	IK_UPARROW = OIK_UP,
	IK_PGUP = OIK_PRIOR,
	IK_LEFTARROW = OIK_LEFT,
	IK_RIGHTARROW = OIK_RIGHT,
	IK_DOWNARROW = OIK_DOWN,
	IK_PGDN = OIK_NEXT,

	/*
	*  Alternate names for keys originally not used on US keyboards.
	*/
	IK_CIRCUMFLEX = OIK_PREVTRACK
	};


#include "../Sprite.h"


SWIGINTERN int
SWIG_AsVal_unsigned_SS_int (VALUE obj, unsigned int *val)
{
  unsigned long v;
  int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
  if (SWIG_IsOK(res)) {
    if ((v > UINT_MAX)) {
      return SWIG_OverflowError;
    } else {
      if (val) *val = static_cast< unsigned int >(v);
    }
  }  
  return res;
}


SWIGINTERN int
SWIG_AsVal_unsigned_SS_char (VALUE obj, unsigned char *val)
{
  unsigned long v;
  int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
  if (SWIG_IsOK(res)) {
    if ((v > UCHAR_MAX)) {
      return SWIG_OverflowError;
    } else {
      if (val) *val = static_cast< unsigned char >(v);
    }
  }  
  return res;
}


SWIGINTERNINLINE VALUE
SWIG_From_unsigned_SS_int  (unsigned int value)
{    
  return SWIG_From_unsigned_SS_long  (value);
}

SWIGINTERN OneU::ISprite *new_OneU_ISprite__SWIG_0(OneU::pcwstr file){
			return OneU::Sprite_create(OneU::GetVideo().loadImage(file));
		}
SWIGINTERN OneU::ISprite *new_OneU_ISprite__SWIG_1(OneU::image_t &img){
			return Sprite_create(img);
		}

#include "../Shape.h"

SWIGINTERN OneU::IShape *new_OneU_IShape(OneU::rect const &rc){
			return Shape_rect(rc);
		}

#include "../Label.h"

SWIGINTERN OneU::ILabel *new_OneU_ILabel__SWIG_0(float Width,float Height,OneU::uint32 fontSize,OneU::pcwstr fontName){
			return OneU::Label_create(Width, Height, fontSize, fontName);
		}
SWIGINTERN OneU::ILabel *new_OneU_ILabel__SWIG_1(float Width,float Height,OneU::uint32 fontSize){
			return OneU::Label_create(Width, Height, fontSize, L"Arial");
		}

#include "../Event.h"


SWIGINTERNINLINE VALUE 
SWIG_FromCharPtrAndSize(const char* carray, size_t size)
{
  if (carray) {
    if (size > LONG_MAX) {
      swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
      return pchar_descriptor ? 
	SWIG_NewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : Qnil;
    } else {
      return rb_str_new(carray, static_cast< long >(size));
    }
  } else {
    return Qnil;
  }
}


SWIGINTERNINLINE VALUE 
SWIG_FromCharPtr(const char *cptr)
{ 
  return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
}

	
VALUE SWIG_From_wchar_t(wchar_t value){
	static wchar_t s[2] = {0, 0};
	s[0] = value;
	return SWIG_FromCharPtr(OneU::Wide2Char(s, 65001));
}


#include "../Broadcast.h"

/* ---------------------------------------------------
 * C++ director class helpers
 * --------------------------------------------------- */



/* ---------------------------------------------------
 * C++ director class methods
 * --------------------------------------------------- */

#include "oue_ruby.h"

SwigDirector_Scene::SwigDirector_Scene(VALUE self): Scene(), Swig::Director(self) {
  
}



void SwigDirector_Scene::update(float dt) {
  VALUE obj0 = Qnil ;
  VALUE result;
  
  obj0 = SWIG_From_float(static_cast< float >(dt));
  result = rb_funcall(swig_get_self(), rb_intern("update"), 1,obj0);
}


SwigDirector_Scene::~SwigDirector_Scene() {
}

SwigDirector_InputReceiver::SwigDirector_InputReceiver(VALUE self): OneU::IInputReceiver(), Swig::Director(self) {
  
}



SwigDirector_InputReceiver::~SwigDirector_InputReceiver() {
}

bool SwigDirector_InputReceiver::onChar(OneU::CharEvent const &event) {
  bool c_result ;
  VALUE obj0 = Qnil ;
  VALUE result;
  
  obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(&event), SWIGTYPE_p_OneU__CharEvent,  0 );
  result = rb_funcall(swig_get_self(), rb_intern("onChar"), 1,obj0);
  bool swig_val;
  int swig_res = SWIG_AsVal_bool(result, &swig_val);
  if (!SWIG_IsOK(swig_res)) {
    Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'");
  }
  c_result = static_cast< bool >(swig_val);
  return (bool) c_result;
}


bool SwigDirector_InputReceiver::onKey(OneU::KeyEvent const &event) {
  bool c_result ;
  VALUE obj0 = Qnil ;
  VALUE result;
  
  obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(&event), SWIGTYPE_p_OneU__KeyEvent,  0 );
  result = rb_funcall(swig_get_self(), rb_intern("onKey"), 1,obj0);
  bool swig_val;
  int swig_res = SWIG_AsVal_bool(result, &swig_val);
  if (!SWIG_IsOK(swig_res)) {
    Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'");
  }
  c_result = static_cast< bool >(swig_val);
  return (bool) c_result;
}


bool SwigDirector_InputReceiver::onMouse(OneU::MouseEvent const &event) {
  bool c_result ;
  VALUE obj0 = Qnil ;
  VALUE result;
  
  obj0 = SWIG_NewPointerObj(SWIG_as_voidptr(&event), SWIGTYPE_p_OneU__MouseEvent,  0 );
  result = rb_funcall(swig_get_self(), rb_intern("onMouse"), 1,obj0);
  bool swig_val;
  int swig_res = SWIG_AsVal_bool(result, &swig_val);
  if (!SWIG_IsOK(swig_res)) {
    Swig::DirectorTypeMismatchException::raise(SWIG_ErrorType(SWIG_ArgError(swig_res)), "in output value of type '""bool""'");
  }
  c_result = static_cast< bool >(swig_val);
  return (bool) c_result;
}


swig_class SwigClassRecti;

SWIGINTERN VALUE
_wrap_Recti_left_set(int argc, VALUE *argv, VALUE self) {
  OneU::rect_t< int > *arg1 = (OneU::rect_t< int > *) 0 ;
  int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__rect_tT_int_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::rect_t< int > *","left", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::rect_t< int > * >(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","left", 2, argv[0] ));
  } 
  arg2 = static_cast< int >(val2);
  if (arg1) (arg1)->left = arg2;
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Recti_left_get(int argc, VALUE *argv, VALUE self) {
  OneU::rect_t< int > *arg1 = (OneU::rect_t< int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__rect_tT_int_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::rect_t< int > *","left", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::rect_t< int > * >(argp1);
  result = (int) ((arg1)->left);
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Recti_top_set(int argc, VALUE *argv, VALUE self) {
  OneU::rect_t< int > *arg1 = (OneU::rect_t< int > *) 0 ;
  int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__rect_tT_int_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::rect_t< int > *","top", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::rect_t< int > * >(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","top", 2, argv[0] ));
  } 
  arg2 = static_cast< int >(val2);
  if (arg1) (arg1)->top = arg2;
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Recti_top_get(int argc, VALUE *argv, VALUE self) {
  OneU::rect_t< int > *arg1 = (OneU::rect_t< int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__rect_tT_int_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::rect_t< int > *","top", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::rect_t< int > * >(argp1);
  result = (int) ((arg1)->top);
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Recti_right_set(int argc, VALUE *argv, VALUE self) {
  OneU::rect_t< int > *arg1 = (OneU::rect_t< int > *) 0 ;
  int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__rect_tT_int_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::rect_t< int > *","right", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::rect_t< int > * >(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","right", 2, argv[0] ));
  } 
  arg2 = static_cast< int >(val2);
  if (arg1) (arg1)->right = arg2;
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Recti_right_get(int argc, VALUE *argv, VALUE self) {
  OneU::rect_t< int > *arg1 = (OneU::rect_t< int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__rect_tT_int_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::rect_t< int > *","right", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::rect_t< int > * >(argp1);
  result = (int) ((arg1)->right);
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Recti_bottom_set(int argc, VALUE *argv, VALUE self) {
  OneU::rect_t< int > *arg1 = (OneU::rect_t< int > *) 0 ;
  int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__rect_tT_int_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::rect_t< int > *","bottom", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::rect_t< int > * >(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","bottom", 2, argv[0] ));
  } 
  arg2 = static_cast< int >(val2);
  if (arg1) (arg1)->bottom = arg2;
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Recti_bottom_get(int argc, VALUE *argv, VALUE self) {
  OneU::rect_t< int > *arg1 = (OneU::rect_t< int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__rect_tT_int_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::rect_t< int > *","bottom", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::rect_t< int > * >(argp1);
  result = (int) ((arg1)->bottom);
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_new_Recti__SWIG_0(int argc, VALUE *argv, VALUE self) {
  const char *classname SWIGUNUSED = "OUE::Recti";
  OneU::rect_t< int > *result = 0 ;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (OneU::rect_t< int > *)new OneU::rect_t< int >();
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
SWIGINTERN VALUE
_wrap_Recti_allocate(VALUE self) {
#else
  SWIGINTERN VALUE
  _wrap_Recti_allocate(int argc, VALUE *argv, VALUE self) {
#endif
    
    
    VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_OneU__rect_tT_int_t);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
    rb_obj_call_init(vresult, argc, argv);
#endif
    return vresult;
  }
  

SWIGINTERN VALUE
_wrap_new_Recti__SWIG_1(int argc, VALUE *argv, VALUE self) {
  int arg1 ;
  int arg2 ;
  int arg3 ;
  int arg4 ;
  int val1 ;
  int ecode1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  const char *classname SWIGUNUSED = "OUE::Recti";
  OneU::rect_t< int > *result = 0 ;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_int(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","OneU::rect_t<(int)>", 1, argv[0] ));
  } 
  arg1 = static_cast< int >(val1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","OneU::rect_t<(int)>", 2, argv[1] ));
  } 
  arg2 = static_cast< int >(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","OneU::rect_t<(int)>", 3, argv[2] ));
  } 
  arg3 = static_cast< int >(val3);
  ecode4 = SWIG_AsVal_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OneU::rect_t<(int)>", 4, argv[3] ));
  } 
  arg4 = static_cast< int >(val4);
  result = (OneU::rect_t< int > *)new OneU::rect_t< int >(arg1,arg2,arg3,arg4);
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}


SWIGINTERN VALUE _wrap_new_Recti(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[4];
  int ii;
  
  argc = nargs;
  if (argc > 4) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 0) {
    return _wrap_new_Recti__SWIG_0(nargs, args, self);
  }
  if (argc == 4) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_new_Recti__SWIG_1(nargs, args, self);
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 4, "Recti.new", 
    "    Recti.new()\n"
    "    Recti.new(int left, int top, int right, int bottom)\n");
  
  return Qnil;
}


SWIGINTERN void
free_OneU_rect_t_Sl_int_Sg_(OneU::rect_t< int > *arg1) {
    delete arg1;
}

swig_class SwigClassRectf;

SWIGINTERN VALUE
_wrap_Rectf_left_set(int argc, VALUE *argv, VALUE self) {
  OneU::rect_t< float > *arg1 = (OneU::rect_t< float > *) 0 ;
  float arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__rect_tT_float_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::rect_t< float > *","left", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::rect_t< float > * >(argp1);
  ecode2 = SWIG_AsVal_float(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "float","left", 2, argv[0] ));
  } 
  arg2 = static_cast< float >(val2);
  if (arg1) (arg1)->left = arg2;
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Rectf_left_get(int argc, VALUE *argv, VALUE self) {
  OneU::rect_t< float > *arg1 = (OneU::rect_t< float > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__rect_tT_float_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::rect_t< float > *","left", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::rect_t< float > * >(argp1);
  result = (float) ((arg1)->left);
  vresult = SWIG_From_float(static_cast< float >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Rectf_top_set(int argc, VALUE *argv, VALUE self) {
  OneU::rect_t< float > *arg1 = (OneU::rect_t< float > *) 0 ;
  float arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__rect_tT_float_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::rect_t< float > *","top", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::rect_t< float > * >(argp1);
  ecode2 = SWIG_AsVal_float(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "float","top", 2, argv[0] ));
  } 
  arg2 = static_cast< float >(val2);
  if (arg1) (arg1)->top = arg2;
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Rectf_top_get(int argc, VALUE *argv, VALUE self) {
  OneU::rect_t< float > *arg1 = (OneU::rect_t< float > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__rect_tT_float_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::rect_t< float > *","top", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::rect_t< float > * >(argp1);
  result = (float) ((arg1)->top);
  vresult = SWIG_From_float(static_cast< float >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Rectf_right_set(int argc, VALUE *argv, VALUE self) {
  OneU::rect_t< float > *arg1 = (OneU::rect_t< float > *) 0 ;
  float arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__rect_tT_float_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::rect_t< float > *","right", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::rect_t< float > * >(argp1);
  ecode2 = SWIG_AsVal_float(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "float","right", 2, argv[0] ));
  } 
  arg2 = static_cast< float >(val2);
  if (arg1) (arg1)->right = arg2;
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Rectf_right_get(int argc, VALUE *argv, VALUE self) {
  OneU::rect_t< float > *arg1 = (OneU::rect_t< float > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__rect_tT_float_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::rect_t< float > *","right", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::rect_t< float > * >(argp1);
  result = (float) ((arg1)->right);
  vresult = SWIG_From_float(static_cast< float >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Rectf_bottom_set(int argc, VALUE *argv, VALUE self) {
  OneU::rect_t< float > *arg1 = (OneU::rect_t< float > *) 0 ;
  float arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__rect_tT_float_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::rect_t< float > *","bottom", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::rect_t< float > * >(argp1);
  ecode2 = SWIG_AsVal_float(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "float","bottom", 2, argv[0] ));
  } 
  arg2 = static_cast< float >(val2);
  if (arg1) (arg1)->bottom = arg2;
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Rectf_bottom_get(int argc, VALUE *argv, VALUE self) {
  OneU::rect_t< float > *arg1 = (OneU::rect_t< float > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__rect_tT_float_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::rect_t< float > *","bottom", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::rect_t< float > * >(argp1);
  result = (float) ((arg1)->bottom);
  vresult = SWIG_From_float(static_cast< float >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_new_Rectf__SWIG_0(int argc, VALUE *argv, VALUE self) {
  const char *classname SWIGUNUSED = "OUE::Rectf";
  OneU::rect_t< float > *result = 0 ;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (OneU::rect_t< float > *)new OneU::rect_t< float >();
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
SWIGINTERN VALUE
_wrap_Rectf_allocate(VALUE self) {
#else
  SWIGINTERN VALUE
  _wrap_Rectf_allocate(int argc, VALUE *argv, VALUE self) {
#endif
    
    
    VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_OneU__rect_tT_float_t);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
    rb_obj_call_init(vresult, argc, argv);
#endif
    return vresult;
  }
  

SWIGINTERN VALUE
_wrap_new_Rectf__SWIG_1(int argc, VALUE *argv, VALUE self) {
  float arg1 ;
  float arg2 ;
  float arg3 ;
  float arg4 ;
  float val1 ;
  int ecode1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  float val3 ;
  int ecode3 = 0 ;
  float val4 ;
  int ecode4 = 0 ;
  const char *classname SWIGUNUSED = "OUE::Rectf";
  OneU::rect_t< float > *result = 0 ;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_float(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "float","OneU::rect_t<(float)>", 1, argv[0] ));
  } 
  arg1 = static_cast< float >(val1);
  ecode2 = SWIG_AsVal_float(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "float","OneU::rect_t<(float)>", 2, argv[1] ));
  } 
  arg2 = static_cast< float >(val2);
  ecode3 = SWIG_AsVal_float(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "float","OneU::rect_t<(float)>", 3, argv[2] ));
  } 
  arg3 = static_cast< float >(val3);
  ecode4 = SWIG_AsVal_float(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "float","OneU::rect_t<(float)>", 4, argv[3] ));
  } 
  arg4 = static_cast< float >(val4);
  result = (OneU::rect_t< float > *)new OneU::rect_t< float >(arg1,arg2,arg3,arg4);
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}


SWIGINTERN VALUE _wrap_new_Rectf(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[4];
  int ii;
  
  argc = nargs;
  if (argc > 4) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 0) {
    return _wrap_new_Rectf__SWIG_0(nargs, args, self);
  }
  if (argc == 4) {
    int _v;
    {
      int res = SWIG_AsVal_float(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_float(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_float(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_float(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_new_Rectf__SWIG_1(nargs, args, self);
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 4, "Rectf.new", 
    "    Rectf.new()\n"
    "    Rectf.new(float left, float top, float right, float bottom)\n");
  
  return Qnil;
}


SWIGINTERN void
free_OneU_rect_t_Sl_float_Sg_(OneU::rect_t< float > *arg1) {
    delete arg1;
}

swig_class SwigClassVector2i;

SWIGINTERN VALUE
_wrap_Vector2i_x_set(int argc, VALUE *argv, VALUE self) {
  OneU::Vector2< int > *arg1 = (OneU::Vector2< int > *) 0 ;
  int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__Vector2T_int_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::Vector2< int > *","x", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::Vector2< int > * >(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","x", 2, argv[0] ));
  } 
  arg2 = static_cast< int >(val2);
  if (arg1) (arg1)->x = arg2;
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Vector2i_x_get(int argc, VALUE *argv, VALUE self) {
  OneU::Vector2< int > *arg1 = (OneU::Vector2< int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__Vector2T_int_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::Vector2< int > *","x", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::Vector2< int > * >(argp1);
  result = (int) ((arg1)->x);
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Vector2i_y_set(int argc, VALUE *argv, VALUE self) {
  OneU::Vector2< int > *arg1 = (OneU::Vector2< int > *) 0 ;
  int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__Vector2T_int_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::Vector2< int > *","y", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::Vector2< int > * >(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","y", 2, argv[0] ));
  } 
  arg2 = static_cast< int >(val2);
  if (arg1) (arg1)->y = arg2;
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Vector2i_y_get(int argc, VALUE *argv, VALUE self) {
  OneU::Vector2< int > *arg1 = (OneU::Vector2< int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__Vector2T_int_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::Vector2< int > *","y", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::Vector2< int > * >(argp1);
  result = (int) ((arg1)->y);
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_new_Vector2i__SWIG_0(int argc, VALUE *argv, VALUE self) {
  const char *classname SWIGUNUSED = "OUE::Vector2i";
  OneU::Vector2< int > *result = 0 ;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (OneU::Vector2< int > *)new OneU::Vector2< int >();
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
SWIGINTERN VALUE
_wrap_Vector2i_allocate(VALUE self) {
#else
  SWIGINTERN VALUE
  _wrap_Vector2i_allocate(int argc, VALUE *argv, VALUE self) {
#endif
    
    
    VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_OneU__Vector2T_int_t);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
    rb_obj_call_init(vresult, argc, argv);
#endif
    return vresult;
  }
  

SWIGINTERN VALUE
_wrap_new_Vector2i__SWIG_1(int argc, VALUE *argv, VALUE self) {
  int arg1 ;
  int arg2 ;
  int val1 ;
  int ecode1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  const char *classname SWIGUNUSED = "OUE::Vector2i";
  OneU::Vector2< int > *result = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_int(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","OneU::Vector2<(int)>", 1, argv[0] ));
  } 
  arg1 = static_cast< int >(val1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","OneU::Vector2<(int)>", 2, argv[1] ));
  } 
  arg2 = static_cast< int >(val2);
  result = (OneU::Vector2< int > *)new OneU::Vector2< int >(arg1,arg2);
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}


SWIGINTERN VALUE _wrap_new_Vector2i(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[2];
  int ii;
  
  argc = nargs;
  if (argc > 2) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 0) {
    return _wrap_new_Vector2i__SWIG_0(nargs, args, self);
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_Vector2i__SWIG_1(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 2, "Vector2i.new", 
    "    Vector2i.new()\n"
    "    Vector2i.new(int x, int y)\n");
  
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Vector2i_length(int argc, VALUE *argv, VALUE self) {
  OneU::Vector2< int > *arg1 = (OneU::Vector2< int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__Vector2T_int_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::Vector2< int > *","length", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::Vector2< int > * >(argp1);
  result = (int)(arg1)->length();
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN void
free_OneU_Vector2_Sl_int_Sg_(OneU::Vector2< int > *arg1) {
    delete arg1;
}

swig_class SwigClassVector2f;

SWIGINTERN VALUE
_wrap_Vector2f_x_set(int argc, VALUE *argv, VALUE self) {
  OneU::Vector2< float > *arg1 = (OneU::Vector2< float > *) 0 ;
  float arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__Vector2T_float_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::Vector2< float > *","x", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::Vector2< float > * >(argp1);
  ecode2 = SWIG_AsVal_float(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "float","x", 2, argv[0] ));
  } 
  arg2 = static_cast< float >(val2);
  if (arg1) (arg1)->x = arg2;
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Vector2f_x_get(int argc, VALUE *argv, VALUE self) {
  OneU::Vector2< float > *arg1 = (OneU::Vector2< float > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__Vector2T_float_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::Vector2< float > *","x", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::Vector2< float > * >(argp1);
  result = (float) ((arg1)->x);
  vresult = SWIG_From_float(static_cast< float >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Vector2f_y_set(int argc, VALUE *argv, VALUE self) {
  OneU::Vector2< float > *arg1 = (OneU::Vector2< float > *) 0 ;
  float arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__Vector2T_float_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::Vector2< float > *","y", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::Vector2< float > * >(argp1);
  ecode2 = SWIG_AsVal_float(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "float","y", 2, argv[0] ));
  } 
  arg2 = static_cast< float >(val2);
  if (arg1) (arg1)->y = arg2;
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Vector2f_y_get(int argc, VALUE *argv, VALUE self) {
  OneU::Vector2< float > *arg1 = (OneU::Vector2< float > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__Vector2T_float_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::Vector2< float > *","y", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::Vector2< float > * >(argp1);
  result = (float) ((arg1)->y);
  vresult = SWIG_From_float(static_cast< float >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_new_Vector2f__SWIG_0(int argc, VALUE *argv, VALUE self) {
  const char *classname SWIGUNUSED = "OUE::Vector2f";
  OneU::Vector2< float > *result = 0 ;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (OneU::Vector2< float > *)new OneU::Vector2< float >();
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
SWIGINTERN VALUE
_wrap_Vector2f_allocate(VALUE self) {
#else
  SWIGINTERN VALUE
  _wrap_Vector2f_allocate(int argc, VALUE *argv, VALUE self) {
#endif
    
    
    VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_OneU__Vector2T_float_t);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
    rb_obj_call_init(vresult, argc, argv);
#endif
    return vresult;
  }
  

SWIGINTERN VALUE
_wrap_new_Vector2f__SWIG_1(int argc, VALUE *argv, VALUE self) {
  float arg1 ;
  float arg2 ;
  float val1 ;
  int ecode1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  const char *classname SWIGUNUSED = "OUE::Vector2f";
  OneU::Vector2< float > *result = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_float(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "float","OneU::Vector2<(float)>", 1, argv[0] ));
  } 
  arg1 = static_cast< float >(val1);
  ecode2 = SWIG_AsVal_float(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "float","OneU::Vector2<(float)>", 2, argv[1] ));
  } 
  arg2 = static_cast< float >(val2);
  result = (OneU::Vector2< float > *)new OneU::Vector2< float >(arg1,arg2);
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}


SWIGINTERN VALUE _wrap_new_Vector2f(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[2];
  int ii;
  
  argc = nargs;
  if (argc > 2) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 0) {
    return _wrap_new_Vector2f__SWIG_0(nargs, args, self);
  }
  if (argc == 2) {
    int _v;
    {
      int res = SWIG_AsVal_float(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_float(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_new_Vector2f__SWIG_1(nargs, args, self);
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 2, "Vector2f.new", 
    "    Vector2f.new()\n"
    "    Vector2f.new(float x, float y)\n");
  
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Vector2f_length(int argc, VALUE *argv, VALUE self) {
  OneU::Vector2< float > *arg1 = (OneU::Vector2< float > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__Vector2T_float_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::Vector2< float > *","length", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::Vector2< float > * >(argp1);
  result = (float)(arg1)->length();
  vresult = SWIG_From_float(static_cast< float >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN void
free_OneU_Vector2_Sl_float_Sg_(OneU::Vector2< float > *arg1) {
    delete arg1;
}

swig_class SwigClassVector3i;

SWIGINTERN VALUE
_wrap_Vector3i_x_set(int argc, VALUE *argv, VALUE self) {
  OneU::Vector3< int > *arg1 = (OneU::Vector3< int > *) 0 ;
  int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__Vector3T_int_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::Vector3< int > *","x", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::Vector3< int > * >(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","x", 2, argv[0] ));
  } 
  arg2 = static_cast< int >(val2);
  if (arg1) (arg1)->x = arg2;
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Vector3i_x_get(int argc, VALUE *argv, VALUE self) {
  OneU::Vector3< int > *arg1 = (OneU::Vector3< int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__Vector3T_int_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::Vector3< int > *","x", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::Vector3< int > * >(argp1);
  result = (int) ((arg1)->x);
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Vector3i_y_set(int argc, VALUE *argv, VALUE self) {
  OneU::Vector3< int > *arg1 = (OneU::Vector3< int > *) 0 ;
  int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__Vector3T_int_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::Vector3< int > *","y", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::Vector3< int > * >(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","y", 2, argv[0] ));
  } 
  arg2 = static_cast< int >(val2);
  if (arg1) (arg1)->y = arg2;
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Vector3i_y_get(int argc, VALUE *argv, VALUE self) {
  OneU::Vector3< int > *arg1 = (OneU::Vector3< int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__Vector3T_int_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::Vector3< int > *","y", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::Vector3< int > * >(argp1);
  result = (int) ((arg1)->y);
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Vector3i_z_set(int argc, VALUE *argv, VALUE self) {
  OneU::Vector3< int > *arg1 = (OneU::Vector3< int > *) 0 ;
  int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__Vector3T_int_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::Vector3< int > *","z", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::Vector3< int > * >(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","z", 2, argv[0] ));
  } 
  arg2 = static_cast< int >(val2);
  if (arg1) (arg1)->z = arg2;
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Vector3i_z_get(int argc, VALUE *argv, VALUE self) {
  OneU::Vector3< int > *arg1 = (OneU::Vector3< int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__Vector3T_int_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::Vector3< int > *","z", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::Vector3< int > * >(argp1);
  result = (int) ((arg1)->z);
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_new_Vector3i__SWIG_0(int argc, VALUE *argv, VALUE self) {
  const char *classname SWIGUNUSED = "OUE::Vector3i";
  OneU::Vector3< int > *result = 0 ;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (OneU::Vector3< int > *)new OneU::Vector3< int >();
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
SWIGINTERN VALUE
_wrap_Vector3i_allocate(VALUE self) {
#else
  SWIGINTERN VALUE
  _wrap_Vector3i_allocate(int argc, VALUE *argv, VALUE self) {
#endif
    
    
    VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_OneU__Vector3T_int_t);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
    rb_obj_call_init(vresult, argc, argv);
#endif
    return vresult;
  }
  

SWIGINTERN VALUE
_wrap_new_Vector3i__SWIG_1(int argc, VALUE *argv, VALUE self) {
  int arg1 ;
  int arg2 ;
  int arg3 ;
  int val1 ;
  int ecode1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  const char *classname SWIGUNUSED = "OUE::Vector3i";
  OneU::Vector3< int > *result = 0 ;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_int(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","OneU::Vector3<(int)>", 1, argv[0] ));
  } 
  arg1 = static_cast< int >(val1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","OneU::Vector3<(int)>", 2, argv[1] ));
  } 
  arg2 = static_cast< int >(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","OneU::Vector3<(int)>", 3, argv[2] ));
  } 
  arg3 = static_cast< int >(val3);
  result = (OneU::Vector3< int > *)new OneU::Vector3< int >(arg1,arg2,arg3);
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}


SWIGINTERN VALUE _wrap_new_Vector3i(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[3];
  int ii;
  
  argc = nargs;
  if (argc > 3) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 0) {
    return _wrap_new_Vector3i__SWIG_0(nargs, args, self);
  }
  if (argc == 3) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_new_Vector3i__SWIG_1(nargs, args, self);
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 3, "Vector3i.new", 
    "    Vector3i.new()\n"
    "    Vector3i.new(int x, int y, int z)\n");
  
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Vector3i_length(int argc, VALUE *argv, VALUE self) {
  OneU::Vector3< int > *arg1 = (OneU::Vector3< int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__Vector3T_int_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::Vector3< int > *","length", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::Vector3< int > * >(argp1);
  result = (int)(arg1)->length();
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN void
free_OneU_Vector3_Sl_int_Sg_(OneU::Vector3< int > *arg1) {
    delete arg1;
}

swig_class SwigClassVector3f;

SWIGINTERN VALUE
_wrap_Vector3f_x_set(int argc, VALUE *argv, VALUE self) {
  OneU::Vector3< float > *arg1 = (OneU::Vector3< float > *) 0 ;
  float arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__Vector3T_float_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::Vector3< float > *","x", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::Vector3< float > * >(argp1);
  ecode2 = SWIG_AsVal_float(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "float","x", 2, argv[0] ));
  } 
  arg2 = static_cast< float >(val2);
  if (arg1) (arg1)->x = arg2;
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Vector3f_x_get(int argc, VALUE *argv, VALUE self) {
  OneU::Vector3< float > *arg1 = (OneU::Vector3< float > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__Vector3T_float_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::Vector3< float > *","x", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::Vector3< float > * >(argp1);
  result = (float) ((arg1)->x);
  vresult = SWIG_From_float(static_cast< float >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Vector3f_y_set(int argc, VALUE *argv, VALUE self) {
  OneU::Vector3< float > *arg1 = (OneU::Vector3< float > *) 0 ;
  float arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__Vector3T_float_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::Vector3< float > *","y", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::Vector3< float > * >(argp1);
  ecode2 = SWIG_AsVal_float(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "float","y", 2, argv[0] ));
  } 
  arg2 = static_cast< float >(val2);
  if (arg1) (arg1)->y = arg2;
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Vector3f_y_get(int argc, VALUE *argv, VALUE self) {
  OneU::Vector3< float > *arg1 = (OneU::Vector3< float > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__Vector3T_float_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::Vector3< float > *","y", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::Vector3< float > * >(argp1);
  result = (float) ((arg1)->y);
  vresult = SWIG_From_float(static_cast< float >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Vector3f_z_set(int argc, VALUE *argv, VALUE self) {
  OneU::Vector3< float > *arg1 = (OneU::Vector3< float > *) 0 ;
  float arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__Vector3T_float_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::Vector3< float > *","z", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::Vector3< float > * >(argp1);
  ecode2 = SWIG_AsVal_float(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "float","z", 2, argv[0] ));
  } 
  arg2 = static_cast< float >(val2);
  if (arg1) (arg1)->z = arg2;
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Vector3f_z_get(int argc, VALUE *argv, VALUE self) {
  OneU::Vector3< float > *arg1 = (OneU::Vector3< float > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__Vector3T_float_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::Vector3< float > *","z", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::Vector3< float > * >(argp1);
  result = (float) ((arg1)->z);
  vresult = SWIG_From_float(static_cast< float >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_new_Vector3f__SWIG_0(int argc, VALUE *argv, VALUE self) {
  const char *classname SWIGUNUSED = "OUE::Vector3f";
  OneU::Vector3< float > *result = 0 ;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (OneU::Vector3< float > *)new OneU::Vector3< float >();
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
SWIGINTERN VALUE
_wrap_Vector3f_allocate(VALUE self) {
#else
  SWIGINTERN VALUE
  _wrap_Vector3f_allocate(int argc, VALUE *argv, VALUE self) {
#endif
    
    
    VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_OneU__Vector3T_float_t);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
    rb_obj_call_init(vresult, argc, argv);
#endif
    return vresult;
  }
  

SWIGINTERN VALUE
_wrap_new_Vector3f__SWIG_1(int argc, VALUE *argv, VALUE self) {
  float arg1 ;
  float arg2 ;
  float arg3 ;
  float val1 ;
  int ecode1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  float val3 ;
  int ecode3 = 0 ;
  const char *classname SWIGUNUSED = "OUE::Vector3f";
  OneU::Vector3< float > *result = 0 ;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_float(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "float","OneU::Vector3<(float)>", 1, argv[0] ));
  } 
  arg1 = static_cast< float >(val1);
  ecode2 = SWIG_AsVal_float(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "float","OneU::Vector3<(float)>", 2, argv[1] ));
  } 
  arg2 = static_cast< float >(val2);
  ecode3 = SWIG_AsVal_float(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "float","OneU::Vector3<(float)>", 3, argv[2] ));
  } 
  arg3 = static_cast< float >(val3);
  result = (OneU::Vector3< float > *)new OneU::Vector3< float >(arg1,arg2,arg3);
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}


SWIGINTERN VALUE _wrap_new_Vector3f(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[3];
  int ii;
  
  argc = nargs;
  if (argc > 3) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 0) {
    return _wrap_new_Vector3f__SWIG_0(nargs, args, self);
  }
  if (argc == 3) {
    int _v;
    {
      int res = SWIG_AsVal_float(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_float(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_float(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_new_Vector3f__SWIG_1(nargs, args, self);
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 3, "Vector3f.new", 
    "    Vector3f.new()\n"
    "    Vector3f.new(float x, float y, float z)\n");
  
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Vector3f_length(int argc, VALUE *argv, VALUE self) {
  OneU::Vector3< float > *arg1 = (OneU::Vector3< float > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__Vector3T_float_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::Vector3< float > *","length", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::Vector3< float > * >(argp1);
  result = (float)(arg1)->length();
  vresult = SWIG_From_float(static_cast< float >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN void
free_OneU_Vector3_Sl_float_Sg_(OneU::Vector3< float > *arg1) {
    delete arg1;
}

swig_class SwigClassVector4i;

SWIGINTERN VALUE
_wrap_Vector4i_x_set(int argc, VALUE *argv, VALUE self) {
  OneU::Vector4< int > *arg1 = (OneU::Vector4< int > *) 0 ;
  int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__Vector4T_int_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::Vector4< int > *","x", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::Vector4< int > * >(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","x", 2, argv[0] ));
  } 
  arg2 = static_cast< int >(val2);
  if (arg1) (arg1)->x = arg2;
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Vector4i_x_get(int argc, VALUE *argv, VALUE self) {
  OneU::Vector4< int > *arg1 = (OneU::Vector4< int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__Vector4T_int_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::Vector4< int > *","x", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::Vector4< int > * >(argp1);
  result = (int) ((arg1)->x);
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Vector4i_y_set(int argc, VALUE *argv, VALUE self) {
  OneU::Vector4< int > *arg1 = (OneU::Vector4< int > *) 0 ;
  int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__Vector4T_int_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::Vector4< int > *","y", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::Vector4< int > * >(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","y", 2, argv[0] ));
  } 
  arg2 = static_cast< int >(val2);
  if (arg1) (arg1)->y = arg2;
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Vector4i_y_get(int argc, VALUE *argv, VALUE self) {
  OneU::Vector4< int > *arg1 = (OneU::Vector4< int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__Vector4T_int_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::Vector4< int > *","y", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::Vector4< int > * >(argp1);
  result = (int) ((arg1)->y);
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Vector4i_z_set(int argc, VALUE *argv, VALUE self) {
  OneU::Vector4< int > *arg1 = (OneU::Vector4< int > *) 0 ;
  int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__Vector4T_int_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::Vector4< int > *","z", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::Vector4< int > * >(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","z", 2, argv[0] ));
  } 
  arg2 = static_cast< int >(val2);
  if (arg1) (arg1)->z = arg2;
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Vector4i_z_get(int argc, VALUE *argv, VALUE self) {
  OneU::Vector4< int > *arg1 = (OneU::Vector4< int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__Vector4T_int_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::Vector4< int > *","z", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::Vector4< int > * >(argp1);
  result = (int) ((arg1)->z);
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Vector4i_w_set(int argc, VALUE *argv, VALUE self) {
  OneU::Vector4< int > *arg1 = (OneU::Vector4< int > *) 0 ;
  int arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__Vector4T_int_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::Vector4< int > *","w", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::Vector4< int > * >(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","w", 2, argv[0] ));
  } 
  arg2 = static_cast< int >(val2);
  if (arg1) (arg1)->w = arg2;
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Vector4i_w_get(int argc, VALUE *argv, VALUE self) {
  OneU::Vector4< int > *arg1 = (OneU::Vector4< int > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__Vector4T_int_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::Vector4< int > *","w", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::Vector4< int > * >(argp1);
  result = (int) ((arg1)->w);
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_new_Vector4i__SWIG_0(int argc, VALUE *argv, VALUE self) {
  const char *classname SWIGUNUSED = "OUE::Vector4i";
  OneU::Vector4< int > *result = 0 ;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (OneU::Vector4< int > *)new OneU::Vector4< int >();
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
SWIGINTERN VALUE
_wrap_Vector4i_allocate(VALUE self) {
#else
  SWIGINTERN VALUE
  _wrap_Vector4i_allocate(int argc, VALUE *argv, VALUE self) {
#endif
    
    
    VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_OneU__Vector4T_int_t);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
    rb_obj_call_init(vresult, argc, argv);
#endif
    return vresult;
  }
  

SWIGINTERN VALUE
_wrap_new_Vector4i__SWIG_1(int argc, VALUE *argv, VALUE self) {
  int arg1 ;
  int arg2 ;
  int arg3 ;
  int arg4 ;
  int val1 ;
  int ecode1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  int val4 ;
  int ecode4 = 0 ;
  const char *classname SWIGUNUSED = "OUE::Vector4i";
  OneU::Vector4< int > *result = 0 ;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_int(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","OneU::Vector4<(int)>", 1, argv[0] ));
  } 
  arg1 = static_cast< int >(val1);
  ecode2 = SWIG_AsVal_int(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","OneU::Vector4<(int)>", 2, argv[1] ));
  } 
  arg2 = static_cast< int >(val2);
  ecode3 = SWIG_AsVal_int(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","OneU::Vector4<(int)>", 3, argv[2] ));
  } 
  arg3 = static_cast< int >(val3);
  ecode4 = SWIG_AsVal_int(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "int","OneU::Vector4<(int)>", 4, argv[3] ));
  } 
  arg4 = static_cast< int >(val4);
  result = (OneU::Vector4< int > *)new OneU::Vector4< int >(arg1,arg2,arg3,arg4);
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}


SWIGINTERN VALUE _wrap_new_Vector4i(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[4];
  int ii;
  
  argc = nargs;
  if (argc > 4) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 0) {
    return _wrap_new_Vector4i__SWIG_0(nargs, args, self);
  }
  if (argc == 4) {
    int _v;
    {
      int res = SWIG_AsVal_int(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_int(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_new_Vector4i__SWIG_1(nargs, args, self);
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 4, "Vector4i.new", 
    "    Vector4i.new()\n"
    "    Vector4i.new(int x, int y, int z, int w)\n");
  
  return Qnil;
}


SWIGINTERN void
free_OneU_Vector4_Sl_int_Sg_(OneU::Vector4< int > *arg1) {
    delete arg1;
}

swig_class SwigClassVector4f;

SWIGINTERN VALUE
_wrap_Vector4f_x_set(int argc, VALUE *argv, VALUE self) {
  OneU::Vector4< float > *arg1 = (OneU::Vector4< float > *) 0 ;
  float arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__Vector4T_float_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::Vector4< float > *","x", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::Vector4< float > * >(argp1);
  ecode2 = SWIG_AsVal_float(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "float","x", 2, argv[0] ));
  } 
  arg2 = static_cast< float >(val2);
  if (arg1) (arg1)->x = arg2;
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Vector4f_x_get(int argc, VALUE *argv, VALUE self) {
  OneU::Vector4< float > *arg1 = (OneU::Vector4< float > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__Vector4T_float_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::Vector4< float > *","x", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::Vector4< float > * >(argp1);
  result = (float) ((arg1)->x);
  vresult = SWIG_From_float(static_cast< float >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Vector4f_y_set(int argc, VALUE *argv, VALUE self) {
  OneU::Vector4< float > *arg1 = (OneU::Vector4< float > *) 0 ;
  float arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__Vector4T_float_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::Vector4< float > *","y", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::Vector4< float > * >(argp1);
  ecode2 = SWIG_AsVal_float(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "float","y", 2, argv[0] ));
  } 
  arg2 = static_cast< float >(val2);
  if (arg1) (arg1)->y = arg2;
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Vector4f_y_get(int argc, VALUE *argv, VALUE self) {
  OneU::Vector4< float > *arg1 = (OneU::Vector4< float > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__Vector4T_float_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::Vector4< float > *","y", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::Vector4< float > * >(argp1);
  result = (float) ((arg1)->y);
  vresult = SWIG_From_float(static_cast< float >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Vector4f_z_set(int argc, VALUE *argv, VALUE self) {
  OneU::Vector4< float > *arg1 = (OneU::Vector4< float > *) 0 ;
  float arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__Vector4T_float_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::Vector4< float > *","z", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::Vector4< float > * >(argp1);
  ecode2 = SWIG_AsVal_float(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "float","z", 2, argv[0] ));
  } 
  arg2 = static_cast< float >(val2);
  if (arg1) (arg1)->z = arg2;
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Vector4f_z_get(int argc, VALUE *argv, VALUE self) {
  OneU::Vector4< float > *arg1 = (OneU::Vector4< float > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__Vector4T_float_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::Vector4< float > *","z", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::Vector4< float > * >(argp1);
  result = (float) ((arg1)->z);
  vresult = SWIG_From_float(static_cast< float >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Vector4f_w_set(int argc, VALUE *argv, VALUE self) {
  OneU::Vector4< float > *arg1 = (OneU::Vector4< float > *) 0 ;
  float arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__Vector4T_float_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::Vector4< float > *","w", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::Vector4< float > * >(argp1);
  ecode2 = SWIG_AsVal_float(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "float","w", 2, argv[0] ));
  } 
  arg2 = static_cast< float >(val2);
  if (arg1) (arg1)->w = arg2;
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Vector4f_w_get(int argc, VALUE *argv, VALUE self) {
  OneU::Vector4< float > *arg1 = (OneU::Vector4< float > *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__Vector4T_float_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::Vector4< float > *","w", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::Vector4< float > * >(argp1);
  result = (float) ((arg1)->w);
  vresult = SWIG_From_float(static_cast< float >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_new_Vector4f__SWIG_0(int argc, VALUE *argv, VALUE self) {
  const char *classname SWIGUNUSED = "OUE::Vector4f";
  OneU::Vector4< float > *result = 0 ;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (OneU::Vector4< float > *)new OneU::Vector4< float >();
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
SWIGINTERN VALUE
_wrap_Vector4f_allocate(VALUE self) {
#else
  SWIGINTERN VALUE
  _wrap_Vector4f_allocate(int argc, VALUE *argv, VALUE self) {
#endif
    
    
    VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_OneU__Vector4T_float_t);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
    rb_obj_call_init(vresult, argc, argv);
#endif
    return vresult;
  }
  

SWIGINTERN VALUE
_wrap_new_Vector4f__SWIG_1(int argc, VALUE *argv, VALUE self) {
  float arg1 ;
  float arg2 ;
  float arg3 ;
  float arg4 ;
  float val1 ;
  int ecode1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  float val3 ;
  int ecode3 = 0 ;
  float val4 ;
  int ecode4 = 0 ;
  const char *classname SWIGUNUSED = "OUE::Vector4f";
  OneU::Vector4< float > *result = 0 ;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_float(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "float","OneU::Vector4<(float)>", 1, argv[0] ));
  } 
  arg1 = static_cast< float >(val1);
  ecode2 = SWIG_AsVal_float(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "float","OneU::Vector4<(float)>", 2, argv[1] ));
  } 
  arg2 = static_cast< float >(val2);
  ecode3 = SWIG_AsVal_float(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "float","OneU::Vector4<(float)>", 3, argv[2] ));
  } 
  arg3 = static_cast< float >(val3);
  ecode4 = SWIG_AsVal_float(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "float","OneU::Vector4<(float)>", 4, argv[3] ));
  } 
  arg4 = static_cast< float >(val4);
  result = (OneU::Vector4< float > *)new OneU::Vector4< float >(arg1,arg2,arg3,arg4);
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}


SWIGINTERN VALUE _wrap_new_Vector4f(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[4];
  int ii;
  
  argc = nargs;
  if (argc > 4) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 0) {
    return _wrap_new_Vector4f__SWIG_0(nargs, args, self);
  }
  if (argc == 4) {
    int _v;
    {
      int res = SWIG_AsVal_float(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_float(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_float(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          {
            int res = SWIG_AsVal_float(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_new_Vector4f__SWIG_1(nargs, args, self);
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 4, "Vector4f.new", 
    "    Vector4f.new()\n"
    "    Vector4f.new(float x, float y, float z, float w)\n");
  
  return Qnil;
}


SWIGINTERN void
free_OneU_Vector4_Sl_float_Sg_(OneU::Vector4< float > *arg1) {
    delete arg1;
}

swig_class SwigClassVideoNode;

SWIGINTERN VALUE
_wrap_VideoNode_visible_set(int argc, VALUE *argv, VALUE self) {
  OneU::video::INode *arg1 = (OneU::video::INode *) 0 ;
  bool arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__video__INode, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::video::INode *","visible", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::video::INode * >(argp1);
  ecode2 = SWIG_AsVal_bool(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","visible", 2, argv[0] ));
  } 
  arg2 = static_cast< bool >(val2);
  if (arg1) (arg1)->visible = arg2;
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_VideoNode_visible_get(int argc, VALUE *argv, VALUE self) {
  OneU::video::INode *arg1 = (OneU::video::INode *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__video__INode, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::video::INode *","visible", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::video::INode * >(argp1);
  result = (bool) ((arg1)->visible);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_VideoNode_active_set(int argc, VALUE *argv, VALUE self) {
  OneU::video::INode *arg1 = (OneU::video::INode *) 0 ;
  bool arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__video__INode, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::video::INode *","active", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::video::INode * >(argp1);
  ecode2 = SWIG_AsVal_bool(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","active", 2, argv[0] ));
  } 
  arg2 = static_cast< bool >(val2);
  if (arg1) (arg1)->active = arg2;
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_VideoNode_active_get(int argc, VALUE *argv, VALUE self) {
  OneU::video::INode *arg1 = (OneU::video::INode *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__video__INode, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::video::INode *","active", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::video::INode * >(argp1);
  result = (bool) ((arg1)->active);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_VideoNode_parent(int argc, VALUE *argv, VALUE self) {
  OneU::video::INode *arg1 = (OneU::video::INode *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::video::ILayer *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__video__INode, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::video::INode *","getParent", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::video::INode * >(argp1);
  result = (OneU::video::ILayer *)(arg1)->getParent();
  vresult = SWIG_NewPointerObj(result, SWIGTYPE_p_OneU__video__ILayer, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_VideoNode_detach(int argc, VALUE *argv, VALUE self) {
  OneU::video::INode *arg1 = (OneU::video::INode *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__video__INode, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::video::INode *","detach", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::video::INode * >(argp1);
  (arg1)->detach();
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_VideoNode_name(int argc, VALUE *argv, VALUE self) {
  OneU::video::INode *arg1 = (OneU::video::INode *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::pcwstr result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__video__INode, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::video::INode *","name", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::video::INode * >(argp1);
  result = (OneU::pcwstr)(arg1)->name();
  {
    vresult = rb_str_new2(OneU::Wide2Char(result, 65001));
  }
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_VideoNode_update(int argc, VALUE *argv, VALUE self) {
  OneU::video::INode *arg1 = (OneU::video::INode *) 0 ;
  float arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__video__INode, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::video::INode *","update", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::video::INode * >(argp1);
  ecode2 = SWIG_AsVal_float(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "float","update", 2, argv[0] ));
  } 
  arg2 = static_cast< float >(val2);
  (arg1)->update(arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_VideoNode_create2DTransform(int argc, VALUE *argv, VALUE self) {
  OneU::video::INode *arg1 = (OneU::video::INode *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__video__INode, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::video::INode *","create2DTransform", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::video::INode * >(argp1);
  (arg1)->create2DTransform();
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_VideoNode_xe___(int argc, VALUE *argv, VALUE self) {
  OneU::video::INode *arg1 = (OneU::video::INode *) 0 ;
  float arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__video__INode, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::video::INode *","setX", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::video::INode * >(argp1);
  ecode2 = SWIG_AsVal_float(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "float","setX", 2, argv[0] ));
  } 
  arg2 = static_cast< float >(val2);
  (arg1)->setX(arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_VideoNode_x(int argc, VALUE *argv, VALUE self) {
  OneU::video::INode *arg1 = (OneU::video::INode *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__video__INode, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::video::INode const *","getX", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::video::INode * >(argp1);
  result = (float)((OneU::video::INode const *)arg1)->getX();
  vresult = SWIG_From_float(static_cast< float >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_VideoNode_ye___(int argc, VALUE *argv, VALUE self) {
  OneU::video::INode *arg1 = (OneU::video::INode *) 0 ;
  float arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__video__INode, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::video::INode *","setY", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::video::INode * >(argp1);
  ecode2 = SWIG_AsVal_float(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "float","setY", 2, argv[0] ));
  } 
  arg2 = static_cast< float >(val2);
  (arg1)->setY(arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_VideoNode_y(int argc, VALUE *argv, VALUE self) {
  OneU::video::INode *arg1 = (OneU::video::INode *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__video__INode, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::video::INode const *","getY", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::video::INode * >(argp1);
  result = (float)((OneU::video::INode const *)arg1)->getY();
  vresult = SWIG_From_float(static_cast< float >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_VideoNode_oxe___(int argc, VALUE *argv, VALUE self) {
  OneU::video::INode *arg1 = (OneU::video::INode *) 0 ;
  float arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__video__INode, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::video::INode *","setCenterX", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::video::INode * >(argp1);
  ecode2 = SWIG_AsVal_float(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "float","setCenterX", 2, argv[0] ));
  } 
  arg2 = static_cast< float >(val2);
  (arg1)->setCenterX(arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_VideoNode_ox(int argc, VALUE *argv, VALUE self) {
  OneU::video::INode *arg1 = (OneU::video::INode *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__video__INode, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::video::INode const *","getCenterX", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::video::INode * >(argp1);
  result = (float)((OneU::video::INode const *)arg1)->getCenterX();
  vresult = SWIG_From_float(static_cast< float >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_VideoNode_oye___(int argc, VALUE *argv, VALUE self) {
  OneU::video::INode *arg1 = (OneU::video::INode *) 0 ;
  float arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__video__INode, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::video::INode *","setCenterY", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::video::INode * >(argp1);
  ecode2 = SWIG_AsVal_float(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "float","setCenterY", 2, argv[0] ));
  } 
  arg2 = static_cast< float >(val2);
  (arg1)->setCenterY(arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_VideoNode_oy(int argc, VALUE *argv, VALUE self) {
  OneU::video::INode *arg1 = (OneU::video::INode *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__video__INode, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::video::INode const *","getCenterY", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::video::INode * >(argp1);
  result = (float)((OneU::video::INode const *)arg1)->getCenterY();
  vresult = SWIG_From_float(static_cast< float >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_VideoNode_rotatione___(int argc, VALUE *argv, VALUE self) {
  OneU::video::INode *arg1 = (OneU::video::INode *) 0 ;
  float arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__video__INode, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::video::INode *","setRotation", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::video::INode * >(argp1);
  ecode2 = SWIG_AsVal_float(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "float","setRotation", 2, argv[0] ));
  } 
  arg2 = static_cast< float >(val2);
  (arg1)->setRotation(arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_VideoNode_rotation(int argc, VALUE *argv, VALUE self) {
  OneU::video::INode *arg1 = (OneU::video::INode *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__video__INode, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::video::INode const *","getRotation", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::video::INode * >(argp1);
  result = (float)((OneU::video::INode const *)arg1)->getRotation();
  vresult = SWIG_From_float(static_cast< float >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_VideoNode_scaleXe___(int argc, VALUE *argv, VALUE self) {
  OneU::video::INode *arg1 = (OneU::video::INode *) 0 ;
  float arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__video__INode, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::video::INode *","setScaleX", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::video::INode * >(argp1);
  ecode2 = SWIG_AsVal_float(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "float","setScaleX", 2, argv[0] ));
  } 
  arg2 = static_cast< float >(val2);
  (arg1)->setScaleX(arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_VideoNode_scaleX(int argc, VALUE *argv, VALUE self) {
  OneU::video::INode *arg1 = (OneU::video::INode *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__video__INode, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::video::INode const *","getScaleX", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::video::INode * >(argp1);
  result = (float)((OneU::video::INode const *)arg1)->getScaleX();
  vresult = SWIG_From_float(static_cast< float >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_VideoNode_scaleYe___(int argc, VALUE *argv, VALUE self) {
  OneU::video::INode *arg1 = (OneU::video::INode *) 0 ;
  float arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__video__INode, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::video::INode *","setScaleY", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::video::INode * >(argp1);
  ecode2 = SWIG_AsVal_float(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "float","setScaleY", 2, argv[0] ));
  } 
  arg2 = static_cast< float >(val2);
  (arg1)->setScaleY(arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_VideoNode_scaleY(int argc, VALUE *argv, VALUE self) {
  OneU::video::INode *arg1 = (OneU::video::INode *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__video__INode, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::video::INode const *","getScaleY", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::video::INode * >(argp1);
  result = (float)((OneU::video::INode const *)arg1)->getScaleY();
  vresult = SWIG_From_float(static_cast< float >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN void
free_OneU_video_INode(OneU::video::INode *arg1) {
    delete arg1;
}

swig_class SwigClassLayer;

SWIGINTERN VALUE
_wrap_Layer_name(int argc, VALUE *argv, VALUE self) {
  OneU::video::ILayer *arg1 = (OneU::video::ILayer *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::pcwstr result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__video__ILayer, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::video::ILayer *","name", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::video::ILayer * >(argp1);
  result = (OneU::pcwstr)(arg1)->name();
  {
    vresult = rb_str_new2(OneU::Wide2Char(result, 65001));
  }
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Layer_addChild__SWIG_0(int argc, VALUE *argv, VALUE self) {
  OneU::video::ILayer *arg1 = (OneU::video::ILayer *) 0 ;
  OneU::video::INode *arg2 = (OneU::video::INode *) 0 ;
  int arg3 ;
  OneU::pcwstr arg4 = (OneU::pcwstr) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  OneU::AutoPtr< wchar_t > temp4 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__video__ILayer, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::video::ILayer *","addChild", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::video::ILayer * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_OneU__video__INode, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OneU::video::INode *","addChild", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< OneU::video::INode * >(argp2);
  ecode3 = SWIG_AsVal_int(argv[1], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","addChild", 3, argv[1] ));
  } 
  arg3 = static_cast< int >(val3);
  {
    if(TYPE(argv[2]) != T_STRING)
    SWIG_exception_fail(SWIG_TypeError, Ruby_Format_TypeError( "tag", "OneU::pcwstr","addChild", 4, argv[2] ));
    
    temp4 = OneU::Char2Wide(StringValuePtr(argv[2]), /*rb_enc_get(argv[2]) == rb_utf8_encoding() ?*/ 65001 /*: 0*/);
    arg4 = temp4;
  }
  {
    if(arg2 == NULL)
    SWIG_exception_fail(SWIG_ValueError, "Expected a non-null pointer! Arg #2 in Layer_addChild");
  }
  result = (bool)OneU_video_ILayer_addChild__SWIG_0(arg1,arg2,arg3,(wchar_t const *)arg4);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Layer_addChild__SWIG_1(int argc, VALUE *argv, VALUE self) {
  OneU::video::ILayer *arg1 = (OneU::video::ILayer *) 0 ;
  OneU::video::INode *arg2 = (OneU::video::INode *) 0 ;
  int arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  int val3 ;
  int ecode3 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__video__ILayer, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::video::ILayer *","addChild", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::video::ILayer * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_OneU__video__INode, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OneU::video::INode *","addChild", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< OneU::video::INode * >(argp2);
  ecode3 = SWIG_AsVal_int(argv[1], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "int","addChild", 3, argv[1] ));
  } 
  arg3 = static_cast< int >(val3);
  {
    if(arg2 == NULL)
    SWIG_exception_fail(SWIG_ValueError, "Expected a non-null pointer! Arg #2 in Layer_addChild");
  }
  result = (bool)OneU_video_ILayer_addChild__SWIG_0(arg1,arg2,arg3);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Layer_addChild__SWIG_2(int argc, VALUE *argv, VALUE self) {
  OneU::video::ILayer *arg1 = (OneU::video::ILayer *) 0 ;
  OneU::video::INode *arg2 = (OneU::video::INode *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__video__ILayer, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::video::ILayer *","addChild", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::video::ILayer * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_OneU__video__INode, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OneU::video::INode *","addChild", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< OneU::video::INode * >(argp2);
  {
    if(arg2 == NULL)
    SWIG_exception_fail(SWIG_ValueError, "Expected a non-null pointer! Arg #2 in Layer_addChild");
  }
  result = (bool)OneU_video_ILayer_addChild__SWIG_0(arg1,arg2);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE _wrap_Layer_addChild(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[5];
  int ii;
  
  argc = nargs + 1;
  argv[0] = self;
  if (argc > 5) SWIG_fail;
  for (ii = 1; (ii < argc); ++ii) {
    argv[ii] = args[ii-1];
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OneU__video__ILayer, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_OneU__video__INode, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_Layer_addChild__SWIG_2(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OneU__video__ILayer, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_OneU__video__INode, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_Layer_addChild__SWIG_1(nargs, args, self);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OneU__video__ILayer, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_OneU__video__INode, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_int(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_Layer_addChild__SWIG_0(nargs, args, self);
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 5, "addChild", 
    "    bool addChild(OneU::video::INode *child, int z, OneU::pcwstr tag)\n"
    "    bool addChild(OneU::video::INode *child, int z)\n"
    "    bool addChild(OneU::video::INode *child)\n");
  
  return Qnil;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
SWIGINTERN VALUE
_wrap_Layer_allocate(VALUE self) {
#else
  SWIGINTERN VALUE
  _wrap_Layer_allocate(int argc, VALUE *argv, VALUE self) {
#endif
    
    
    VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_OneU__video__ILayer);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
    rb_obj_call_init(vresult, argc, argv);
#endif
    return vresult;
  }
  

SWIGINTERN VALUE
_wrap_new_Layer(int argc, VALUE *argv, VALUE self) {
  const char *classname SWIGUNUSED = "OUE::Layer";
  OneU::video::ILayer *result = 0 ;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (OneU::video::ILayer *)new OneU::video::ILayer();
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}


SWIGINTERN void
free_OneU_video_ILayer(OneU::video::ILayer *arg1) {
    delete arg1;
}

swig_class SwigClassIRenderScene;

SWIGINTERN void
free_OneU_video_IRenderScene(OneU::video::IRenderScene *arg1) {
    delete arg1;
}

swig_class SwigClassMode;


/*
  Document-method: OUE::Mode.size

  call-seq:
    size -> vector2i_t

Size or Length of the Mode.
*/

/*
  Document-method: OUE::Mode.size=

  call-seq:
    size=(x) -> vector2i_t

Size or Length of the Mode.
*/
SWIGINTERN VALUE
_wrap_Mode_size_set(int argc, VALUE *argv, VALUE self) {
  OneU::video::Mode *arg1 = (OneU::video::Mode *) 0 ;
  OneU::vector2i_t *arg2 = (OneU::vector2i_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__video__Mode, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::video::Mode *","size", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::video::Mode * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_OneU__Vector2T_int_t, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OneU::vector2i_t *","size", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< OneU::vector2i_t * >(argp2);
  if (arg1) (arg1)->size = *arg2;
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Mode_size_get(int argc, VALUE *argv, VALUE self) {
  OneU::video::Mode *arg1 = (OneU::video::Mode *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::vector2i_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__video__Mode, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::video::Mode *","size", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::video::Mode * >(argp1);
  result = (OneU::vector2i_t *)& ((arg1)->size);
  vresult = SWIG_NewPointerObj(result, SWIGTYPE_p_OneU__Vector2T_int_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Mode_refreshRate_set(int argc, VALUE *argv, VALUE self) {
  OneU::video::Mode *arg1 = (OneU::video::Mode *) 0 ;
  OneU::uint32 arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__video__Mode, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::video::Mode *","refreshRate", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::video::Mode * >(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "OneU::uint32","refreshRate", 2, argv[0] ));
  } 
  arg2 = static_cast< OneU::uint32 >(val2);
  if (arg1) (arg1)->refreshRate = arg2;
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Mode_refreshRate_get(int argc, VALUE *argv, VALUE self) {
  OneU::video::Mode *arg1 = (OneU::video::Mode *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::uint32 result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__video__Mode, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::video::Mode *","refreshRate", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::video::Mode * >(argp1);
  result = (OneU::uint32) ((arg1)->refreshRate);
  vresult = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
  return vresult;
fail:
  return Qnil;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
SWIGINTERN VALUE
_wrap_Mode_allocate(VALUE self) {
#else
  SWIGINTERN VALUE
  _wrap_Mode_allocate(int argc, VALUE *argv, VALUE self) {
#endif
    
    
    VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_OneU__video__Mode);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
    rb_obj_call_init(vresult, argc, argv);
#endif
    return vresult;
  }
  

SWIGINTERN VALUE
_wrap_new_Mode(int argc, VALUE *argv, VALUE self) {
  const char *classname SWIGUNUSED = "OUE::Mode";
  OneU::video::Mode *result = 0 ;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (OneU::video::Mode *)new OneU::video::Mode();
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}


SWIGINTERN void
free_OneU_video_Mode(OneU::video::Mode *arg1) {
    delete arg1;
}

swig_class SwigClassImage_t;

#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
SWIGINTERN VALUE
_wrap_Image_t_allocate(VALUE self) {
#else
  SWIGINTERN VALUE
  _wrap_Image_t_allocate(int argc, VALUE *argv, VALUE self) {
#endif
    
    
    VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_OneU__image_t);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
    rb_obj_call_init(vresult, argc, argv);
#endif
    return vresult;
  }
  

SWIGINTERN VALUE
_wrap_new_Image_t(int argc, VALUE *argv, VALUE self) {
  const char *classname SWIGUNUSED = "OUE::Image_t";
  OneU::image_t *result = 0 ;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (OneU::image_t *)new OneU::image_t();
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Image_t_width(int argc, VALUE *argv, VALUE self) {
  OneU::image_t *arg1 = (OneU::image_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::uint32 result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__image_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::image_t *","getWidth", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::image_t * >(argp1);
  result = (OneU::uint32)OneU_image_t_getWidth(arg1);
  vresult = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Image_t_height(int argc, VALUE *argv, VALUE self) {
  OneU::image_t *arg1 = (OneU::image_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::uint32 result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__image_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::image_t *","getHeight", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::image_t * >(argp1);
  result = (OneU::uint32)OneU_image_t_getHeight(arg1);
  vresult = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN void
free_OneU_image_t(OneU::image_t *arg1) {
    delete arg1;
}

swig_class SwigClassVideo;

SWIGINTERN VALUE
_wrap_Video_getName(int argc, VALUE *argv, VALUE self) {
  OneU::IVideo *arg1 = (OneU::IVideo *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::pcwstr result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IVideo, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IVideo *","getName", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IVideo * >(argp1);
  result = (OneU::pcwstr)(arg1)->getName();
  {
    vresult = rb_str_new2(OneU::Wide2Char(result, 65001));
  }
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Video_prepare(int argc, VALUE *argv, VALUE self) {
  OneU::IVideo *arg1 = (OneU::IVideo *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IVideo, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IVideo *","prepare", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IVideo * >(argp1);
  (arg1)->prepare();
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Video_init(int argc, VALUE *argv, VALUE self) {
  OneU::IVideo *arg1 = (OneU::IVideo *) 0 ;
  OneU::uint32 arg2 ;
  OneU::uint32 arg3 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  unsigned long val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IVideo, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IVideo *","init", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IVideo * >(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "OneU::uint32","init", 2, argv[0] ));
  } 
  arg2 = static_cast< OneU::uint32 >(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_long(argv[1], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "OneU::uint32","init", 3, argv[1] ));
  } 
  arg3 = static_cast< OneU::uint32 >(val3);
  ecode4 = SWIG_AsVal_bool(argv[2], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "bool","init", 4, argv[2] ));
  } 
  arg4 = static_cast< bool >(val4);
  (arg1)->init(arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Video_switchDevice(int argc, VALUE *argv, VALUE self) {
  OneU::IVideo *arg1 = (OneU::IVideo *) 0 ;
  OneU::uint32 arg2 ;
  OneU::uint32 arg3 ;
  bool arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  unsigned long val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IVideo, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IVideo *","switchDevice", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IVideo * >(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "OneU::uint32","switchDevice", 2, argv[0] ));
  } 
  arg2 = static_cast< OneU::uint32 >(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_long(argv[1], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "OneU::uint32","switchDevice", 3, argv[1] ));
  } 
  arg3 = static_cast< OneU::uint32 >(val3);
  ecode4 = SWIG_AsVal_bool(argv[2], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "bool","switchDevice", 4, argv[2] ));
  } 
  arg4 = static_cast< bool >(val4);
  (arg1)->switchDevice(arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Video_isWindowed(int argc, VALUE *argv, VALUE self) {
  OneU::IVideo *arg1 = (OneU::IVideo *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IVideo, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IVideo *","isWindowed", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IVideo * >(argp1);
  result = (bool)(arg1)->isWindowed();
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Video_getDeviceSize(int argc, VALUE *argv, VALUE self) {
  OneU::IVideo *arg1 = (OneU::IVideo *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::vector2i_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IVideo, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IVideo *","getDeviceSize", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IVideo * >(argp1);
  result = (arg1)->getDeviceSize();
  vresult = SWIG_NewPointerObj((new OneU::vector2i_t(static_cast< const OneU::vector2i_t& >(result))), SWIGTYPE_p_OneU__Vector2T_int_t, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Video_loadImage(int argc, VALUE *argv, VALUE self) {
  OneU::IVideo *arg1 = (OneU::IVideo *) 0 ;
  OneU::pcwstr arg2 = (OneU::pcwstr) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::AutoPtr< wchar_t > temp2 ;
  OneU::image_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IVideo, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IVideo *","loadImage", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IVideo * >(argp1);
  {
    if(TYPE(argv[0]) != T_STRING)
    SWIG_exception_fail(SWIG_TypeError, Ruby_Format_TypeError( "filename", "OneU::pcwstr","loadImage", 2, argv[0] ));
    
    temp2 = OneU::Char2Wide(StringValuePtr(argv[0]), /*rb_enc_get(argv[0]) == rb_utf8_encoding() ?*/ 65001 /*: 0*/);
    arg2 = temp2;
  }
  result = (arg1)->loadImage(arg2);
  vresult = SWIG_NewPointerObj((new OneU::image_t(static_cast< const OneU::image_t& >(result))), SWIGTYPE_p_OneU__image_t, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Video_getRoot(int argc, VALUE *argv, VALUE self) {
  OneU::IVideo *arg1 = (OneU::IVideo *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::video::ILayer *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IVideo, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IVideo *","getRoot", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IVideo * >(argp1);
  result = (OneU::video::ILayer *) &(arg1)->getRoot();
  vresult = SWIG_NewPointerObj(result, SWIGTYPE_p_OneU__video__ILayer, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Video_getRenderScene(int argc, VALUE *argv, VALUE self) {
  OneU::IVideo *arg1 = (OneU::IVideo *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::video::IRenderScene *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IVideo, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IVideo *","getRenderScene", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IVideo * >(argp1);
  result = (OneU::video::IRenderScene *)(arg1)->getRenderScene();
  vresult = SWIG_NewPointerObj(result, SWIGTYPE_p_OneU__video__IRenderScene, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Video_setRenderScene(int argc, VALUE *argv, VALUE self) {
  OneU::IVideo *arg1 = (OneU::IVideo *) 0 ;
  OneU::video::IRenderScene *arg2 = (OneU::video::IRenderScene *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  OneU::video::IRenderScene *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IVideo, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IVideo *","setRenderScene", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IVideo * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_OneU__video__IRenderScene, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OneU::video::IRenderScene *","setRenderScene", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< OneU::video::IRenderScene * >(argp2);
  result = (OneU::video::IRenderScene *)(arg1)->setRenderScene(arg2);
  vresult = SWIG_NewPointerObj(result, SWIGTYPE_p_OneU__video__IRenderScene, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Video_createRenderScene(int argc, VALUE *argv, VALUE self) {
  OneU::IVideo *arg1 = (OneU::IVideo *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::video::IRenderScene *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IVideo, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IVideo *","createRenderScene", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IVideo * >(argp1);
  result = (OneU::video::IRenderScene *)(arg1)->createRenderScene();
  vresult = SWIG_NewPointerObj(result, SWIGTYPE_p_OneU__video__IRenderScene, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Video_showInfo(int argc, VALUE *argv, VALUE self) {
  OneU::IVideo *arg1 = (OneU::IVideo *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IVideo, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IVideo *","showInfo", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IVideo * >(argp1);
  (arg1)->showInfo();
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Video_getAvailableMode(int argc, VALUE *argv, VALUE self) {
  OneU::IVideo *arg1 = (OneU::IVideo *) 0 ;
  OneU::List< OneU::video::Mode > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::List< OneU::video::Mode > list2 ;
  VALUE out2 ;
  VALUE vresult = Qnil;
  
  arg2 = &list2;
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IVideo, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IVideo *","getAvailableMode", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IVideo * >(argp1);
  (arg1)->getAvailableMode(*arg2);
  {
    out2 = rb_ary_new();
    for(OneU::List<OneU::video::Mode>::iterator it = arg2->begin(); it != arg2->end(); ++it){
      rb_ary_push(out2, SWIG_NewPointerObj(new OneU::video::Mode(*it), SWIGTYPE_p_OneU__video__Mode, SWIG_POINTER_OWN));
    }
    vresult = SWIG_Ruby_AppendOutput(vresult, out2);
  }
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN void
free_OneU_IVideo(OneU::IVideo *arg1) {
    delete arg1;
}

swig_class SwigClassIScene;

SWIGINTERN VALUE
_wrap_IScene_update(int argc, VALUE *argv, VALUE self) {
  OneU::IScene *arg1 = (OneU::IScene *) 0 ;
  float arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IScene, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IScene *","update", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IScene * >(argp1);
  ecode2 = SWIG_AsVal_float(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "float","update", 2, argv[0] ));
  } 
  arg2 = static_cast< float >(val2);
  (arg1)->update(arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_IScene_RS(int argc, VALUE *argv, VALUE self) {
  OneU::IScene *arg1 = (OneU::IScene *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::video::IRenderScene *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IScene, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IScene *","getRenderScene", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IScene * >(argp1);
  result = (OneU::video::IRenderScene *)(arg1)->getRenderScene();
  vresult = SWIG_NewPointerObj(result, SWIGTYPE_p_OneU__video__IRenderScene, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN void
free_OneU_IScene(OneU::IScene *arg1) {
    delete arg1;
}

SWIGINTERN VALUE
_wrap_IScene_pushInputFocus(int argc, VALUE *argv, VALUE self) {
  OneU::IScene *arg1 = (OneU::IScene *) 0 ;
  OneU::IInputReceiver *arg2 = (OneU::IInputReceiver *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IScene, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IScene *","pushInputFocus", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IScene * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_OneU__IInputReceiver, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OneU::IInputReceiver *","pushInputFocus", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< OneU::IInputReceiver * >(argp2);
  (arg1)->pushInputFocus(arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_IScene_popInputFocus(int argc, VALUE *argv, VALUE self) {
  OneU::IScene *arg1 = (OneU::IScene *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::IInputReceiver *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IScene, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IScene *","popInputFocus", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IScene * >(argp1);
  result = (OneU::IInputReceiver *)(arg1)->popInputFocus();
  vresult = SWIG_NewPointerObj(result, SWIGTYPE_p_OneU__IInputReceiver, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}


swig_class SwigClassScene;

SWIGINTERN VALUE
_wrap_Scene___isActive_set(int argc, VALUE *argv, VALUE self) {
  Scene *arg1 = (Scene *) 0 ;
  bool arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Scene, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Scene *","__isActive", 1, self )); 
  }
  arg1 = reinterpret_cast< Scene * >(argp1);
  ecode2 = SWIG_AsVal_bool(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","__isActive", 2, argv[0] ));
  } 
  arg2 = static_cast< bool >(val2);
  if (arg1) (arg1)->__isActive = arg2;
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Scene___isActive_get(int argc, VALUE *argv, VALUE self) {
  Scene *arg1 = (Scene *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Scene, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Scene *","__isActive", 1, self )); 
  }
  arg1 = reinterpret_cast< Scene * >(argp1);
  result = (bool) ((arg1)->__isActive);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Scene___game_set(int argc, VALUE *argv, VALUE self) {
  Scene *arg1 = (Scene *) 0 ;
  OneU::IGame *arg2 = (OneU::IGame *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Scene, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Scene *","__game", 1, self )); 
  }
  arg1 = reinterpret_cast< Scene * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_OneU__IGame, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OneU::IGame *","__game", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< OneU::IGame * >(argp2);
  if (arg1) (arg1)->__game = arg2;
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Scene___game_get(int argc, VALUE *argv, VALUE self) {
  Scene *arg1 = (Scene *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::IGame *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Scene, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Scene *","__game", 1, self )); 
  }
  arg1 = reinterpret_cast< Scene * >(argp1);
  result = (OneU::IGame *) ((arg1)->__game);
  vresult = SWIG_NewPointerObj(result, SWIGTYPE_p_OneU__IGame, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
SWIGINTERN VALUE
_wrap_Scene_allocate(VALUE self) {
#else
  SWIGINTERN VALUE
  _wrap_Scene_allocate(int argc, VALUE *argv, VALUE self) {
#endif
    
    
    VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_Scene);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
    rb_obj_call_init(vresult, argc, argv);
#endif
    return vresult;
  }
  

SWIGINTERN VALUE
_wrap_new_Scene(int argc, VALUE *argv, VALUE self) {
  VALUE arg1 = (VALUE) 0 ;
  const char *classname SWIGUNUSED = "OUE::Scene";
  Scene *result = 0 ;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  arg1 = self;
  if ( strcmp(rb_obj_classname(self), classname) != 0 ) {
    /* subclassed */
    result = (Scene *)new SwigDirector_Scene(arg1); 
  } else {
    result = (Scene *)new Scene(); 
  }
  
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}


SWIGINTERN void
free_Scene(Scene *arg1) {
    delete arg1;
}

SWIGINTERN VALUE
_wrap_Scene_update(int argc, VALUE *argv, VALUE self) {
  Scene *arg1 = (Scene *) 0 ;
  float arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  Swig::Director *director = 0;
  bool upcall = false;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_Scene, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Scene *","update", 1, self )); 
  }
  arg1 = reinterpret_cast< Scene * >(argp1);
  ecode2 = SWIG_AsVal_float(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "float","update", 2, argv[0] ));
  } 
  arg2 = static_cast< float >(val2);
  director = dynamic_cast<Swig::Director *>(arg1);
  upcall = (director && (director->swig_get_self() == self));
  try {
    if (upcall) {
      (arg1)->Scene::update(arg2);
    } else {
      (arg1)->update(arg2);
    }
  } catch (Swig::DirectorException& e) {
    rb_exc_raise(e.getError());
    SWIG_fail;
  }
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_disown_Scene(int argc, VALUE *argv, VALUE self) {
  Scene *arg1 = (Scene *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_Scene, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Scene *","disown_Scene", 1, argv[0] )); 
  }
  arg1 = reinterpret_cast< Scene * >(argp1);
  {
    Swig::Director *director = SWIG_DIRECTOR_CAST(arg1);
    if (director) director->swig_disown();
  }
  
  return Qnil;
fail:
  return Qnil;
}


swig_class SwigClassGame;

SWIGINTERN VALUE
_wrap_Game_getVideo(int argc, VALUE *argv, VALUE self) {
  OneU::IGame *arg1 = (OneU::IGame *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::IVideo *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IGame, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IGame *","getVideo", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IGame * >(argp1);
  result = (OneU::IVideo *) &(arg1)->getVideo();
  vresult = SWIG_NewPointerObj(result, SWIGTYPE_p_OneU__IVideo, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Game_getAudio(int argc, VALUE *argv, VALUE self) {
  OneU::IGame *arg1 = (OneU::IGame *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::IAudio *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IGame, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IGame *","getAudio", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IGame * >(argp1);
  result = (OneU::IAudio *) &(arg1)->getAudio();
  vresult = SWIG_NewPointerObj(result, SWIGTYPE_p_OneU__IAudio, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Game_getControl(int argc, VALUE *argv, VALUE self) {
  OneU::IGame *arg1 = (OneU::IGame *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::IControl *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IGame, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IGame *","getControl", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IGame * >(argp1);
  result = (OneU::IControl *) &(arg1)->getControl();
  vresult = SWIG_NewPointerObj(result, SWIGTYPE_p_OneU__IControl, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Game_getScene(int argc, VALUE *argv, VALUE self) {
  OneU::IGame *arg1 = (OneU::IGame *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::IScene *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IGame, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IGame *","getScene", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IGame * >(argp1);
  result = (OneU::IScene *) &(arg1)->getScene();
  vresult = SWIG_NewPointerObj(result, SWIGTYPE_p_OneU__IScene, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Game_init(int argc, VALUE *argv, VALUE self) {
  OneU::IGame *arg1 = (OneU::IGame *) 0 ;
  OneU::pcwstr arg2 = (OneU::pcwstr) 0 ;
  OneU::uint32 arg3 ;
  OneU::uint32 arg4 ;
  bool arg5 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::AutoPtr< wchar_t > temp2 ;
  unsigned long val3 ;
  int ecode3 = 0 ;
  unsigned long val4 ;
  int ecode4 = 0 ;
  bool val5 ;
  int ecode5 = 0 ;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IGame, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IGame *","init", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IGame * >(argp1);
  {
    if(TYPE(argv[0]) != T_STRING)
    SWIG_exception_fail(SWIG_TypeError, Ruby_Format_TypeError( "WindowName", "OneU::pcwstr","init", 2, argv[0] ));
    
    temp2 = OneU::Char2Wide(StringValuePtr(argv[0]), /*rb_enc_get(argv[0]) == rb_utf8_encoding() ?*/ 65001 /*: 0*/);
    arg2 = temp2;
  }
  ecode3 = SWIG_AsVal_unsigned_SS_long(argv[1], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "OneU::uint32","init", 3, argv[1] ));
  } 
  arg3 = static_cast< OneU::uint32 >(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_long(argv[2], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "OneU::uint32","init", 4, argv[2] ));
  } 
  arg4 = static_cast< OneU::uint32 >(val4);
  ecode5 = SWIG_AsVal_bool(argv[3], &val5);
  if (!SWIG_IsOK(ecode5)) {
    SWIG_exception_fail(SWIG_ArgError(ecode5), Ruby_Format_TypeError( "", "bool","init", 5, argv[3] ));
  } 
  arg5 = static_cast< bool >(val5);
  (arg1)->init(arg2,arg3,arg4,arg5);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Game_run(int argc, VALUE *argv, VALUE self) {
  OneU::IGame *arg1 = (OneU::IGame *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IGame, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IGame *","run", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IGame * >(argp1);
  result = (int)(arg1)->run();
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Game_quit(int argc, VALUE *argv, VALUE self) {
  OneU::IGame *arg1 = (OneU::IGame *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IGame, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IGame *","quit", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IGame * >(argp1);
  (arg1)->quit();
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Game_onFrame(int argc, VALUE *argv, VALUE self) {
  OneU::IGame *arg1 = (OneU::IGame *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IGame, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IGame *","onFrame", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IGame * >(argp1);
  (arg1)->onFrame();
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Game_onActiveWindow(int argc, VALUE *argv, VALUE self) {
  OneU::IGame *arg1 = (OneU::IGame *) 0 ;
  bool arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IGame, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IGame *","onActiveWindow", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IGame * >(argp1);
  ecode2 = SWIG_AsVal_bool(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","onActiveWindow", 2, argv[0] ));
  } 
  arg2 = static_cast< bool >(val2);
  (arg1)->onActiveWindow(arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Game_setWindowTitle(int argc, VALUE *argv, VALUE self) {
  OneU::IGame *arg1 = (OneU::IGame *) 0 ;
  OneU::pcwstr arg2 = (OneU::pcwstr) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::AutoPtr< wchar_t > temp2 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IGame, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IGame *","setWindowTitle", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IGame * >(argp1);
  {
    if(TYPE(argv[0]) != T_STRING)
    SWIG_exception_fail(SWIG_TypeError, Ruby_Format_TypeError( "title", "OneU::pcwstr","setWindowTitle", 2, argv[0] ));
    
    temp2 = OneU::Char2Wide(StringValuePtr(argv[0]), /*rb_enc_get(argv[0]) == rb_utf8_encoding() ?*/ 65001 /*: 0*/);
    arg2 = temp2;
  }
  (arg1)->setWindowTitle(arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Game_getWindowPos(int argc, VALUE *argv, VALUE self) {
  OneU::IGame *arg1 = (OneU::IGame *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::vector2i_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IGame, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IGame *","getWindowPos", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IGame * >(argp1);
  result = (arg1)->getWindowPos();
  vresult = SWIG_NewPointerObj((new OneU::vector2i_t(static_cast< const OneU::vector2i_t& >(result))), SWIGTYPE_p_OneU__Vector2T_int_t, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Game_setWindowPos(int argc, VALUE *argv, VALUE self) {
  OneU::IGame *arg1 = (OneU::IGame *) 0 ;
  OneU::vector2i_t *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IGame, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IGame *","setWindowPos", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IGame * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_OneU__Vector2T_int_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OneU::vector2i_t const &","setWindowPos", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "OneU::vector2i_t const &","setWindowPos", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< OneU::vector2i_t * >(argp2);
  (arg1)->setWindowPos((OneU::vector2i_t const &)*arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Game_showCursor(int argc, VALUE *argv, VALUE self) {
  OneU::IGame *arg1 = (OneU::IGame *) 0 ;
  bool arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IGame, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IGame *","showCursor", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IGame * >(argp1);
  ecode2 = SWIG_AsVal_bool(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","showCursor", 2, argv[0] ));
  } 
  arg2 = static_cast< bool >(val2);
  (arg1)->showCursor(arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Game_getFPS(int argc, VALUE *argv, VALUE self) {
  OneU::IGame *arg1 = (OneU::IGame *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IGame, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IGame *","getFPS", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IGame * >(argp1);
  result = (float)(arg1)->getFPS();
  vresult = SWIG_From_float(static_cast< float >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Game_getTimeInterval(int argc, VALUE *argv, VALUE self) {
  OneU::IGame *arg1 = (OneU::IGame *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IGame, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IGame *","getTimeInterval", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IGame * >(argp1);
  result = (float)(arg1)->getTimeInterval();
  vresult = SWIG_From_float(static_cast< float >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Game_replaceScene(int argc, VALUE *argv, VALUE self) {
  OneU::IGame *arg1 = (OneU::IGame *) 0 ;
  Scene *arg2 = (Scene *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IGame, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IGame *","replaceScene", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IGame * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2,SWIGTYPE_p_Scene, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "Scene *","replaceScene", 2, argv[0] )); 
  }
  arg2 = reinterpret_cast< Scene * >(argp2);
  OneU_IGame_replaceScene(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Game_onChar(int argc, VALUE *argv, VALUE self) {
  OneU::IGame *arg1 = (OneU::IGame *) 0 ;
  OneU::CharEvent *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IGame, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IGame *","onChar", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IGame * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_OneU__CharEvent,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OneU::CharEvent const &","onChar", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "OneU::CharEvent const &","onChar", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< OneU::CharEvent * >(argp2);
  (arg1)->onChar((OneU::CharEvent const &)*arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Game_onKey(int argc, VALUE *argv, VALUE self) {
  OneU::IGame *arg1 = (OneU::IGame *) 0 ;
  OneU::KeyEvent *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IGame, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IGame *","onKey", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IGame * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_OneU__KeyEvent,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OneU::KeyEvent const &","onKey", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "OneU::KeyEvent const &","onKey", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< OneU::KeyEvent * >(argp2);
  (arg1)->onKey((OneU::KeyEvent const &)*arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Game_onMouse(int argc, VALUE *argv, VALUE self) {
  OneU::IGame *arg1 = (OneU::IGame *) 0 ;
  OneU::MouseEvent *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IGame, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IGame *","onMouse", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IGame * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_OneU__MouseEvent,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OneU::MouseEvent const &","onMouse", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "OneU::MouseEvent const &","onMouse", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< OneU::MouseEvent * >(argp2);
  (arg1)->onMouse((OneU::MouseEvent const &)*arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Game_output(int argc, VALUE *argv, VALUE self) {
  OneU::IGame *arg1 = (OneU::IGame *) 0 ;
  OneU::pcwstr arg2 = (OneU::pcwstr) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::AutoPtr< wchar_t > temp2 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IGame, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IGame *","output", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IGame * >(argp1);
  {
    if(TYPE(argv[0]) != T_STRING)
    SWIG_exception_fail(SWIG_TypeError, Ruby_Format_TypeError( "data", "OneU::pcwstr","output", 2, argv[0] ));
    
    temp2 = OneU::Char2Wide(StringValuePtr(argv[0]), /*rb_enc_get(argv[0]) == rb_utf8_encoding() ?*/ 65001 /*: 0*/);
    arg2 = temp2;
  }
  (arg1)->output(arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Game_showInfo(int argc, VALUE *argv, VALUE self) {
  OneU::IGame *arg1 = (OneU::IGame *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IGame, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IGame *","showInfo", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IGame * >(argp1);
  (arg1)->showInfo();
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN void
free_OneU_IGame(OneU::IGame *arg1) {
    delete arg1;
}

SWIGINTERN VALUE
_wrap_Aux_GameInit(int argc, VALUE *argv, VALUE self) {
  OneU::pcwstr arg1 = (OneU::pcwstr) 0 ;
  OneU::uint32 arg2 ;
  OneU::uint32 arg3 ;
  bool arg4 ;
  OneU::AutoPtr< wchar_t > temp1 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  unsigned long val3 ;
  int ecode3 = 0 ;
  bool val4 ;
  int ecode4 = 0 ;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  {
    if(TYPE(argv[0]) != T_STRING)
    SWIG_exception_fail(SWIG_TypeError, Ruby_Format_TypeError( "WindowName", "OneU::pcwstr","OneU::Aux_GameInit", 1, argv[0] ));
    
    temp1 = OneU::Char2Wide(StringValuePtr(argv[0]), /*rb_enc_get(argv[0]) == rb_utf8_encoding() ?*/ 65001 /*: 0*/);
    arg1 = temp1;
  }
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "OneU::uint32","OneU::Aux_GameInit", 2, argv[1] ));
  } 
  arg2 = static_cast< OneU::uint32 >(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_long(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "OneU::uint32","OneU::Aux_GameInit", 3, argv[2] ));
  } 
  arg3 = static_cast< OneU::uint32 >(val3);
  ecode4 = SWIG_AsVal_bool(argv[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "bool","OneU::Aux_GameInit", 4, argv[3] ));
  } 
  arg4 = static_cast< bool >(val4);
  OneU::Aux_GameInit((wchar_t const *)arg1,arg2,arg3,arg4);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_GetGame(int argc, VALUE *argv, VALUE self) {
  OneU::IGame *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (OneU::IGame *) &OneU::GetGame();
  vresult = SWIG_NewPointerObj(result, SWIGTYPE_p_OneU__IGame, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_GetVideo(int argc, VALUE *argv, VALUE self) {
  OneU::IVideo *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (OneU::IVideo *) &OneU::GetVideo();
  vresult = SWIG_NewPointerObj(result, SWIGTYPE_p_OneU__IVideo, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_GetAudio(int argc, VALUE *argv, VALUE self) {
  OneU::IAudio *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (OneU::IAudio *) &OneU::GetAudio();
  vresult = SWIG_NewPointerObj(result, SWIGTYPE_p_OneU__IAudio, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_GetControl(int argc, VALUE *argv, VALUE self) {
  OneU::IControl *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (OneU::IControl *) &OneU::GetControl();
  vresult = SWIG_NewPointerObj(result, SWIGTYPE_p_OneU__IControl, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_GetScene(int argc, VALUE *argv, VALUE self) {
  OneU::IScene *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (OneU::IScene *) &OneU::GetScene();
  vresult = SWIG_NewPointerObj(result, SWIGTYPE_p_OneU__IScene, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}


swig_class SwigClassSound_t;

#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
SWIGINTERN VALUE
_wrap_Sound_t_allocate(VALUE self) {
#else
  SWIGINTERN VALUE
  _wrap_Sound_t_allocate(int argc, VALUE *argv, VALUE self) {
#endif
    
    
    VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_OneU__sound_t);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
    rb_obj_call_init(vresult, argc, argv);
#endif
    return vresult;
  }
  

SWIGINTERN VALUE
_wrap_new_Sound_t(int argc, VALUE *argv, VALUE self) {
  const char *classname SWIGUNUSED = "OUE::Sound_t";
  OneU::sound_t *result = 0 ;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (OneU::sound_t *)new OneU::sound_t();
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Sound_t_getVolume(int argc, VALUE *argv, VALUE self) {
  OneU::sound_t *arg1 = (OneU::sound_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__sound_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::sound_t *","getVolume", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::sound_t * >(argp1);
  result = (float)OneU_sound_t_getVolume(arg1);
  vresult = SWIG_From_float(static_cast< float >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Sound_t_setVolume(int argc, VALUE *argv, VALUE self) {
  OneU::sound_t *arg1 = (OneU::sound_t *) 0 ;
  float arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__sound_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::sound_t *","setVolume", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::sound_t * >(argp1);
  ecode2 = SWIG_AsVal_float(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "float","setVolume", 2, argv[0] ));
  } 
  arg2 = static_cast< float >(val2);
  OneU_sound_t_setVolume(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Sound_t_getFrequency(int argc, VALUE *argv, VALUE self) {
  OneU::sound_t *arg1 = (OneU::sound_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::uint32 result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__sound_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::sound_t *","getFrequency", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::sound_t * >(argp1);
  result = (OneU::uint32)OneU_sound_t_getFrequency(arg1);
  vresult = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Sound_t_setFrequency(int argc, VALUE *argv, VALUE self) {
  OneU::sound_t *arg1 = (OneU::sound_t *) 0 ;
  OneU::uint32 arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__sound_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::sound_t *","setFrequency", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::sound_t * >(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "OneU::uint32","setFrequency", 2, argv[0] ));
  } 
  arg2 = static_cast< OneU::uint32 >(val2);
  OneU_sound_t_setFrequency(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Sound_t_getPan(int argc, VALUE *argv, VALUE self) {
  OneU::sound_t *arg1 = (OneU::sound_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__sound_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::sound_t *","getPan", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::sound_t * >(argp1);
  result = (float)OneU_sound_t_getPan(arg1);
  vresult = SWIG_From_float(static_cast< float >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Sound_t_setPan(int argc, VALUE *argv, VALUE self) {
  OneU::sound_t *arg1 = (OneU::sound_t *) 0 ;
  float arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__sound_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::sound_t *","setPan", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::sound_t * >(argp1);
  ecode2 = SWIG_AsVal_float(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "float","setPan", 2, argv[0] ));
  } 
  arg2 = static_cast< float >(val2);
  OneU_sound_t_setPan(arg1,arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN void
free_OneU_sound_t(OneU::sound_t *arg1) {
    delete arg1;
}

swig_class SwigClassAudio;

SWIGINTERN VALUE
_wrap_Audio_init(int argc, VALUE *argv, VALUE self) {
  OneU::IAudio *arg1 = (OneU::IAudio *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IAudio, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IAudio *","init", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IAudio * >(argp1);
  (arg1)->init();
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Audio_loadSound(int argc, VALUE *argv, VALUE self) {
  OneU::IAudio *arg1 = (OneU::IAudio *) 0 ;
  OneU::pcwstr arg2 = (OneU::pcwstr) 0 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::AutoPtr< wchar_t > temp2 ;
  bool val3 ;
  int ecode3 = 0 ;
  OneU::sound_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IAudio, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IAudio *","loadSound", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IAudio * >(argp1);
  {
    if(TYPE(argv[0]) != T_STRING)
    SWIG_exception_fail(SWIG_TypeError, Ruby_Format_TypeError( "filename", "OneU::pcwstr","loadSound", 2, argv[0] ));
    
    temp2 = OneU::Char2Wide(StringValuePtr(argv[0]), /*rb_enc_get(argv[0]) == rb_utf8_encoding() ?*/ 65001 /*: 0*/);
    arg2 = temp2;
  }
  ecode3 = SWIG_AsVal_bool(argv[1], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","loadSound", 3, argv[1] ));
  } 
  arg3 = static_cast< bool >(val3);
  result = (arg1)->loadSound(arg2,arg3);
  vresult = SWIG_NewPointerObj((new OneU::sound_t(static_cast< const OneU::sound_t& >(result))), SWIGTYPE_p_OneU__sound_t, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Audio_playMusic__SWIG_0(int argc, VALUE *argv, VALUE self) {
  OneU::IAudio *arg1 = (OneU::IAudio *) 0 ;
  OneU::sound_t arg2 ;
  bool arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  bool val3 ;
  int ecode3 = 0 ;
  
  if ((argc < 2) || (argc > 2)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IAudio, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IAudio *","playMusic", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IAudio * >(argp1);
  {
    res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_OneU__sound_t,  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OneU::sound_t","playMusic", 2, argv[0] )); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "OneU::sound_t","playMusic", 2, argv[0]));
    } else {
      arg2 = *(reinterpret_cast< OneU::sound_t * >(argp2));
    }
  }
  ecode3 = SWIG_AsVal_bool(argv[1], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "bool","playMusic", 3, argv[1] ));
  } 
  arg3 = static_cast< bool >(val3);
  (arg1)->playMusic(arg2,arg3);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Audio_playMusic__SWIG_1(int argc, VALUE *argv, VALUE self) {
  OneU::IAudio *arg1 = (OneU::IAudio *) 0 ;
  OneU::sound_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IAudio, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IAudio *","playMusic", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IAudio * >(argp1);
  {
    res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_OneU__sound_t,  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OneU::sound_t","playMusic", 2, argv[0] )); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "OneU::sound_t","playMusic", 2, argv[0]));
    } else {
      arg2 = *(reinterpret_cast< OneU::sound_t * >(argp2));
    }
  }
  (arg1)->playMusic(arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE _wrap_Audio_playMusic(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[4];
  int ii;
  
  argc = nargs + 1;
  argv[0] = self;
  if (argc > 4) SWIG_fail;
  for (ii = 1; (ii < argc); ++ii) {
    argv[ii] = args[ii-1];
  }
  if (argc == 2) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OneU__IAudio, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_OneU__sound_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_Audio_playMusic__SWIG_1(nargs, args, self);
      }
    }
  }
  if (argc == 3) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OneU__IAudio, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_OneU__sound_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        {
          int res = SWIG_AsVal_bool(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_Audio_playMusic__SWIG_0(nargs, args, self);
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 4, "Audio.playMusic", 
    "    void Audio.playMusic(OneU::sound_t sound, bool looped)\n"
    "    void Audio.playMusic(OneU::sound_t sound)\n");
  
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Audio_stopMusic(int argc, VALUE *argv, VALUE self) {
  OneU::IAudio *arg1 = (OneU::IAudio *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IAudio, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IAudio *","stopMusic", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IAudio * >(argp1);
  (arg1)->stopMusic();
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Audio_getPlayingMusic(int argc, VALUE *argv, VALUE self) {
  OneU::IAudio *arg1 = (OneU::IAudio *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::sound_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IAudio, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IAudio *","getPlayingMusic", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IAudio * >(argp1);
  result = (arg1)->getPlayingMusic();
  vresult = SWIG_NewPointerObj((new OneU::sound_t(static_cast< const OneU::sound_t& >(result))), SWIGTYPE_p_OneU__sound_t, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Audio_playFX(int argc, VALUE *argv, VALUE self) {
  OneU::IAudio *arg1 = (OneU::IAudio *) 0 ;
  OneU::sound_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IAudio, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IAudio *","playFX", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IAudio * >(argp1);
  {
    res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_OneU__sound_t,  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OneU::sound_t","playFX", 2, argv[0] )); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "OneU::sound_t","playFX", 2, argv[0]));
    } else {
      arg2 = *(reinterpret_cast< OneU::sound_t * >(argp2));
    }
  }
  (arg1)->playFX(arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN void
free_OneU_IAudio(OneU::IAudio *arg1) {
    delete arg1;
}

swig_class SwigClassControl;

SWIGINTERN VALUE
_wrap_Control_init(int argc, VALUE *argv, VALUE self) {
  OneU::IControl *arg1 = (OneU::IControl *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IControl, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IControl *","init", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IControl * >(argp1);
  (arg1)->init();
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Control_keyIsDown(int argc, VALUE *argv, VALUE self) {
  OneU::IControl *arg1 = (OneU::IControl *) 0 ;
  OneU::uint32 arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IControl, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IControl *","keyIsDown", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IControl * >(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "OneU::uint32","keyIsDown", 2, argv[0] ));
  } 
  arg2 = static_cast< OneU::uint32 >(val2);
  result = (bool)(arg1)->keyIsDown(arg2);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Control_keyPress(int argc, VALUE *argv, VALUE self) {
  OneU::IControl *arg1 = (OneU::IControl *) 0 ;
  OneU::uint32 arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IControl, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IControl *","keyPress", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IControl * >(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "OneU::uint32","keyPress", 2, argv[0] ));
  } 
  arg2 = static_cast< OneU::uint32 >(val2);
  result = (bool)(arg1)->keyPress(arg2);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Control_keyRelease(int argc, VALUE *argv, VALUE self) {
  OneU::IControl *arg1 = (OneU::IControl *) 0 ;
  OneU::uint32 arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IControl, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IControl *","keyRelease", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IControl * >(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "OneU::uint32","keyRelease", 2, argv[0] ));
  } 
  arg2 = static_cast< OneU::uint32 >(val2);
  result = (bool)(arg1)->keyRelease(arg2);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Control_buttonIsDown(int argc, VALUE *argv, VALUE self) {
  OneU::IControl *arg1 = (OneU::IControl *) 0 ;
  OneU::uint32 arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IControl, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IControl *","buttonIsDown", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IControl * >(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "OneU::uint32","buttonIsDown", 2, argv[0] ));
  } 
  arg2 = static_cast< OneU::uint32 >(val2);
  result = (bool)(arg1)->buttonIsDown(arg2);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Control_buttonRelease(int argc, VALUE *argv, VALUE self) {
  OneU::IControl *arg1 = (OneU::IControl *) 0 ;
  OneU::uint32 arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IControl, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IControl *","buttonRelease", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IControl * >(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "OneU::uint32","buttonRelease", 2, argv[0] ));
  } 
  arg2 = static_cast< OneU::uint32 >(val2);
  result = (bool)(arg1)->buttonRelease(arg2);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Control_buttonPress(int argc, VALUE *argv, VALUE self) {
  OneU::IControl *arg1 = (OneU::IControl *) 0 ;
  OneU::uint32 arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IControl, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IControl *","buttonPress", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IControl * >(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "OneU::uint32","buttonPress", 2, argv[0] ));
  } 
  arg2 = static_cast< OneU::uint32 >(val2);
  result = (bool)(arg1)->buttonPress(arg2);
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Control_mouseOffset(int argc, VALUE *argv, VALUE self) {
  OneU::IControl *arg1 = (OneU::IControl *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::vector2i_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IControl, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IControl *","mouseOffset", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IControl * >(argp1);
  result = (arg1)->mouseOffset();
  vresult = SWIG_NewPointerObj((new OneU::vector2i_t(static_cast< const OneU::vector2i_t& >(result))), SWIGTYPE_p_OneU__Vector2T_int_t, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN void
free_OneU_IControl(OneU::IControl *arg1) {
    delete arg1;
}

swig_class SwigClassSprite;

SWIGINTERN VALUE
_wrap_Sprite_imagee___(int argc, VALUE *argv, VALUE self) {
  OneU::ISprite *arg1 = (OneU::ISprite *) 0 ;
  OneU::image_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__ISprite, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::ISprite *","setImage", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::ISprite * >(argp1);
  {
    res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_OneU__image_t,  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OneU::image_t","setImage", 2, argv[0] )); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "OneU::image_t","setImage", 2, argv[0]));
    } else {
      arg2 = *(reinterpret_cast< OneU::image_t * >(argp2));
    }
  }
  (arg1)->setImage(arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Sprite_image(int argc, VALUE *argv, VALUE self) {
  OneU::ISprite *arg1 = (OneU::ISprite *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::image_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__ISprite, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::ISprite *","getImage", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::ISprite * >(argp1);
  result = (arg1)->getImage();
  vresult = SWIG_NewPointerObj((new OneU::image_t(static_cast< const OneU::image_t& >(result))), SWIGTYPE_p_OneU__image_t, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Sprite_ohe___(int argc, VALUE *argv, VALUE self) {
  OneU::ISprite *arg1 = (OneU::ISprite *) 0 ;
  float arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__ISprite, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::ISprite *","setCenterH", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::ISprite * >(argp1);
  ecode2 = SWIG_AsVal_float(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "float","setCenterH", 2, argv[0] ));
  } 
  arg2 = static_cast< float >(val2);
  (arg1)->setCenterH(arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Sprite_oh(int argc, VALUE *argv, VALUE self) {
  OneU::ISprite *arg1 = (OneU::ISprite *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__ISprite, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::ISprite const *","getCenterH", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::ISprite * >(argp1);
  result = (float)((OneU::ISprite const *)arg1)->getCenterH();
  vresult = SWIG_From_float(static_cast< float >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Sprite_ove___(int argc, VALUE *argv, VALUE self) {
  OneU::ISprite *arg1 = (OneU::ISprite *) 0 ;
  float arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__ISprite, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::ISprite *","setCenterV", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::ISprite * >(argp1);
  ecode2 = SWIG_AsVal_float(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "float","setCenterV", 2, argv[0] ));
  } 
  arg2 = static_cast< float >(val2);
  (arg1)->setCenterV(arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Sprite_ov(int argc, VALUE *argv, VALUE self) {
  OneU::ISprite *arg1 = (OneU::ISprite *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__ISprite, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::ISprite const *","getCenterV", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::ISprite * >(argp1);
  result = (float)((OneU::ISprite const *)arg1)->getCenterV();
  vresult = SWIG_From_float(static_cast< float >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Sprite_colore___(int argc, VALUE *argv, VALUE self) {
  OneU::ISprite *arg1 = (OneU::ISprite *) 0 ;
  OneU::color_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  VALUE c12 ;
  VALUE c22 ;
  VALUE c32 ;
  VALUE c42 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__ISprite, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::ISprite *","setColor", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::ISprite * >(argp1);
  {
    if(TYPE(argv[0]) != T_ARRAY)
    SWIG_exception_fail(SWIG_TypeError, Ruby_Format_TypeError( "color", "OneU::color_t","setColor", 2, argv[0] ));
    c12 = rb_ary_entry(argv[0], 0); c22 = rb_ary_entry(argv[0], 1); c32 = rb_ary_entry(argv[0], 2);
    if(TYPE(c12) != T_FIXNUM || TYPE(c22) != T_FIXNUM || TYPE(c32) != T_FIXNUM)
    SWIG_exception_fail(SWIG_TypeError, Ruby_Format_TypeError( "color", "OneU::color_t","setColor", 2, argv[0] ));
    c42 = rb_ary_entry(argv[0], 3);
    if(TYPE(c42) != T_FIXNUM)
    arg2 = OneU::color_t(NUM2INT(c12), NUM2INT(c22), NUM2INT(c32));
    else
    arg2 = OneU::color_t(NUM2INT(c12), NUM2INT(c22), NUM2INT(c32), NUM2INT(c42));
  }
  (arg1)->setColor(arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Sprite_color(int argc, VALUE *argv, VALUE self) {
  OneU::ISprite *arg1 = (OneU::ISprite *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::color_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__ISprite, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::ISprite *","getColor", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::ISprite * >(argp1);
  result = (arg1)->getColor();
  {
    vresult = rb_ary_new3(4, INT2NUM((&result)->getRed()), INT2NUM((&result)->getGreen()), INT2NUM((&result)->getBlue()), INT2NUM((&result)->getAlpha()));
  }
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Sprite_alphae___(int argc, VALUE *argv, VALUE self) {
  OneU::ISprite *arg1 = (OneU::ISprite *) 0 ;
  OneU::ubyte arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__ISprite, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::ISprite *","setAlpha", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::ISprite * >(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "OneU::ubyte","setAlpha", 2, argv[0] ));
  } 
  arg2 = static_cast< OneU::ubyte >(val2);
  (arg1)->setAlpha(arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Sprite_alpha(int argc, VALUE *argv, VALUE self) {
  OneU::ISprite *arg1 = (OneU::ISprite *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::ubyte result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__ISprite, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::ISprite *","getAlpha", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::ISprite * >(argp1);
  result = (OneU::ubyte)(arg1)->getAlpha();
  vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Sprite_srcRecte___(int argc, VALUE *argv, VALUE self) {
  OneU::ISprite *arg1 = (OneU::ISprite *) 0 ;
  OneU::rect arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__ISprite, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::ISprite *","setSrcRect", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::ISprite * >(argp1);
  {
    res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_OneU__rect_tT_float_t,  0 );
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OneU::rect","setSrcRect", 2, argv[0] )); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "OneU::rect","setSrcRect", 2, argv[0]));
    } else {
      arg2 = *(reinterpret_cast< OneU::rect * >(argp2));
    }
  }
  (arg1)->setSrcRect(arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Sprite_srcRect(int argc, VALUE *argv, VALUE self) {
  OneU::ISprite *arg1 = (OneU::ISprite *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::rect result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__ISprite, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::ISprite *","getSrcRect", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::ISprite * >(argp1);
  result = (arg1)->getSrcRect();
  vresult = SWIG_NewPointerObj((new OneU::rect(static_cast< const OneU::rect& >(result))), SWIGTYPE_p_OneU__rect_tT_float_t, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Sprite_width(int argc, VALUE *argv, VALUE self) {
  OneU::ISprite *arg1 = (OneU::ISprite *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__ISprite, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::ISprite *","getWidth", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::ISprite * >(argp1);
  result = (float)(arg1)->getWidth();
  vresult = SWIG_From_float(static_cast< float >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Sprite_height(int argc, VALUE *argv, VALUE self) {
  OneU::ISprite *arg1 = (OneU::ISprite *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  float result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__ISprite, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::ISprite *","getHeight", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::ISprite * >(argp1);
  result = (float)(arg1)->getHeight();
  vresult = SWIG_From_float(static_cast< float >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Sprite_blendModee___(int argc, VALUE *argv, VALUE self) {
  OneU::ISprite *arg1 = (OneU::ISprite *) 0 ;
  OneU::video::BLENDMODE arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__ISprite, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::ISprite *","setBlendMode", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::ISprite * >(argp1);
  ecode2 = SWIG_AsVal_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "OneU::video::BLENDMODE","setBlendMode", 2, argv[0] ));
  } 
  arg2 = static_cast< OneU::video::BLENDMODE >(val2);
  (arg1)->setBlendMode(arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Sprite_blendMode(int argc, VALUE *argv, VALUE self) {
  OneU::ISprite *arg1 = (OneU::ISprite *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::video::BLENDMODE result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__ISprite, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::ISprite *","getBlendMode", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::ISprite * >(argp1);
  result = (OneU::video::BLENDMODE)(arg1)->getBlendMode();
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Sprite_colorBlendModee___(int argc, VALUE *argv, VALUE self) {
  OneU::ISprite *arg1 = (OneU::ISprite *) 0 ;
  OneU::uint32 arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__ISprite, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::ISprite *","setColorBlendMode", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::ISprite * >(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "OneU::uint32","setColorBlendMode", 2, argv[0] ));
  } 
  arg2 = static_cast< OneU::uint32 >(val2);
  (arg1)->setColorBlendMode(arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Sprite_colorBlendMode(int argc, VALUE *argv, VALUE self) {
  OneU::ISprite *arg1 = (OneU::ISprite *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::uint32 result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__ISprite, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::ISprite *","getColorBlendMode", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::ISprite * >(argp1);
  result = (OneU::uint32)(arg1)->getColorBlendMode();
  vresult = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_new_Sprite__SWIG_0(int argc, VALUE *argv, VALUE self) {
  OneU::pcwstr arg1 = (OneU::pcwstr) 0 ;
  OneU::AutoPtr< wchar_t > temp1 ;
  const char *classname SWIGUNUSED = "OUE::Sprite";
  OneU::ISprite *result = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  {
    if(TYPE(argv[0]) != T_STRING)
    SWIG_exception_fail(SWIG_TypeError, Ruby_Format_TypeError( "file", "OneU::pcwstr","OneU::ISprite", 1, argv[0] ));
    
    temp1 = OneU::Char2Wide(StringValuePtr(argv[0]), /*rb_enc_get(argv[0]) == rb_utf8_encoding() ?*/ 65001 /*: 0*/);
    arg1 = temp1;
  }
  result = (OneU::ISprite *)new_OneU_ISprite__SWIG_0((wchar_t const *)arg1);
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
SWIGINTERN VALUE
_wrap_Sprite_allocate(VALUE self) {
#else
  SWIGINTERN VALUE
  _wrap_Sprite_allocate(int argc, VALUE *argv, VALUE self) {
#endif
    
    
    VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_OneU__ISprite);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
    rb_obj_call_init(vresult, argc, argv);
#endif
    return vresult;
  }
  

SWIGINTERN VALUE
_wrap_new_Sprite__SWIG_1(int argc, VALUE *argv, VALUE self) {
  OneU::image_t *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  const char *classname SWIGUNUSED = "OUE::Sprite";
  OneU::ISprite *result = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_OneU__image_t,  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::image_t &","OneU::ISprite", 1, argv[0] )); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "OneU::image_t &","OneU::ISprite", 1, argv[0])); 
  }
  arg1 = reinterpret_cast< OneU::image_t * >(argp1);
  result = (OneU::ISprite *)new_OneU_ISprite__SWIG_1(*arg1);
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}


SWIGINTERN VALUE _wrap_new_Sprite(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[1];
  int ii;
  
  argc = nargs;
  if (argc > 1) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 1) {
    int _v;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_OneU__image_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Sprite__SWIG_1(nargs, args, self);
    }
  }
  if (argc == 1) {
    int _v;
    int res = SWIG_AsCharPtrAndSize(argv[0], 0, NULL, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_Sprite__SWIG_0(nargs, args, self);
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 1, "Sprite.new", 
    "    Sprite.new(OneU::pcwstr file)\n"
    "    Sprite.new(OneU::image_t &img)\n");
  
  return Qnil;
}


SWIGINTERN void
free_OneU_ISprite(OneU::ISprite *arg1) {
    delete arg1;
}

swig_class SwigClassShape;

SWIGINTERN VALUE
_wrap_Shape_colore___(int argc, VALUE *argv, VALUE self) {
  OneU::IShape *arg1 = (OneU::IShape *) 0 ;
  OneU::color_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  VALUE c12 ;
  VALUE c22 ;
  VALUE c32 ;
  VALUE c42 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IShape, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IShape *","setColor", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IShape * >(argp1);
  {
    if(TYPE(argv[0]) != T_ARRAY)
    SWIG_exception_fail(SWIG_TypeError, Ruby_Format_TypeError( "color", "OneU::color_t","setColor", 2, argv[0] ));
    c12 = rb_ary_entry(argv[0], 0); c22 = rb_ary_entry(argv[0], 1); c32 = rb_ary_entry(argv[0], 2);
    if(TYPE(c12) != T_FIXNUM || TYPE(c22) != T_FIXNUM || TYPE(c32) != T_FIXNUM)
    SWIG_exception_fail(SWIG_TypeError, Ruby_Format_TypeError( "color", "OneU::color_t","setColor", 2, argv[0] ));
    c42 = rb_ary_entry(argv[0], 3);
    if(TYPE(c42) != T_FIXNUM)
    arg2 = OneU::color_t(NUM2INT(c12), NUM2INT(c22), NUM2INT(c32));
    else
    arg2 = OneU::color_t(NUM2INT(c12), NUM2INT(c22), NUM2INT(c32), NUM2INT(c42));
  }
  (arg1)->setColor(arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Shape_color(int argc, VALUE *argv, VALUE self) {
  OneU::IShape *arg1 = (OneU::IShape *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::color_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IShape, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IShape *","getColor", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IShape * >(argp1);
  result = (arg1)->getColor();
  {
    vresult = rb_ary_new3(4, INT2NUM((&result)->getRed()), INT2NUM((&result)->getGreen()), INT2NUM((&result)->getBlue()), INT2NUM((&result)->getAlpha()));
  }
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Shape_modee___(int argc, VALUE *argv, VALUE self) {
  OneU::IShape *arg1 = (OneU::IShape *) 0 ;
  bool arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IShape, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IShape *","setMode", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IShape * >(argp1);
  ecode2 = SWIG_AsVal_bool(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "bool","setMode", 2, argv[0] ));
  } 
  arg2 = static_cast< bool >(val2);
  (arg1)->setMode(arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Shape_mode(int argc, VALUE *argv, VALUE self) {
  OneU::IShape *arg1 = (OneU::IShape *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IShape, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IShape *","getMode", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IShape * >(argp1);
  result = (bool)(arg1)->getMode();
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
SWIGINTERN VALUE
_wrap_Shape_allocate(VALUE self) {
#else
  SWIGINTERN VALUE
  _wrap_Shape_allocate(int argc, VALUE *argv, VALUE self) {
#endif
    
    
    VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_OneU__IShape);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
    rb_obj_call_init(vresult, argc, argv);
#endif
    return vresult;
  }
  

SWIGINTERN VALUE
_wrap_new_Shape(int argc, VALUE *argv, VALUE self) {
  OneU::rect *arg1 = 0 ;
  void *argp1 ;
  int res1 = 0 ;
  const char *classname SWIGUNUSED = "OUE::Shape";
  OneU::IShape *result = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1, SWIGTYPE_p_OneU__rect_tT_float_t,  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::rect const &","OneU::IShape", 1, argv[0] )); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "OneU::rect const &","OneU::IShape", 1, argv[0])); 
  }
  arg1 = reinterpret_cast< OneU::rect * >(argp1);
  result = (OneU::IShape *)new_OneU_IShape((OneU::rect_t< float > const &)*arg1);
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}


SWIGINTERN void
free_OneU_IShape(OneU::IShape *arg1) {
    delete arg1;
}

swig_class SwigClassLabel;

SWIGINTERN VALUE
_wrap_Label_texte___(int argc, VALUE *argv, VALUE self) {
  OneU::ILabel *arg1 = (OneU::ILabel *) 0 ;
  OneU::pcwstr arg2 = (OneU::pcwstr) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::AutoPtr< wchar_t > temp2 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__ILabel, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::ILabel *","setText", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::ILabel * >(argp1);
  {
    if(TYPE(argv[0]) != T_STRING)
    SWIG_exception_fail(SWIG_TypeError, Ruby_Format_TypeError( "text", "OneU::pcwstr","setText", 2, argv[0] ));
    
    temp2 = OneU::Char2Wide(StringValuePtr(argv[0]), /*rb_enc_get(argv[0]) == rb_utf8_encoding() ?*/ 65001 /*: 0*/);
    arg2 = temp2;
  }
  (arg1)->setText(arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Label_text(int argc, VALUE *argv, VALUE self) {
  OneU::ILabel *arg1 = (OneU::ILabel *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::pcwstr result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__ILabel, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::ILabel *","getText", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::ILabel * >(argp1);
  result = (OneU::pcwstr)(arg1)->getText();
  {
    vresult = rb_str_new2(OneU::Wide2Char(result, 65001));
  }
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Label_colore___(int argc, VALUE *argv, VALUE self) {
  OneU::ILabel *arg1 = (OneU::ILabel *) 0 ;
  OneU::color_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  VALUE c12 ;
  VALUE c22 ;
  VALUE c32 ;
  VALUE c42 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__ILabel, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::ILabel *","setColor", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::ILabel * >(argp1);
  {
    if(TYPE(argv[0]) != T_ARRAY)
    SWIG_exception_fail(SWIG_TypeError, Ruby_Format_TypeError( "color", "OneU::color_t","setColor", 2, argv[0] ));
    c12 = rb_ary_entry(argv[0], 0); c22 = rb_ary_entry(argv[0], 1); c32 = rb_ary_entry(argv[0], 2);
    if(TYPE(c12) != T_FIXNUM || TYPE(c22) != T_FIXNUM || TYPE(c32) != T_FIXNUM)
    SWIG_exception_fail(SWIG_TypeError, Ruby_Format_TypeError( "color", "OneU::color_t","setColor", 2, argv[0] ));
    c42 = rb_ary_entry(argv[0], 3);
    if(TYPE(c42) != T_FIXNUM)
    arg2 = OneU::color_t(NUM2INT(c12), NUM2INT(c22), NUM2INT(c32));
    else
    arg2 = OneU::color_t(NUM2INT(c12), NUM2INT(c22), NUM2INT(c32), NUM2INT(c42));
  }
  (arg1)->setColor(arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Label_color(int argc, VALUE *argv, VALUE self) {
  OneU::ILabel *arg1 = (OneU::ILabel *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::color_t result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__ILabel, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::ILabel *","getColor", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::ILabel * >(argp1);
  result = (arg1)->getColor();
  {
    vresult = rb_ary_new3(4, INT2NUM((&result)->getRed()), INT2NUM((&result)->getGreen()), INT2NUM((&result)->getBlue()), INT2NUM((&result)->getAlpha()));
  }
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Label_alphae___(int argc, VALUE *argv, VALUE self) {
  OneU::ILabel *arg1 = (OneU::ILabel *) 0 ;
  OneU::ubyte arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__ILabel, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::ILabel *","setAlpha", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::ILabel * >(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "OneU::ubyte","setAlpha", 2, argv[0] ));
  } 
  arg2 = static_cast< OneU::ubyte >(val2);
  (arg1)->setAlpha(arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Label_alpha(int argc, VALUE *argv, VALUE self) {
  OneU::ILabel *arg1 = (OneU::ILabel *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::ubyte result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__ILabel, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::ILabel *","getAlpha", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::ILabel * >(argp1);
  result = (OneU::ubyte)(arg1)->getAlpha();
  vresult = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Label_aligne___(int argc, VALUE *argv, VALUE self) {
  OneU::ILabel *arg1 = (OneU::ILabel *) 0 ;
  OneU::uint32 arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  unsigned long val2 ;
  int ecode2 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__ILabel, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::ILabel *","setAlign", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::ILabel * >(argp1);
  ecode2 = SWIG_AsVal_unsigned_SS_long(argv[0], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "OneU::uint32","setAlign", 2, argv[0] ));
  } 
  arg2 = static_cast< OneU::uint32 >(val2);
  (arg1)->setAlign(arg2);
  return Qnil;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_Label_align(int argc, VALUE *argv, VALUE self) {
  OneU::ILabel *arg1 = (OneU::ILabel *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::uint32 result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__ILabel, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::ILabel *","getAlign", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::ILabel * >(argp1);
  result = (OneU::uint32)(arg1)->getAlign();
  vresult = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_new_Label__SWIG_0(int argc, VALUE *argv, VALUE self) {
  float arg1 ;
  float arg2 ;
  OneU::uint32 arg3 ;
  OneU::pcwstr arg4 = (OneU::pcwstr) 0 ;
  float val1 ;
  int ecode1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  unsigned long val3 ;
  int ecode3 = 0 ;
  OneU::AutoPtr< wchar_t > temp4 ;
  const char *classname SWIGUNUSED = "OUE::Label";
  OneU::ILabel *result = 0 ;
  
  if ((argc < 4) || (argc > 4)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 4)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_float(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "float","OneU::ILabel", 1, argv[0] ));
  } 
  arg1 = static_cast< float >(val1);
  ecode2 = SWIG_AsVal_float(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "float","OneU::ILabel", 2, argv[1] ));
  } 
  arg2 = static_cast< float >(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_long(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "OneU::uint32","OneU::ILabel", 3, argv[2] ));
  } 
  arg3 = static_cast< OneU::uint32 >(val3);
  {
    if(TYPE(argv[3]) != T_STRING)
    SWIG_exception_fail(SWIG_TypeError, Ruby_Format_TypeError( "fontName", "OneU::pcwstr","OneU::ILabel", 4, argv[3] ));
    
    temp4 = OneU::Char2Wide(StringValuePtr(argv[3]), /*rb_enc_get(argv[3]) == rb_utf8_encoding() ?*/ 65001 /*: 0*/);
    arg4 = temp4;
  }
  result = (OneU::ILabel *)new_OneU_ILabel__SWIG_0(arg1,arg2,arg3,(wchar_t const *)arg4);
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
SWIGINTERN VALUE
_wrap_Label_allocate(VALUE self) {
#else
  SWIGINTERN VALUE
  _wrap_Label_allocate(int argc, VALUE *argv, VALUE self) {
#endif
    
    
    VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_OneU__ILabel);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
    rb_obj_call_init(vresult, argc, argv);
#endif
    return vresult;
  }
  

SWIGINTERN VALUE
_wrap_new_Label__SWIG_1(int argc, VALUE *argv, VALUE self) {
  float arg1 ;
  float arg2 ;
  OneU::uint32 arg3 ;
  float val1 ;
  int ecode1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  unsigned long val3 ;
  int ecode3 = 0 ;
  const char *classname SWIGUNUSED = "OUE::Label";
  OneU::ILabel *result = 0 ;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_float(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "float","OneU::ILabel", 1, argv[0] ));
  } 
  arg1 = static_cast< float >(val1);
  ecode2 = SWIG_AsVal_float(argv[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "float","OneU::ILabel", 2, argv[1] ));
  } 
  arg2 = static_cast< float >(val2);
  ecode3 = SWIG_AsVal_unsigned_SS_long(argv[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "OneU::uint32","OneU::ILabel", 3, argv[2] ));
  } 
  arg3 = static_cast< OneU::uint32 >(val3);
  result = (OneU::ILabel *)new_OneU_ILabel__SWIG_1(arg1,arg2,arg3);
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}


SWIGINTERN VALUE _wrap_new_Label(int nargs, VALUE *args, VALUE self) {
  int argc;
  VALUE argv[4];
  int ii;
  
  argc = nargs;
  if (argc > 4) SWIG_fail;
  for (ii = 0; (ii < argc); ++ii) {
    argv[ii] = args[ii];
  }
  if (argc == 3) {
    int _v;
    {
      int res = SWIG_AsVal_float(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_float(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_unsigned_SS_long(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_new_Label__SWIG_1(nargs, args, self);
        }
      }
    }
  }
  if (argc == 4) {
    int _v;
    {
      int res = SWIG_AsVal_float(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      {
        int res = SWIG_AsVal_float(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_unsigned_SS_long(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_AsCharPtrAndSize(argv[3], 0, NULL, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_new_Label__SWIG_0(nargs, args, self);
          }
        }
      }
    }
  }
  
fail:
  Ruby_Format_OverloadedError( argc, 4, "Label.new", 
    "    Label.new(float Width, float Height, OneU::uint32 fontSize, OneU::pcwstr fontName)\n"
    "    Label.new(float Width, float Height, OneU::uint32 fontSize)\n");
  
  return Qnil;
}


SWIGINTERN void
free_OneU_ILabel(OneU::ILabel *arg1) {
    delete arg1;
}

swig_class SwigClassCharEvent;

SWIGINTERN VALUE
_wrap_CharEvent_getChar(int argc, VALUE *argv, VALUE self) {
  OneU::CharEvent *arg1 = (OneU::CharEvent *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::wchar result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__CharEvent, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::CharEvent const *","getChar", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::CharEvent * >(argp1);
  result = ((OneU::CharEvent const *)arg1)->getChar();
  vresult = SWIG_From_wchar_t(static_cast< wchar_t >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN void
free_OneU_CharEvent(OneU::CharEvent *arg1) {
    delete arg1;
}

swig_class SwigClassKeyEvent;

SWIGINTERN VALUE
_wrap_KeyEvent_getCode(int argc, VALUE *argv, VALUE self) {
  OneU::KeyEvent *arg1 = (OneU::KeyEvent *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::uint32 result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__KeyEvent, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::KeyEvent *","getCode", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::KeyEvent * >(argp1);
  result = (OneU::uint32)(arg1)->getCode();
  vresult = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_KeyEvent_isRelease(int argc, VALUE *argv, VALUE self) {
  OneU::KeyEvent *arg1 = (OneU::KeyEvent *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__KeyEvent, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::KeyEvent *","isRelease", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::KeyEvent * >(argp1);
  result = (bool)(arg1)->isRelease();
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_KeyEvent_isPress(int argc, VALUE *argv, VALUE self) {
  OneU::KeyEvent *arg1 = (OneU::KeyEvent *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__KeyEvent, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::KeyEvent *","isPress", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::KeyEvent * >(argp1);
  result = (bool)(arg1)->isPress();
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN void
free_OneU_KeyEvent(OneU::KeyEvent *arg1) {
    delete arg1;
}

swig_class SwigClassMouseEvent;

SWIGINTERN VALUE
_wrap_MouseEvent_getButtonID(int argc, VALUE *argv, VALUE self) {
  OneU::MouseEvent *arg1 = (OneU::MouseEvent *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  OneU::uint32 result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__MouseEvent, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::MouseEvent *","getButtonID", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::MouseEvent * >(argp1);
  result = (OneU::uint32)(arg1)->getButtonID();
  vresult = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_MouseEvent_isRelease(int argc, VALUE *argv, VALUE self) {
  OneU::MouseEvent *arg1 = (OneU::MouseEvent *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__MouseEvent, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::MouseEvent *","isRelease", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::MouseEvent * >(argp1);
  result = (bool)(arg1)->isRelease();
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_MouseEvent_isPress(int argc, VALUE *argv, VALUE self) {
  OneU::MouseEvent *arg1 = (OneU::MouseEvent *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__MouseEvent, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::MouseEvent *","isPress", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::MouseEvent * >(argp1);
  result = (bool)(arg1)->isPress();
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN void
free_OneU_MouseEvent(OneU::MouseEvent *arg1) {
    delete arg1;
}

swig_class SwigClassInputReceiver;

SWIGINTERN void
free_OneU_IInputReceiver(OneU::IInputReceiver *arg1) {
    delete arg1;
}

SWIGINTERN VALUE
_wrap_InputReceiver_onChar(int argc, VALUE *argv, VALUE self) {
  OneU::IInputReceiver *arg1 = (OneU::IInputReceiver *) 0 ;
  OneU::CharEvent *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  Swig::Director *director = 0;
  bool upcall = false;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IInputReceiver, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IInputReceiver *","onChar", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IInputReceiver * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_OneU__CharEvent,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OneU::CharEvent const &","onChar", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "OneU::CharEvent const &","onChar", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< OneU::CharEvent * >(argp2);
  director = dynamic_cast<Swig::Director *>(arg1);
  upcall = (director && (director->swig_get_self() == self));
  try {
    if (upcall) {
      result = (bool)(arg1)->OneU::IInputReceiver::onChar((OneU::CharEvent const &)*arg2);
    } else {
      result = (bool)(arg1)->onChar((OneU::CharEvent const &)*arg2);
    }
  } catch (Swig::DirectorException& e) {
    rb_exc_raise(e.getError());
    SWIG_fail;
  }
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_InputReceiver_onKey(int argc, VALUE *argv, VALUE self) {
  OneU::IInputReceiver *arg1 = (OneU::IInputReceiver *) 0 ;
  OneU::KeyEvent *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  Swig::Director *director = 0;
  bool upcall = false;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IInputReceiver, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IInputReceiver *","onKey", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IInputReceiver * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_OneU__KeyEvent,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OneU::KeyEvent const &","onKey", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "OneU::KeyEvent const &","onKey", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< OneU::KeyEvent * >(argp2);
  director = dynamic_cast<Swig::Director *>(arg1);
  upcall = (director && (director->swig_get_self() == self));
  try {
    if (upcall) {
      result = (bool)(arg1)->OneU::IInputReceiver::onKey((OneU::KeyEvent const &)*arg2);
    } else {
      result = (bool)(arg1)->onKey((OneU::KeyEvent const &)*arg2);
    }
  } catch (Swig::DirectorException& e) {
    rb_exc_raise(e.getError());
    SWIG_fail;
  }
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_InputReceiver_onMouse(int argc, VALUE *argv, VALUE self) {
  OneU::IInputReceiver *arg1 = (OneU::IInputReceiver *) 0 ;
  OneU::MouseEvent *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  Swig::Director *director = 0;
  bool upcall = false;
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_OneU__IInputReceiver, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IInputReceiver *","onMouse", 1, self )); 
  }
  arg1 = reinterpret_cast< OneU::IInputReceiver * >(argp1);
  res2 = SWIG_ConvertPtr(argv[0], &argp2, SWIGTYPE_p_OneU__MouseEvent,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "OneU::MouseEvent const &","onMouse", 2, argv[0] )); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_ValueError, Ruby_Format_TypeError("invalid null reference ", "OneU::MouseEvent const &","onMouse", 2, argv[0])); 
  }
  arg2 = reinterpret_cast< OneU::MouseEvent * >(argp2);
  director = dynamic_cast<Swig::Director *>(arg1);
  upcall = (director && (director->swig_get_self() == self));
  try {
    if (upcall) {
      result = (bool)(arg1)->OneU::IInputReceiver::onMouse((OneU::MouseEvent const &)*arg2);
    } else {
      result = (bool)(arg1)->onMouse((OneU::MouseEvent const &)*arg2);
    }
  } catch (Swig::DirectorException& e) {
    rb_exc_raise(e.getError());
    SWIG_fail;
  }
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}


#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
SWIGINTERN VALUE
_wrap_InputReceiver_allocate(VALUE self) {
#else
  SWIGINTERN VALUE
  _wrap_InputReceiver_allocate(int argc, VALUE *argv, VALUE self) {
#endif
    
    
    VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_OneU__IInputReceiver);
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
    rb_obj_call_init(vresult, argc, argv);
#endif
    return vresult;
  }
  

SWIGINTERN VALUE
_wrap_new_InputReceiver(int argc, VALUE *argv, VALUE self) {
  VALUE arg1 = (VALUE) 0 ;
  const char *classname SWIGUNUSED = "OUE::InputReceiver";
  OneU::IInputReceiver *result = 0 ;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  arg1 = self;
  if ( strcmp(rb_obj_classname(self), classname) != 0 ) {
    /* subclassed */
    result = (OneU::IInputReceiver *)new SwigDirector_InputReceiver(arg1); 
  } else {
    result = (OneU::IInputReceiver *)new OneU::IInputReceiver(); 
  }
  
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}


SWIGINTERN VALUE
_wrap_disown_InputReceiver(int argc, VALUE *argv, VALUE self) {
  OneU::IInputReceiver *arg1 = (OneU::IInputReceiver *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_OneU__IInputReceiver, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "OneU::IInputReceiver *","disown_InputReceiver", 1, argv[0] )); 
  }
  arg1 = reinterpret_cast< OneU::IInputReceiver * >(argp1);
  {
    Swig::Director *director = SWIG_DIRECTOR_CAST(arg1);
    if (director) director->swig_disown();
  }
  
  return Qnil;
fail:
  return Qnil;
}



/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */

static void *_p_OneU__video__IRenderSceneTo_p_OneU__video__ILayer(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((OneU::video::ILayer *)  ((OneU::video::IRenderScene *) x));
}
static void *_p_OneU__IShapeTo_p_OneU__video__INode(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((OneU::video::INode *)  ((OneU::IShape *) x));
}
static void *_p_OneU__ILabelTo_p_OneU__video__INode(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((OneU::video::INode *)  ((OneU::ILabel *) x));
}
static void *_p_OneU__video__ILayerTo_p_OneU__video__INode(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((OneU::video::INode *)  ((OneU::video::ILayer *) x));
}
static void *_p_OneU__ISpriteTo_p_OneU__video__INode(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((OneU::video::INode *)  ((OneU::ISprite *) x));
}
static void *_p_OneU__video__IRenderSceneTo_p_OneU__video__INode(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((OneU::video::INode *) (OneU::video::ILayer *) ((OneU::video::IRenderScene *) x));
}
static void *_p_SceneTo_p_OneU__IScene(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((OneU::IScene *)  ((Scene *) x));
}
static swig_type_info _swigt__p_OneU__CharEvent = {"_p_OneU__CharEvent", "OneU::CharEvent *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_OneU__IAudio = {"_p_OneU__IAudio", "OneU::IAudio *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_OneU__IControl = {"_p_OneU__IControl", "OneU::IControl *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_OneU__IGame = {"_p_OneU__IGame", "OneU::IGame *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_OneU__IInputReceiver = {"_p_OneU__IInputReceiver", "OneU::IInputReceiver *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_OneU__ILabel = {"_p_OneU__ILabel", "OneU::ILabel *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_OneU__IScene = {"_p_OneU__IScene", "OneU::IScene *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_OneU__IShape = {"_p_OneU__IShape", "OneU::IShape *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_OneU__ISprite = {"_p_OneU__ISprite", "OneU::ISprite *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_OneU__IVideo = {"_p_OneU__IVideo", "OneU::IVideo *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_OneU__KeyEvent = {"_p_OneU__KeyEvent", "OneU::KeyEvent *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_OneU__ListT_OneU__video__Mode_t = {"_p_OneU__ListT_OneU__video__Mode_t", "OneU::List< OneU::video::Mode > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_OneU__MouseEvent = {"_p_OneU__MouseEvent", "OneU::MouseEvent *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_OneU__Vector2T_float_t = {"_p_OneU__Vector2T_float_t", "OneU::vector2 *|OneU::Vector2< float > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_OneU__Vector2T_int_t = {"_p_OneU__Vector2T_int_t", "OneU::vector2i_t *|OneU::Vector2< int > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_OneU__Vector3T_float_t = {"_p_OneU__Vector3T_float_t", "OneU::Vector3< float > *|OneU::vector3 *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_OneU__Vector3T_int_t = {"_p_OneU__Vector3T_int_t", "OneU::vector3i_t *|OneU::Vector3< int > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_OneU__Vector4T_float_t = {"_p_OneU__Vector4T_float_t", "OneU::Vector4< float > *|OneU::vector4 *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_OneU__Vector4T_int_t = {"_p_OneU__Vector4T_int_t", "OneU::Vector4< int > *|OneU::vector4i_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_OneU__color_t = {"_p_OneU__color_t", "OneU::color_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_OneU__image_t = {"_p_OneU__image_t", "OneU::image_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_OneU__rect_tT_float_t = {"_p_OneU__rect_tT_float_t", "OneU::rect_t< float > *|OneU::rect *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_OneU__rect_tT_int_t = {"_p_OneU__rect_tT_int_t", "OneU::recti_t *|OneU::rect_t< int > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_OneU__sound_t = {"_p_OneU__sound_t", "OneU::sound_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_OneU__video__ILayer = {"_p_OneU__video__ILayer", "OneU::video::ILayer *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_OneU__video__INode = {"_p_OneU__video__INode", "OneU::video::INode *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_OneU__video__IRenderScene = {"_p_OneU__video__IRenderScene", "OneU::video::IRenderScene *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_OneU__video__Mode = {"_p_OneU__video__Mode", "OneU::video::Mode *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Scene = {"_p_Scene", "Scene *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_long = {"_p_long", "OneU::int32 *|long *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_long_long = {"_p_long_long", "OneU::int64 *|long long *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_short = {"_p_short", "OneU::int16 *|short *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|OneU::uint8 *|OneU::ubyte *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "OneU::uint32 *|unsigned long *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_unsigned_long_long = {"_p_unsigned_long_long", "OneU::uint64 *|unsigned long long *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "OneU::uint16 *|unsigned short *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_wchar_t = {"_p_wchar_t", "OneU::wchar *|wchar_t *", 0, 0, (void*)0, 0};

static swig_type_info *swig_type_initial[] = {
  &_swigt__p_OneU__CharEvent,
  &_swigt__p_OneU__IAudio,
  &_swigt__p_OneU__IControl,
  &_swigt__p_OneU__IGame,
  &_swigt__p_OneU__IInputReceiver,
  &_swigt__p_OneU__ILabel,
  &_swigt__p_OneU__IScene,
  &_swigt__p_OneU__IShape,
  &_swigt__p_OneU__ISprite,
  &_swigt__p_OneU__IVideo,
  &_swigt__p_OneU__KeyEvent,
  &_swigt__p_OneU__ListT_OneU__video__Mode_t,
  &_swigt__p_OneU__MouseEvent,
  &_swigt__p_OneU__Vector2T_float_t,
  &_swigt__p_OneU__Vector2T_int_t,
  &_swigt__p_OneU__Vector3T_float_t,
  &_swigt__p_OneU__Vector3T_int_t,
  &_swigt__p_OneU__Vector4T_float_t,
  &_swigt__p_OneU__Vector4T_int_t,
  &_swigt__p_OneU__color_t,
  &_swigt__p_OneU__image_t,
  &_swigt__p_OneU__rect_tT_float_t,
  &_swigt__p_OneU__rect_tT_int_t,
  &_swigt__p_OneU__sound_t,
  &_swigt__p_OneU__video__ILayer,
  &_swigt__p_OneU__video__INode,
  &_swigt__p_OneU__video__IRenderScene,
  &_swigt__p_OneU__video__Mode,
  &_swigt__p_Scene,
  &_swigt__p_char,
  &_swigt__p_long,
  &_swigt__p_long_long,
  &_swigt__p_short,
  &_swigt__p_unsigned_char,
  &_swigt__p_unsigned_long,
  &_swigt__p_unsigned_long_long,
  &_swigt__p_unsigned_short,
  &_swigt__p_wchar_t,
};

static swig_cast_info _swigc__p_OneU__CharEvent[] = {  {&_swigt__p_OneU__CharEvent, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_OneU__IAudio[] = {  {&_swigt__p_OneU__IAudio, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_OneU__IControl[] = {  {&_swigt__p_OneU__IControl, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_OneU__IGame[] = {  {&_swigt__p_OneU__IGame, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_OneU__IInputReceiver[] = {  {&_swigt__p_OneU__IInputReceiver, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_OneU__ILabel[] = {  {&_swigt__p_OneU__ILabel, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_OneU__IScene[] = {  {&_swigt__p_OneU__IScene, 0, 0, 0},  {&_swigt__p_Scene, _p_SceneTo_p_OneU__IScene, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_OneU__IShape[] = {  {&_swigt__p_OneU__IShape, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_OneU__ISprite[] = {  {&_swigt__p_OneU__ISprite, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_OneU__IVideo[] = {  {&_swigt__p_OneU__IVideo, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_OneU__KeyEvent[] = {  {&_swigt__p_OneU__KeyEvent, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_OneU__ListT_OneU__video__Mode_t[] = {  {&_swigt__p_OneU__ListT_OneU__video__Mode_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_OneU__MouseEvent[] = {  {&_swigt__p_OneU__MouseEvent, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_OneU__Vector2T_float_t[] = {  {&_swigt__p_OneU__Vector2T_float_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_OneU__Vector2T_int_t[] = {  {&_swigt__p_OneU__Vector2T_int_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_OneU__Vector3T_float_t[] = {  {&_swigt__p_OneU__Vector3T_float_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_OneU__Vector3T_int_t[] = {  {&_swigt__p_OneU__Vector3T_int_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_OneU__Vector4T_float_t[] = {  {&_swigt__p_OneU__Vector4T_float_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_OneU__Vector4T_int_t[] = {  {&_swigt__p_OneU__Vector4T_int_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_OneU__color_t[] = {  {&_swigt__p_OneU__color_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_OneU__image_t[] = {  {&_swigt__p_OneU__image_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_OneU__rect_tT_float_t[] = {  {&_swigt__p_OneU__rect_tT_float_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_OneU__rect_tT_int_t[] = {  {&_swigt__p_OneU__rect_tT_int_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_OneU__sound_t[] = {  {&_swigt__p_OneU__sound_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_OneU__video__ILayer[] = {  {&_swigt__p_OneU__video__ILayer, 0, 0, 0},  {&_swigt__p_OneU__video__IRenderScene, _p_OneU__video__IRenderSceneTo_p_OneU__video__ILayer, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_OneU__video__INode[] = {  {&_swigt__p_OneU__IShape, _p_OneU__IShapeTo_p_OneU__video__INode, 0, 0},  {&_swigt__p_OneU__ILabel, _p_OneU__ILabelTo_p_OneU__video__INode, 0, 0},  {&_swigt__p_OneU__video__ILayer, _p_OneU__video__ILayerTo_p_OneU__video__INode, 0, 0},  {&_swigt__p_OneU__ISprite, _p_OneU__ISpriteTo_p_OneU__video__INode, 0, 0},  {&_swigt__p_OneU__video__INode, 0, 0, 0},  {&_swigt__p_OneU__video__IRenderScene, _p_OneU__video__IRenderSceneTo_p_OneU__video__INode, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_OneU__video__IRenderScene[] = {  {&_swigt__p_OneU__video__IRenderScene, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_OneU__video__Mode[] = {  {&_swigt__p_OneU__video__Mode, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Scene[] = {  {&_swigt__p_Scene, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_char[] = {  {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_long[] = {  {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_long_long[] = {  {&_swigt__p_long_long, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_short[] = {  {&_swigt__p_short, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_unsigned_char[] = {  {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_unsigned_long[] = {  {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_unsigned_long_long[] = {  {&_swigt__p_unsigned_long_long, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_unsigned_short[] = {  {&_swigt__p_unsigned_short, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_wchar_t[] = {  {&_swigt__p_wchar_t, 0, 0, 0},{0, 0, 0, 0}};

static swig_cast_info *swig_cast_initial[] = {
  _swigc__p_OneU__CharEvent,
  _swigc__p_OneU__IAudio,
  _swigc__p_OneU__IControl,
  _swigc__p_OneU__IGame,
  _swigc__p_OneU__IInputReceiver,
  _swigc__p_OneU__ILabel,
  _swigc__p_OneU__IScene,
  _swigc__p_OneU__IShape,
  _swigc__p_OneU__ISprite,
  _swigc__p_OneU__IVideo,
  _swigc__p_OneU__KeyEvent,
  _swigc__p_OneU__ListT_OneU__video__Mode_t,
  _swigc__p_OneU__MouseEvent,
  _swigc__p_OneU__Vector2T_float_t,
  _swigc__p_OneU__Vector2T_int_t,
  _swigc__p_OneU__Vector3T_float_t,
  _swigc__p_OneU__Vector3T_int_t,
  _swigc__p_OneU__Vector4T_float_t,
  _swigc__p_OneU__Vector4T_int_t,
  _swigc__p_OneU__color_t,
  _swigc__p_OneU__image_t,
  _swigc__p_OneU__rect_tT_float_t,
  _swigc__p_OneU__rect_tT_int_t,
  _swigc__p_OneU__sound_t,
  _swigc__p_OneU__video__ILayer,
  _swigc__p_OneU__video__INode,
  _swigc__p_OneU__video__IRenderScene,
  _swigc__p_OneU__video__Mode,
  _swigc__p_Scene,
  _swigc__p_char,
  _swigc__p_long,
  _swigc__p_long_long,
  _swigc__p_short,
  _swigc__p_unsigned_char,
  _swigc__p_unsigned_long,
  _swigc__p_unsigned_long_long,
  _swigc__p_unsigned_short,
  _swigc__p_wchar_t,
};


/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */

/* -----------------------------------------------------------------------------
 * Type initialization:
 * This problem is tough by the requirement that no dynamic 
 * memory is used. Also, since swig_type_info structures store pointers to 
 * swig_cast_info structures and swig_cast_info structures store pointers back
 * to swig_type_info structures, we need some lookup code at initialization. 
 * The idea is that swig generates all the structures that are needed. 
 * The runtime then collects these partially filled structures. 
 * The SWIG_InitializeModule function takes these initial arrays out of 
 * swig_module, and does all the lookup, filling in the swig_module.types
 * array with the correct data and linking the correct swig_cast_info
 * structures together.
 *
 * The generated swig_type_info structures are assigned staticly to an initial 
 * array. We just loop through that array, and handle each type individually.
 * First we lookup if this type has been already loaded, and if so, use the
 * loaded structure instead of the generated one. Then we have to fill in the
 * cast linked list. The cast data is initially stored in something like a
 * two-dimensional array. Each row corresponds to a type (there are the same
 * number of rows as there are in the swig_type_initial array). Each entry in
 * a column is one of the swig_cast_info structures for that type.
 * The cast_initial array is actually an array of arrays, because each row has
 * a variable number of columns. So to actually build the cast linked list,
 * we find the array of casts associated with the type, and loop through it 
 * adding the casts to the list. The one last trick we need to do is making
 * sure the type pointer in the swig_cast_info struct is correct.
 *
 * First off, we lookup the cast->type name to see if it is already loaded. 
 * There are three cases to handle:
 *  1) If the cast->type has already been loaded AND the type we are adding
 *     casting info to has not been loaded (it is in this module), THEN we
 *     replace the cast->type pointer with the type pointer that has already
 *     been loaded.
 *  2) If BOTH types (the one we are adding casting info to, and the 
 *     cast->type) are loaded, THEN the cast info has already been loaded by
 *     the previous module so we just ignore it.
 *  3) Finally, if cast->type has not already been loaded, then we add that
 *     swig_cast_info to the linked list (because the cast->type) pointer will
 *     be correct.
 * ----------------------------------------------------------------------------- */

#ifdef __cplusplus
extern "C" {
#if 0
} /* c-mode */
#endif
#endif

#if 0
#define SWIGRUNTIME_DEBUG
#endif


SWIGRUNTIME void
SWIG_InitializeModule(void *clientdata) {
  size_t i;
  swig_module_info *module_head, *iter;
  int found, init;

  clientdata = clientdata;

  /* check to see if the circular list has been setup, if not, set it up */
  if (swig_module.next==0) {
    /* Initialize the swig_module */
    swig_module.type_initial = swig_type_initial;
    swig_module.cast_initial = swig_cast_initial;
    swig_module.next = &swig_module;
    init = 1;
  } else {
    init = 0;
  }

  /* Try and load any already created modules */
  module_head = SWIG_GetModule(clientdata);
  if (!module_head) {
    /* This is the first module loaded for this interpreter */
    /* so set the swig module into the interpreter */
    SWIG_SetModule(clientdata, &swig_module);
    module_head = &swig_module;
  } else {
    /* the interpreter has loaded a SWIG module, but has it loaded this one? */
    found=0;
    iter=module_head;
    do {
      if (iter==&swig_module) {
        found=1;
        break;
      }
      iter=iter->next;
    } while (iter!= module_head);

    /* if the is found in the list, then all is done and we may leave */
    if (found) return;
    /* otherwise we must add out module into the list */
    swig_module.next = module_head->next;
    module_head->next = &swig_module;
  }

  /* When multiple interpeters are used, a module could have already been initialized in
     a different interpreter, but not yet have a pointer in this interpreter.
     In this case, we do not want to continue adding types... everything should be
     set up already */
  if (init == 0) return;

  /* Now work on filling in swig_module.types */
#ifdef SWIGRUNTIME_DEBUG
  printf("SWIG_InitializeModule: size %d\n", swig_module.size);
#endif
  for (i = 0; i < swig_module.size; ++i) {
    swig_type_info *type = 0;
    swig_type_info *ret;
    swig_cast_info *cast;
  
#ifdef SWIGRUNTIME_DEBUG
    printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
#endif

    /* if there is another module already loaded */
    if (swig_module.next != &swig_module) {
      type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
    }
    if (type) {
      /* Overwrite clientdata field */
#ifdef SWIGRUNTIME_DEBUG
      printf("SWIG_InitializeModule: found type %s\n", type->name);
#endif
      if (swig_module.type_initial[i]->clientdata) {
	type->clientdata = swig_module.type_initial[i]->clientdata;
#ifdef SWIGRUNTIME_DEBUG
      printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
#endif
      }
    } else {
      type = swig_module.type_initial[i];
    }

    /* Insert casting types */
    cast = swig_module.cast_initial[i];
    while (cast->type) {
    
      /* Don't need to add information already in the list */
      ret = 0;
#ifdef SWIGRUNTIME_DEBUG
      printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
#endif
      if (swig_module.next != &swig_module) {
        ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
#ifdef SWIGRUNTIME_DEBUG
	if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
#endif
      }
      if (ret) {
	if (type == swig_module.type_initial[i]) {
#ifdef SWIGRUNTIME_DEBUG
	  printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
#endif
	  cast->type = ret;
	  ret = 0;
	} else {
	  /* Check for casting already in the list */
	  swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
#ifdef SWIGRUNTIME_DEBUG
	  if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
#endif
	  if (!ocast) ret = 0;
	}
      }

      if (!ret) {
#ifdef SWIGRUNTIME_DEBUG
	printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
#endif
        if (type->cast) {
          type->cast->prev = cast;
          cast->next = type->cast;
        }
        type->cast = cast;
      }
      cast++;
    }
    /* Set entry in modules->types array equal to the type */
    swig_module.types[i] = type;
  }
  swig_module.types[i] = 0;

#ifdef SWIGRUNTIME_DEBUG
  printf("**** SWIG_InitializeModule: Cast List ******\n");
  for (i = 0; i < swig_module.size; ++i) {
    int j = 0;
    swig_cast_info *cast = swig_module.cast_initial[i];
    printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
    while (cast->type) {
      printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
      cast++;
      ++j;
    }
  printf("---- Total casts: %d\n",j);
  }
  printf("**** SWIG_InitializeModule: Cast List ******\n");
#endif
}

/* This function will propagate the clientdata field of type to
* any new swig_type_info structures that have been added into the list
* of equivalent types.  It is like calling
* SWIG_TypeClientData(type, clientdata) a second time.
*/
SWIGRUNTIME void
SWIG_PropagateClientData(void) {
  size_t i;
  swig_cast_info *equiv;
  static int init_run = 0;

  if (init_run) return;
  init_run = 1;

  for (i = 0; i < swig_module.size; i++) {
    if (swig_module.types[i]->clientdata) {
      equiv = swig_module.types[i]->cast;
      while (equiv) {
        if (!equiv->converter) {
          if (equiv->type && !equiv->type->clientdata)
            SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
        }
        equiv = equiv->next;
      }
    }
  }
}

#ifdef __cplusplus
#if 0
{ /* c-mode */
#endif
}
#endif

/*

*/
#ifdef __cplusplus
extern "C"
#endif
SWIGEXPORT void Init_OUE(void) {
  size_t i;
  
  SWIG_InitRuntime();
  mOUE = rb_define_module("OUE");
  
  SWIG_InitializeModule(0);
  for (i = 0; i < swig_module.size; i++) {
    SWIG_define_class(swig_module.types[i]);
  }
  
  SWIG_RubyInitializeTrackings();
  
  SwigClassRecti.klass = rb_define_class_under(mOUE, "Recti", rb_cObject);
  SWIG_TypeClientData(SWIGTYPE_p_OneU__rect_tT_int_t, (void *) &SwigClassRecti);
  rb_define_alloc_func(SwigClassRecti.klass, _wrap_Recti_allocate);
  rb_define_method(SwigClassRecti.klass, "initialize", VALUEFUNC(_wrap_new_Recti), -1);
  rb_define_method(SwigClassRecti.klass, "left=", VALUEFUNC(_wrap_Recti_left_set), -1);
  rb_define_method(SwigClassRecti.klass, "left", VALUEFUNC(_wrap_Recti_left_get), -1);
  rb_define_method(SwigClassRecti.klass, "top=", VALUEFUNC(_wrap_Recti_top_set), -1);
  rb_define_method(SwigClassRecti.klass, "top", VALUEFUNC(_wrap_Recti_top_get), -1);
  rb_define_method(SwigClassRecti.klass, "right=", VALUEFUNC(_wrap_Recti_right_set), -1);
  rb_define_method(SwigClassRecti.klass, "right", VALUEFUNC(_wrap_Recti_right_get), -1);
  rb_define_method(SwigClassRecti.klass, "bottom=", VALUEFUNC(_wrap_Recti_bottom_set), -1);
  rb_define_method(SwigClassRecti.klass, "bottom", VALUEFUNC(_wrap_Recti_bottom_get), -1);
  SwigClassRecti.mark = 0;
  SwigClassRecti.destroy = (void (*)(void *)) free_OneU_rect_t_Sl_int_Sg_;
  SwigClassRecti.trackObjects = 0;
  
  SwigClassRectf.klass = rb_define_class_under(mOUE, "Rectf", rb_cObject);
  SWIG_TypeClientData(SWIGTYPE_p_OneU__rect_tT_float_t, (void *) &SwigClassRectf);
  rb_define_alloc_func(SwigClassRectf.klass, _wrap_Rectf_allocate);
  rb_define_method(SwigClassRectf.klass, "initialize", VALUEFUNC(_wrap_new_Rectf), -1);
  rb_define_method(SwigClassRectf.klass, "left=", VALUEFUNC(_wrap_Rectf_left_set), -1);
  rb_define_method(SwigClassRectf.klass, "left", VALUEFUNC(_wrap_Rectf_left_get), -1);
  rb_define_method(SwigClassRectf.klass, "top=", VALUEFUNC(_wrap_Rectf_top_set), -1);
  rb_define_method(SwigClassRectf.klass, "top", VALUEFUNC(_wrap_Rectf_top_get), -1);
  rb_define_method(SwigClassRectf.klass, "right=", VALUEFUNC(_wrap_Rectf_right_set), -1);
  rb_define_method(SwigClassRectf.klass, "right", VALUEFUNC(_wrap_Rectf_right_get), -1);
  rb_define_method(SwigClassRectf.klass, "bottom=", VALUEFUNC(_wrap_Rectf_bottom_set), -1);
  rb_define_method(SwigClassRectf.klass, "bottom", VALUEFUNC(_wrap_Rectf_bottom_get), -1);
  SwigClassRectf.mark = 0;
  SwigClassRectf.destroy = (void (*)(void *)) free_OneU_rect_t_Sl_float_Sg_;
  SwigClassRectf.trackObjects = 0;
  
  SwigClassVector2i.klass = rb_define_class_under(mOUE, "Vector2i", rb_cObject);
  SWIG_TypeClientData(SWIGTYPE_p_OneU__Vector2T_int_t, (void *) &SwigClassVector2i);
  rb_define_alloc_func(SwigClassVector2i.klass, _wrap_Vector2i_allocate);
  rb_define_method(SwigClassVector2i.klass, "initialize", VALUEFUNC(_wrap_new_Vector2i), -1);
  rb_define_method(SwigClassVector2i.klass, "x=", VALUEFUNC(_wrap_Vector2i_x_set), -1);
  rb_define_method(SwigClassVector2i.klass, "x", VALUEFUNC(_wrap_Vector2i_x_get), -1);
  rb_define_method(SwigClassVector2i.klass, "y=", VALUEFUNC(_wrap_Vector2i_y_set), -1);
  rb_define_method(SwigClassVector2i.klass, "y", VALUEFUNC(_wrap_Vector2i_y_get), -1);
  rb_define_method(SwigClassVector2i.klass, "length", VALUEFUNC(_wrap_Vector2i_length), -1);
  SwigClassVector2i.mark = 0;
  SwigClassVector2i.destroy = (void (*)(void *)) free_OneU_Vector2_Sl_int_Sg_;
  SwigClassVector2i.trackObjects = 0;
  
  SwigClassVector2f.klass = rb_define_class_under(mOUE, "Vector2f", rb_cObject);
  SWIG_TypeClientData(SWIGTYPE_p_OneU__Vector2T_float_t, (void *) &SwigClassVector2f);
  rb_define_alloc_func(SwigClassVector2f.klass, _wrap_Vector2f_allocate);
  rb_define_method(SwigClassVector2f.klass, "initialize", VALUEFUNC(_wrap_new_Vector2f), -1);
  rb_define_method(SwigClassVector2f.klass, "x=", VALUEFUNC(_wrap_Vector2f_x_set), -1);
  rb_define_method(SwigClassVector2f.klass, "x", VALUEFUNC(_wrap_Vector2f_x_get), -1);
  rb_define_method(SwigClassVector2f.klass, "y=", VALUEFUNC(_wrap_Vector2f_y_set), -1);
  rb_define_method(SwigClassVector2f.klass, "y", VALUEFUNC(_wrap_Vector2f_y_get), -1);
  rb_define_method(SwigClassVector2f.klass, "length", VALUEFUNC(_wrap_Vector2f_length), -1);
  SwigClassVector2f.mark = 0;
  SwigClassVector2f.destroy = (void (*)(void *)) free_OneU_Vector2_Sl_float_Sg_;
  SwigClassVector2f.trackObjects = 0;
  
  SwigClassVector3i.klass = rb_define_class_under(mOUE, "Vector3i", rb_cObject);
  SWIG_TypeClientData(SWIGTYPE_p_OneU__Vector3T_int_t, (void *) &SwigClassVector3i);
  rb_define_alloc_func(SwigClassVector3i.klass, _wrap_Vector3i_allocate);
  rb_define_method(SwigClassVector3i.klass, "initialize", VALUEFUNC(_wrap_new_Vector3i), -1);
  rb_define_method(SwigClassVector3i.klass, "x=", VALUEFUNC(_wrap_Vector3i_x_set), -1);
  rb_define_method(SwigClassVector3i.klass, "x", VALUEFUNC(_wrap_Vector3i_x_get), -1);
  rb_define_method(SwigClassVector3i.klass, "y=", VALUEFUNC(_wrap_Vector3i_y_set), -1);
  rb_define_method(SwigClassVector3i.klass, "y", VALUEFUNC(_wrap_Vector3i_y_get), -1);
  rb_define_method(SwigClassVector3i.klass, "z=", VALUEFUNC(_wrap_Vector3i_z_set), -1);
  rb_define_method(SwigClassVector3i.klass, "z", VALUEFUNC(_wrap_Vector3i_z_get), -1);
  rb_define_method(SwigClassVector3i.klass, "length", VALUEFUNC(_wrap_Vector3i_length), -1);
  SwigClassVector3i.mark = 0;
  SwigClassVector3i.destroy = (void (*)(void *)) free_OneU_Vector3_Sl_int_Sg_;
  SwigClassVector3i.trackObjects = 0;
  
  SwigClassVector3f.klass = rb_define_class_under(mOUE, "Vector3f", rb_cObject);
  SWIG_TypeClientData(SWIGTYPE_p_OneU__Vector3T_float_t, (void *) &SwigClassVector3f);
  rb_define_alloc_func(SwigClassVector3f.klass, _wrap_Vector3f_allocate);
  rb_define_method(SwigClassVector3f.klass, "initialize", VALUEFUNC(_wrap_new_Vector3f), -1);
  rb_define_method(SwigClassVector3f.klass, "x=", VALUEFUNC(_wrap_Vector3f_x_set), -1);
  rb_define_method(SwigClassVector3f.klass, "x", VALUEFUNC(_wrap_Vector3f_x_get), -1);
  rb_define_method(SwigClassVector3f.klass, "y=", VALUEFUNC(_wrap_Vector3f_y_set), -1);
  rb_define_method(SwigClassVector3f.klass, "y", VALUEFUNC(_wrap_Vector3f_y_get), -1);
  rb_define_method(SwigClassVector3f.klass, "z=", VALUEFUNC(_wrap_Vector3f_z_set), -1);
  rb_define_method(SwigClassVector3f.klass, "z", VALUEFUNC(_wrap_Vector3f_z_get), -1);
  rb_define_method(SwigClassVector3f.klass, "length", VALUEFUNC(_wrap_Vector3f_length), -1);
  SwigClassVector3f.mark = 0;
  SwigClassVector3f.destroy = (void (*)(void *)) free_OneU_Vector3_Sl_float_Sg_;
  SwigClassVector3f.trackObjects = 0;
  
  SwigClassVector4i.klass = rb_define_class_under(mOUE, "Vector4i", rb_cObject);
  SWIG_TypeClientData(SWIGTYPE_p_OneU__Vector4T_int_t, (void *) &SwigClassVector4i);
  rb_define_alloc_func(SwigClassVector4i.klass, _wrap_Vector4i_allocate);
  rb_define_method(SwigClassVector4i.klass, "initialize", VALUEFUNC(_wrap_new_Vector4i), -1);
  rb_define_method(SwigClassVector4i.klass, "x=", VALUEFUNC(_wrap_Vector4i_x_set), -1);
  rb_define_method(SwigClassVector4i.klass, "x", VALUEFUNC(_wrap_Vector4i_x_get), -1);
  rb_define_method(SwigClassVector4i.klass, "y=", VALUEFUNC(_wrap_Vector4i_y_set), -1);
  rb_define_method(SwigClassVector4i.klass, "y", VALUEFUNC(_wrap_Vector4i_y_get), -1);
  rb_define_method(SwigClassVector4i.klass, "z=", VALUEFUNC(_wrap_Vector4i_z_set), -1);
  rb_define_method(SwigClassVector4i.klass, "z", VALUEFUNC(_wrap_Vector4i_z_get), -1);
  rb_define_method(SwigClassVector4i.klass, "w=", VALUEFUNC(_wrap_Vector4i_w_set), -1);
  rb_define_method(SwigClassVector4i.klass, "w", VALUEFUNC(_wrap_Vector4i_w_get), -1);
  SwigClassVector4i.mark = 0;
  SwigClassVector4i.destroy = (void (*)(void *)) free_OneU_Vector4_Sl_int_Sg_;
  SwigClassVector4i.trackObjects = 0;
  
  SwigClassVector4f.klass = rb_define_class_under(mOUE, "Vector4f", rb_cObject);
  SWIG_TypeClientData(SWIGTYPE_p_OneU__Vector4T_float_t, (void *) &SwigClassVector4f);
  rb_define_alloc_func(SwigClassVector4f.klass, _wrap_Vector4f_allocate);
  rb_define_method(SwigClassVector4f.klass, "initialize", VALUEFUNC(_wrap_new_Vector4f), -1);
  rb_define_method(SwigClassVector4f.klass, "x=", VALUEFUNC(_wrap_Vector4f_x_set), -1);
  rb_define_method(SwigClassVector4f.klass, "x", VALUEFUNC(_wrap_Vector4f_x_get), -1);
  rb_define_method(SwigClassVector4f.klass, "y=", VALUEFUNC(_wrap_Vector4f_y_set), -1);
  rb_define_method(SwigClassVector4f.klass, "y", VALUEFUNC(_wrap_Vector4f_y_get), -1);
  rb_define_method(SwigClassVector4f.klass, "z=", VALUEFUNC(_wrap_Vector4f_z_set), -1);
  rb_define_method(SwigClassVector4f.klass, "z", VALUEFUNC(_wrap_Vector4f_z_get), -1);
  rb_define_method(SwigClassVector4f.klass, "w=", VALUEFUNC(_wrap_Vector4f_w_set), -1);
  rb_define_method(SwigClassVector4f.klass, "w", VALUEFUNC(_wrap_Vector4f_w_get), -1);
  SwigClassVector4f.mark = 0;
  SwigClassVector4f.destroy = (void (*)(void *)) free_OneU_Vector4_Sl_float_Sg_;
  SwigClassVector4f.trackObjects = 0;
  
  SwigClassVideoNode.klass = rb_define_class_under(mOUE, "VideoNode", rb_cObject);
  SWIG_TypeClientData(SWIGTYPE_p_OneU__video__INode, (void *) &SwigClassVideoNode);
  rb_undef_alloc_func(SwigClassVideoNode.klass);
  rb_define_method(SwigClassVideoNode.klass, "visible=", VALUEFUNC(_wrap_VideoNode_visible_set), -1);
  rb_define_method(SwigClassVideoNode.klass, "visible", VALUEFUNC(_wrap_VideoNode_visible_get), -1);
  rb_define_method(SwigClassVideoNode.klass, "active=", VALUEFUNC(_wrap_VideoNode_active_set), -1);
  rb_define_method(SwigClassVideoNode.klass, "active", VALUEFUNC(_wrap_VideoNode_active_get), -1);
  rb_define_method(SwigClassVideoNode.klass, "parent", VALUEFUNC(_wrap_VideoNode_parent), -1);
  rb_define_method(SwigClassVideoNode.klass, "detach", VALUEFUNC(_wrap_VideoNode_detach), -1);
  rb_define_method(SwigClassVideoNode.klass, "name", VALUEFUNC(_wrap_VideoNode_name), -1);
  rb_define_method(SwigClassVideoNode.klass, "update", VALUEFUNC(_wrap_VideoNode_update), -1);
  rb_define_method(SwigClassVideoNode.klass, "create2DTransform", VALUEFUNC(_wrap_VideoNode_create2DTransform), -1);
  rb_define_method(SwigClassVideoNode.klass, "x=", VALUEFUNC(_wrap_VideoNode_xe___), -1);
  rb_define_method(SwigClassVideoNode.klass, "x", VALUEFUNC(_wrap_VideoNode_x), -1);
  rb_define_method(SwigClassVideoNode.klass, "y=", VALUEFUNC(_wrap_VideoNode_ye___), -1);
  rb_define_method(SwigClassVideoNode.klass, "y", VALUEFUNC(_wrap_VideoNode_y), -1);
  rb_define_method(SwigClassVideoNode.klass, "ox=", VALUEFUNC(_wrap_VideoNode_oxe___), -1);
  rb_define_method(SwigClassVideoNode.klass, "ox", VALUEFUNC(_wrap_VideoNode_ox), -1);
  rb_define_method(SwigClassVideoNode.klass, "oy=", VALUEFUNC(_wrap_VideoNode_oye___), -1);
  rb_define_method(SwigClassVideoNode.klass, "oy", VALUEFUNC(_wrap_VideoNode_oy), -1);
  rb_define_method(SwigClassVideoNode.klass, "rotation=", VALUEFUNC(_wrap_VideoNode_rotatione___), -1);
  rb_define_method(SwigClassVideoNode.klass, "rotation", VALUEFUNC(_wrap_VideoNode_rotation), -1);
  rb_define_method(SwigClassVideoNode.klass, "scaleX=", VALUEFUNC(_wrap_VideoNode_scaleXe___), -1);
  rb_define_method(SwigClassVideoNode.klass, "scaleX", VALUEFUNC(_wrap_VideoNode_scaleX), -1);
  rb_define_method(SwigClassVideoNode.klass, "scaleY=", VALUEFUNC(_wrap_VideoNode_scaleYe___), -1);
  rb_define_method(SwigClassVideoNode.klass, "scaleY", VALUEFUNC(_wrap_VideoNode_scaleY), -1);
  SwigClassVideoNode.mark = 0;
  SwigClassVideoNode.destroy = (void (*)(void *)) free_OneU_video_INode;
  SwigClassVideoNode.trackObjects = 0;
  
  SwigClassLayer.klass = rb_define_class_under(mOUE, "Layer", ((swig_class *) SWIGTYPE_p_OneU__video__INode->clientdata)->klass);
  SWIG_TypeClientData(SWIGTYPE_p_OneU__video__ILayer, (void *) &SwigClassLayer);
  rb_define_alloc_func(SwigClassLayer.klass, _wrap_Layer_allocate);
  rb_define_method(SwigClassLayer.klass, "initialize", VALUEFUNC(_wrap_new_Layer), -1);
  rb_define_method(SwigClassLayer.klass, "name", VALUEFUNC(_wrap_Layer_name), -1);
  rb_define_method(SwigClassLayer.klass, "addChild", VALUEFUNC(_wrap_Layer_addChild), -1);
  SwigClassLayer.mark = 0;
  SwigClassLayer.destroy = (void (*)(void *)) free_OneU_video_ILayer;
  SwigClassLayer.trackObjects = 0;
  
  SwigClassIRenderScene.klass = rb_define_class_under(mOUE, "IRenderScene", ((swig_class *) SWIGTYPE_p_OneU__video__ILayer->clientdata)->klass);
  SWIG_TypeClientData(SWIGTYPE_p_OneU__video__IRenderScene, (void *) &SwigClassIRenderScene);
  rb_undef_alloc_func(SwigClassIRenderScene.klass);
  SwigClassIRenderScene.mark = 0;
  SwigClassIRenderScene.destroy = (void (*)(void *)) free_OneU_video_IRenderScene;
  SwigClassIRenderScene.trackObjects = 0;
  rb_define_const(mOUE, "BM_NORMAL", SWIG_From_int(static_cast< int >(OneU::video::BM_NORMAL)));
  rb_define_const(mOUE, "BM_ADD", SWIG_From_int(static_cast< int >(OneU::video::BM_ADD)));
  rb_define_const(mOUE, "CBM_NONE", SWIG_From_int(static_cast< int >(OneU::video::CBM_NONE)));
  rb_define_const(mOUE, "CBM_ADD", SWIG_From_int(static_cast< int >(OneU::video::CBM_ADD)));
  rb_define_const(mOUE, "CBM_MODULATE", SWIG_From_int(static_cast< int >(OneU::video::CBM_MODULATE)));
  rb_define_const(mOUE, "CBM_LEFT", SWIG_From_int(static_cast< int >(OneU::video::CBM_LEFT)));
  rb_define_const(mOUE, "CBM_RIGHT", SWIG_From_int(static_cast< int >(OneU::video::CBM_RIGHT)));
  rb_define_const(mOUE, "CBM_TOP", SWIG_From_int(static_cast< int >(OneU::video::CBM_TOP)));
  rb_define_const(mOUE, "CBM_DOWN", SWIG_From_int(static_cast< int >(OneU::video::CBM_DOWN)));
  
  SwigClassMode.klass = rb_define_class_under(mOUE, "Mode", rb_cObject);
  SWIG_TypeClientData(SWIGTYPE_p_OneU__video__Mode, (void *) &SwigClassMode);
  rb_define_alloc_func(SwigClassMode.klass, _wrap_Mode_allocate);
  rb_define_method(SwigClassMode.klass, "initialize", VALUEFUNC(_wrap_new_Mode), -1);
  rb_define_method(SwigClassMode.klass, "size=", VALUEFUNC(_wrap_Mode_size_set), -1);
  rb_define_method(SwigClassMode.klass, "size", VALUEFUNC(_wrap_Mode_size_get), -1);
  rb_define_method(SwigClassMode.klass, "refreshRate=", VALUEFUNC(_wrap_Mode_refreshRate_set), -1);
  rb_define_method(SwigClassMode.klass, "refreshRate", VALUEFUNC(_wrap_Mode_refreshRate_get), -1);
  SwigClassMode.mark = 0;
  SwigClassMode.destroy = (void (*)(void *)) free_OneU_video_Mode;
  SwigClassMode.trackObjects = 0;
  
  SwigClassImage_t.klass = rb_define_class_under(mOUE, "Image_t", rb_cObject);
  SWIG_TypeClientData(SWIGTYPE_p_OneU__image_t, (void *) &SwigClassImage_t);
  rb_define_alloc_func(SwigClassImage_t.klass, _wrap_Image_t_allocate);
  rb_define_method(SwigClassImage_t.klass, "initialize", VALUEFUNC(_wrap_new_Image_t), -1);
  rb_define_method(SwigClassImage_t.klass, "width", VALUEFUNC(_wrap_Image_t_width), -1);
  rb_define_method(SwigClassImage_t.klass, "height", VALUEFUNC(_wrap_Image_t_height), -1);
  SwigClassImage_t.mark = 0;
  SwigClassImage_t.destroy = (void (*)(void *)) free_OneU_image_t;
  SwigClassImage_t.trackObjects = 0;
  
  SwigClassVideo.klass = rb_define_class_under(mOUE, "Video", rb_cObject);
  SWIG_TypeClientData(SWIGTYPE_p_OneU__IVideo, (void *) &SwigClassVideo);
  rb_undef_alloc_func(SwigClassVideo.klass);
  rb_define_method(SwigClassVideo.klass, "getName", VALUEFUNC(_wrap_Video_getName), -1);
  rb_define_method(SwigClassVideo.klass, "prepare", VALUEFUNC(_wrap_Video_prepare), -1);
  rb_define_method(SwigClassVideo.klass, "init", VALUEFUNC(_wrap_Video_init), -1);
  rb_define_method(SwigClassVideo.klass, "switchDevice", VALUEFUNC(_wrap_Video_switchDevice), -1);
  rb_define_method(SwigClassVideo.klass, "isWindowed", VALUEFUNC(_wrap_Video_isWindowed), -1);
  rb_define_method(SwigClassVideo.klass, "getDeviceSize", VALUEFUNC(_wrap_Video_getDeviceSize), -1);
  rb_define_method(SwigClassVideo.klass, "loadImage", VALUEFUNC(_wrap_Video_loadImage), -1);
  rb_define_method(SwigClassVideo.klass, "getRoot", VALUEFUNC(_wrap_Video_getRoot), -1);
  rb_define_method(SwigClassVideo.klass, "getRenderScene", VALUEFUNC(_wrap_Video_getRenderScene), -1);
  rb_define_method(SwigClassVideo.klass, "setRenderScene", VALUEFUNC(_wrap_Video_setRenderScene), -1);
  rb_define_method(SwigClassVideo.klass, "createRenderScene", VALUEFUNC(_wrap_Video_createRenderScene), -1);
  rb_define_method(SwigClassVideo.klass, "showInfo", VALUEFUNC(_wrap_Video_showInfo), -1);
  rb_define_method(SwigClassVideo.klass, "getAvailableMode", VALUEFUNC(_wrap_Video_getAvailableMode), -1);
  SwigClassVideo.mark = 0;
  SwigClassVideo.destroy = (void (*)(void *)) free_OneU_IVideo;
  SwigClassVideo.trackObjects = 0;
  
  SwigClassIScene.klass = rb_define_class_under(mOUE, "IScene", rb_cObject);
  SWIG_TypeClientData(SWIGTYPE_p_OneU__IScene, (void *) &SwigClassIScene);
  rb_undef_alloc_func(SwigClassIScene.klass);
  rb_define_method(SwigClassIScene.klass, "update", VALUEFUNC(_wrap_IScene_update), -1);
  rb_define_method(SwigClassIScene.klass, "RS", VALUEFUNC(_wrap_IScene_RS), -1);
  rb_define_method(SwigClassIScene.klass, "pushInputFocus", VALUEFUNC(_wrap_IScene_pushInputFocus), -1);
  rb_define_method(SwigClassIScene.klass, "popInputFocus", VALUEFUNC(_wrap_IScene_popInputFocus), -1);
  SwigClassIScene.mark = 0;
  SwigClassIScene.destroy = (void (*)(void *)) free_OneU_IScene;
  SwigClassIScene.trackObjects = 0;
  rb_define_module_function(mOUE, "disown_Scene", VALUEFUNC(_wrap_disown_Scene), -1);
  
  SwigClassScene.klass = rb_define_class_under(mOUE, "Scene", ((swig_class *) SWIGTYPE_p_OneU__IScene->clientdata)->klass);
  SWIG_TypeClientData(SWIGTYPE_p_Scene, (void *) &SwigClassScene);
  rb_define_alloc_func(SwigClassScene.klass, _wrap_Scene_allocate);
  rb_define_method(SwigClassScene.klass, "initialize", VALUEFUNC(_wrap_new_Scene), -1);
  rb_define_method(SwigClassScene.klass, "__isActive=", VALUEFUNC(_wrap_Scene___isActive_set), -1);
  rb_define_method(SwigClassScene.klass, "__isActive", VALUEFUNC(_wrap_Scene___isActive_get), -1);
  rb_define_method(SwigClassScene.klass, "__game=", VALUEFUNC(_wrap_Scene___game_set), -1);
  rb_define_method(SwigClassScene.klass, "__game", VALUEFUNC(_wrap_Scene___game_get), -1);
  rb_define_method(SwigClassScene.klass, "update", VALUEFUNC(_wrap_Scene_update), -1);
  SwigClassScene.mark = 0;
  SwigClassScene.destroy = (void (*)(void *)) free_Scene;
  SwigClassScene.trackObjects = 0;
  
  SwigClassGame.klass = rb_define_class_under(mOUE, "Game", rb_cObject);
  SWIG_TypeClientData(SWIGTYPE_p_OneU__IGame, (void *) &SwigClassGame);
  rb_undef_alloc_func(SwigClassGame.klass);
  rb_define_method(SwigClassGame.klass, "getVideo", VALUEFUNC(_wrap_Game_getVideo), -1);
  rb_define_method(SwigClassGame.klass, "getAudio", VALUEFUNC(_wrap_Game_getAudio), -1);
  rb_define_method(SwigClassGame.klass, "getControl", VALUEFUNC(_wrap_Game_getControl), -1);
  rb_define_method(SwigClassGame.klass, "getScene", VALUEFUNC(_wrap_Game_getScene), -1);
  rb_define_method(SwigClassGame.klass, "init", VALUEFUNC(_wrap_Game_init), -1);
  rb_define_method(SwigClassGame.klass, "run", VALUEFUNC(_wrap_Game_run), -1);
  rb_define_method(SwigClassGame.klass, "quit", VALUEFUNC(_wrap_Game_quit), -1);
  rb_define_method(SwigClassGame.klass, "onFrame", VALUEFUNC(_wrap_Game_onFrame), -1);
  rb_define_method(SwigClassGame.klass, "onActiveWindow", VALUEFUNC(_wrap_Game_onActiveWindow), -1);
  rb_define_method(SwigClassGame.klass, "setWindowTitle", VALUEFUNC(_wrap_Game_setWindowTitle), -1);
  rb_define_method(SwigClassGame.klass, "getWindowPos", VALUEFUNC(_wrap_Game_getWindowPos), -1);
  rb_define_method(SwigClassGame.klass, "setWindowPos", VALUEFUNC(_wrap_Game_setWindowPos), -1);
  rb_define_method(SwigClassGame.klass, "showCursor", VALUEFUNC(_wrap_Game_showCursor), -1);
  rb_define_method(SwigClassGame.klass, "getFPS", VALUEFUNC(_wrap_Game_getFPS), -1);
  rb_define_method(SwigClassGame.klass, "getTimeInterval", VALUEFUNC(_wrap_Game_getTimeInterval), -1);
  rb_define_method(SwigClassGame.klass, "replaceScene", VALUEFUNC(_wrap_Game_replaceScene), -1);
  rb_define_method(SwigClassGame.klass, "onChar", VALUEFUNC(_wrap_Game_onChar), -1);
  rb_define_method(SwigClassGame.klass, "onKey", VALUEFUNC(_wrap_Game_onKey), -1);
  rb_define_method(SwigClassGame.klass, "onMouse", VALUEFUNC(_wrap_Game_onMouse), -1);
  rb_define_method(SwigClassGame.klass, "output", VALUEFUNC(_wrap_Game_output), -1);
  rb_define_method(SwigClassGame.klass, "showInfo", VALUEFUNC(_wrap_Game_showInfo), -1);
  SwigClassGame.mark = 0;
  SwigClassGame.destroy = (void (*)(void *)) free_OneU_IGame;
  SwigClassGame.trackObjects = 0;
  rb_define_module_function(mOUE, "Aux_GameInit", VALUEFUNC(_wrap_Aux_GameInit), -1);
  rb_define_module_function(mOUE, "GetGame", VALUEFUNC(_wrap_GetGame), -1);
  rb_define_module_function(mOUE, "GetVideo", VALUEFUNC(_wrap_GetVideo), -1);
  rb_define_module_function(mOUE, "GetAudio", VALUEFUNC(_wrap_GetAudio), -1);
  rb_define_module_function(mOUE, "GetControl", VALUEFUNC(_wrap_GetControl), -1);
  rb_define_module_function(mOUE, "GetScene", VALUEFUNC(_wrap_GetScene), -1);
  
  SwigClassSound_t.klass = rb_define_class_under(mOUE, "Sound_t", rb_cObject);
  SWIG_TypeClientData(SWIGTYPE_p_OneU__sound_t, (void *) &SwigClassSound_t);
  rb_define_alloc_func(SwigClassSound_t.klass, _wrap_Sound_t_allocate);
  rb_define_method(SwigClassSound_t.klass, "initialize", VALUEFUNC(_wrap_new_Sound_t), -1);
  rb_define_method(SwigClassSound_t.klass, "getVolume", VALUEFUNC(_wrap_Sound_t_getVolume), -1);
  rb_define_method(SwigClassSound_t.klass, "setVolume", VALUEFUNC(_wrap_Sound_t_setVolume), -1);
  rb_define_method(SwigClassSound_t.klass, "getFrequency", VALUEFUNC(_wrap_Sound_t_getFrequency), -1);
  rb_define_method(SwigClassSound_t.klass, "setFrequency", VALUEFUNC(_wrap_Sound_t_setFrequency), -1);
  rb_define_method(SwigClassSound_t.klass, "getPan", VALUEFUNC(_wrap_Sound_t_getPan), -1);
  rb_define_method(SwigClassSound_t.klass, "setPan", VALUEFUNC(_wrap_Sound_t_setPan), -1);
  SwigClassSound_t.mark = 0;
  SwigClassSound_t.destroy = (void (*)(void *)) free_OneU_sound_t;
  SwigClassSound_t.trackObjects = 0;
  
  SwigClassAudio.klass = rb_define_class_under(mOUE, "Audio", rb_cObject);
  SWIG_TypeClientData(SWIGTYPE_p_OneU__IAudio, (void *) &SwigClassAudio);
  rb_undef_alloc_func(SwigClassAudio.klass);
  rb_define_method(SwigClassAudio.klass, "init", VALUEFUNC(_wrap_Audio_init), -1);
  rb_define_method(SwigClassAudio.klass, "loadSound", VALUEFUNC(_wrap_Audio_loadSound), -1);
  rb_define_method(SwigClassAudio.klass, "playMusic", VALUEFUNC(_wrap_Audio_playMusic), -1);
  rb_define_method(SwigClassAudio.klass, "stopMusic", VALUEFUNC(_wrap_Audio_stopMusic), -1);
  rb_define_method(SwigClassAudio.klass, "getPlayingMusic", VALUEFUNC(_wrap_Audio_getPlayingMusic), -1);
  rb_define_method(SwigClassAudio.klass, "playFX", VALUEFUNC(_wrap_Audio_playFX), -1);
  SwigClassAudio.mark = 0;
  SwigClassAudio.destroy = (void (*)(void *)) free_OneU_IAudio;
  SwigClassAudio.trackObjects = 0;
  
  SwigClassControl.klass = rb_define_class_under(mOUE, "Control", rb_cObject);
  SWIG_TypeClientData(SWIGTYPE_p_OneU__IControl, (void *) &SwigClassControl);
  rb_undef_alloc_func(SwigClassControl.klass);
  rb_define_method(SwigClassControl.klass, "init", VALUEFUNC(_wrap_Control_init), -1);
  rb_define_method(SwigClassControl.klass, "keyIsDown", VALUEFUNC(_wrap_Control_keyIsDown), -1);
  rb_define_method(SwigClassControl.klass, "keyPress", VALUEFUNC(_wrap_Control_keyPress), -1);
  rb_define_method(SwigClassControl.klass, "keyRelease", VALUEFUNC(_wrap_Control_keyRelease), -1);
  rb_define_method(SwigClassControl.klass, "buttonIsDown", VALUEFUNC(_wrap_Control_buttonIsDown), -1);
  rb_define_method(SwigClassControl.klass, "buttonRelease", VALUEFUNC(_wrap_Control_buttonRelease), -1);
  rb_define_method(SwigClassControl.klass, "buttonPress", VALUEFUNC(_wrap_Control_buttonPress), -1);
  rb_define_method(SwigClassControl.klass, "mouseOffset", VALUEFUNC(_wrap_Control_mouseOffset), -1);
  SwigClassControl.mark = 0;
  SwigClassControl.destroy = (void (*)(void *)) free_OneU_IControl;
  SwigClassControl.trackObjects = 0;
  rb_define_const(mOUE, "IK_ESCAPE", SWIG_From_int(static_cast< int >(IK_ESCAPE)));
  rb_define_const(mOUE, "IK_1", SWIG_From_int(static_cast< int >(IK_1)));
  rb_define_const(mOUE, "IK_2", SWIG_From_int(static_cast< int >(IK_2)));
  rb_define_const(mOUE, "IK_3", SWIG_From_int(static_cast< int >(IK_3)));
  rb_define_const(mOUE, "IK_4", SWIG_From_int(static_cast< int >(IK_4)));
  rb_define_const(mOUE, "IK_5", SWIG_From_int(static_cast< int >(IK_5)));
  rb_define_const(mOUE, "IK_6", SWIG_From_int(static_cast< int >(IK_6)));
  rb_define_const(mOUE, "IK_7", SWIG_From_int(static_cast< int >(IK_7)));
  rb_define_const(mOUE, "IK_8", SWIG_From_int(static_cast< int >(IK_8)));
  rb_define_const(mOUE, "IK_9", SWIG_From_int(static_cast< int >(IK_9)));
  rb_define_const(mOUE, "IK_0", SWIG_From_int(static_cast< int >(IK_0)));
  rb_define_const(mOUE, "IK_MINUS", SWIG_From_int(static_cast< int >(IK_MINUS)));
  rb_define_const(mOUE, "IK_EQUALS", SWIG_From_int(static_cast< int >(IK_EQUALS)));
  rb_define_const(mOUE, "IK_BACK", SWIG_From_int(static_cast< int >(IK_BACK)));
  rb_define_const(mOUE, "IK_TAB", SWIG_From_int(static_cast< int >(IK_TAB)));
  rb_define_const(mOUE, "IK_Q", SWIG_From_int(static_cast< int >(IK_Q)));
  rb_define_const(mOUE, "IK_W", SWIG_From_int(static_cast< int >(IK_W)));
  rb_define_const(mOUE, "IK_E", SWIG_From_int(static_cast< int >(IK_E)));
  rb_define_const(mOUE, "IK_R", SWIG_From_int(static_cast< int >(IK_R)));
  rb_define_const(mOUE, "IK_T", SWIG_From_int(static_cast< int >(IK_T)));
  rb_define_const(mOUE, "IK_Y", SWIG_From_int(static_cast< int >(IK_Y)));
  rb_define_const(mOUE, "IK_U", SWIG_From_int(static_cast< int >(IK_U)));
  rb_define_const(mOUE, "IK_I", SWIG_From_int(static_cast< int >(IK_I)));
  rb_define_const(mOUE, "IK_O", SWIG_From_int(static_cast< int >(IK_O)));
  rb_define_const(mOUE, "IK_P", SWIG_From_int(static_cast< int >(IK_P)));
  rb_define_const(mOUE, "IK_LBRACKET", SWIG_From_int(static_cast< int >(IK_LBRACKET)));
  rb_define_const(mOUE, "IK_RBRACKET", SWIG_From_int(static_cast< int >(IK_RBRACKET)));
  rb_define_const(mOUE, "IK_RETURN", SWIG_From_int(static_cast< int >(IK_RETURN)));
  rb_define_const(mOUE, "IK_LCONTROL", SWIG_From_int(static_cast< int >(IK_LCONTROL)));
  rb_define_const(mOUE, "IK_A", SWIG_From_int(static_cast< int >(IK_A)));
  rb_define_const(mOUE, "IK_S", SWIG_From_int(static_cast< int >(IK_S)));
  rb_define_const(mOUE, "IK_D", SWIG_From_int(static_cast< int >(IK_D)));
  rb_define_const(mOUE, "IK_F", SWIG_From_int(static_cast< int >(IK_F)));
  rb_define_const(mOUE, "IK_G", SWIG_From_int(static_cast< int >(IK_G)));
  rb_define_const(mOUE, "IK_H", SWIG_From_int(static_cast< int >(IK_H)));
  rb_define_const(mOUE, "IK_J", SWIG_From_int(static_cast< int >(IK_J)));
  rb_define_const(mOUE, "IK_K", SWIG_From_int(static_cast< int >(IK_K)));
  rb_define_const(mOUE, "IK_L", SWIG_From_int(static_cast< int >(IK_L)));
  rb_define_const(mOUE, "IK_SEMICOLON", SWIG_From_int(static_cast< int >(IK_SEMICOLON)));
  rb_define_const(mOUE, "IK_APOSTROPHE", SWIG_From_int(static_cast< int >(IK_APOSTROPHE)));
  rb_define_const(mOUE, "IK_GRAVE", SWIG_From_int(static_cast< int >(IK_GRAVE)));
  rb_define_const(mOUE, "IK_LSHIFT", SWIG_From_int(static_cast< int >(IK_LSHIFT)));
  rb_define_const(mOUE, "IK_BACKSLASH", SWIG_From_int(static_cast< int >(IK_BACKSLASH)));
  rb_define_const(mOUE, "IK_Z", SWIG_From_int(static_cast< int >(IK_Z)));
  rb_define_const(mOUE, "IK_X", SWIG_From_int(static_cast< int >(IK_X)));
  rb_define_const(mOUE, "IK_C", SWIG_From_int(static_cast< int >(IK_C)));
  rb_define_const(mOUE, "IK_V", SWIG_From_int(static_cast< int >(IK_V)));
  rb_define_const(mOUE, "IK_B", SWIG_From_int(static_cast< int >(IK_B)));
  rb_define_const(mOUE, "IK_N", SWIG_From_int(static_cast< int >(IK_N)));
  rb_define_const(mOUE, "IK_M", SWIG_From_int(static_cast< int >(IK_M)));
  rb_define_const(mOUE, "IK_COMMA", SWIG_From_int(static_cast< int >(IK_COMMA)));
  rb_define_const(mOUE, "IK_PERIOD", SWIG_From_int(static_cast< int >(IK_PERIOD)));
  rb_define_const(mOUE, "IK_SLASH", SWIG_From_int(static_cast< int >(IK_SLASH)));
  rb_define_const(mOUE, "IK_RSHIFT", SWIG_From_int(static_cast< int >(IK_RSHIFT)));
  rb_define_const(mOUE, "IK_MULTIPLY", SWIG_From_int(static_cast< int >(IK_MULTIPLY)));
  rb_define_const(mOUE, "IK_LMENU", SWIG_From_int(static_cast< int >(IK_LMENU)));
  rb_define_const(mOUE, "IK_SPACE", SWIG_From_int(static_cast< int >(IK_SPACE)));
  rb_define_const(mOUE, "IK_CAPITAL", SWIG_From_int(static_cast< int >(IK_CAPITAL)));
  rb_define_const(mOUE, "IK_F1", SWIG_From_int(static_cast< int >(IK_F1)));
  rb_define_const(mOUE, "IK_F2", SWIG_From_int(static_cast< int >(IK_F2)));
  rb_define_const(mOUE, "IK_F3", SWIG_From_int(static_cast< int >(IK_F3)));
  rb_define_const(mOUE, "IK_F4", SWIG_From_int(static_cast< int >(IK_F4)));
  rb_define_const(mOUE, "IK_F5", SWIG_From_int(static_cast< int >(IK_F5)));
  rb_define_const(mOUE, "IK_F6", SWIG_From_int(static_cast< int >(IK_F6)));
  rb_define_const(mOUE, "IK_F7", SWIG_From_int(static_cast< int >(IK_F7)));
  rb_define_const(mOUE, "IK_F8", SWIG_From_int(static_cast< int >(IK_F8)));
  rb_define_const(mOUE, "IK_F9", SWIG_From_int(static_cast< int >(IK_F9)));
  rb_define_const(mOUE, "IK_F10", SWIG_From_int(static_cast< int >(IK_F10)));
  rb_define_const(mOUE, "IK_NUMLOCK", SWIG_From_int(static_cast< int >(IK_NUMLOCK)));
  rb_define_const(mOUE, "IK_SCROLL", SWIG_From_int(static_cast< int >(IK_SCROLL)));
  rb_define_const(mOUE, "IK_NUMPAD7", SWIG_From_int(static_cast< int >(IK_NUMPAD7)));
  rb_define_const(mOUE, "IK_NUMPAD8", SWIG_From_int(static_cast< int >(IK_NUMPAD8)));
  rb_define_const(mOUE, "IK_NUMPAD9", SWIG_From_int(static_cast< int >(IK_NUMPAD9)));
  rb_define_const(mOUE, "IK_SUBTRACT", SWIG_From_int(static_cast< int >(IK_SUBTRACT)));
  rb_define_const(mOUE, "IK_NUMPAD4", SWIG_From_int(static_cast< int >(IK_NUMPAD4)));
  rb_define_const(mOUE, "IK_NUMPAD5", SWIG_From_int(static_cast< int >(IK_NUMPAD5)));
  rb_define_const(mOUE, "IK_NUMPAD6", SWIG_From_int(static_cast< int >(IK_NUMPAD6)));
  rb_define_const(mOUE, "IK_ADD", SWIG_From_int(static_cast< int >(IK_ADD)));
  rb_define_const(mOUE, "IK_NUMPAD1", SWIG_From_int(static_cast< int >(IK_NUMPAD1)));
  rb_define_const(mOUE, "IK_NUMPAD2", SWIG_From_int(static_cast< int >(IK_NUMPAD2)));
  rb_define_const(mOUE, "IK_NUMPAD3", SWIG_From_int(static_cast< int >(IK_NUMPAD3)));
  rb_define_const(mOUE, "IK_NUMPAD0", SWIG_From_int(static_cast< int >(IK_NUMPAD0)));
  rb_define_const(mOUE, "IK_DECIMAL", SWIG_From_int(static_cast< int >(IK_DECIMAL)));
  rb_define_const(mOUE, "IK_OEM_102", SWIG_From_int(static_cast< int >(IK_OEM_102)));
  rb_define_const(mOUE, "IK_F11", SWIG_From_int(static_cast< int >(IK_F11)));
  rb_define_const(mOUE, "IK_F12", SWIG_From_int(static_cast< int >(IK_F12)));
  rb_define_const(mOUE, "IK_F13", SWIG_From_int(static_cast< int >(IK_F13)));
  rb_define_const(mOUE, "IK_F14", SWIG_From_int(static_cast< int >(IK_F14)));
  rb_define_const(mOUE, "IK_F15", SWIG_From_int(static_cast< int >(IK_F15)));
  rb_define_const(mOUE, "IK_KANA", SWIG_From_int(static_cast< int >(IK_KANA)));
  rb_define_const(mOUE, "IK_ABNT_C1", SWIG_From_int(static_cast< int >(IK_ABNT_C1)));
  rb_define_const(mOUE, "IK_CONVERT", SWIG_From_int(static_cast< int >(IK_CONVERT)));
  rb_define_const(mOUE, "IK_NOCONVERT", SWIG_From_int(static_cast< int >(IK_NOCONVERT)));
  rb_define_const(mOUE, "IK_YEN", SWIG_From_int(static_cast< int >(IK_YEN)));
  rb_define_const(mOUE, "IK_ABNT_C2", SWIG_From_int(static_cast< int >(IK_ABNT_C2)));
  rb_define_const(mOUE, "IK_NUMPADEQUALS", SWIG_From_int(static_cast< int >(IK_NUMPADEQUALS)));
  rb_define_const(mOUE, "IK_PREVTRACK", SWIG_From_int(static_cast< int >(IK_PREVTRACK)));
  rb_define_const(mOUE, "IK_AT", SWIG_From_int(static_cast< int >(IK_AT)));
  rb_define_const(mOUE, "IK_COLON", SWIG_From_int(static_cast< int >(IK_COLON)));
  rb_define_const(mOUE, "IK_UNDERLINE", SWIG_From_int(static_cast< int >(IK_UNDERLINE)));
  rb_define_const(mOUE, "IK_KANJI", SWIG_From_int(static_cast< int >(IK_KANJI)));
  rb_define_const(mOUE, "IK_STOP", SWIG_From_int(static_cast< int >(IK_STOP)));
  rb_define_const(mOUE, "IK_AX", SWIG_From_int(static_cast< int >(IK_AX)));
  rb_define_const(mOUE, "IK_UNLABELED", SWIG_From_int(static_cast< int >(IK_UNLABELED)));
  rb_define_const(mOUE, "IK_NEXTTRACK", SWIG_From_int(static_cast< int >(IK_NEXTTRACK)));
  rb_define_const(mOUE, "IK_NUMPADENTER", SWIG_From_int(static_cast< int >(IK_NUMPADENTER)));
  rb_define_const(mOUE, "IK_RCONTROL", SWIG_From_int(static_cast< int >(IK_RCONTROL)));
  rb_define_const(mOUE, "IK_MUTE", SWIG_From_int(static_cast< int >(IK_MUTE)));
  rb_define_const(mOUE, "IK_CALCULATOR", SWIG_From_int(static_cast< int >(IK_CALCULATOR)));
  rb_define_const(mOUE, "IK_PLAYPAUSE", SWIG_From_int(static_cast< int >(IK_PLAYPAUSE)));
  rb_define_const(mOUE, "IK_MEDIASTOP", SWIG_From_int(static_cast< int >(IK_MEDIASTOP)));
  rb_define_const(mOUE, "IK_VOLUMEDOWN", SWIG_From_int(static_cast< int >(IK_VOLUMEDOWN)));
  rb_define_const(mOUE, "IK_VOLUMEUP", SWIG_From_int(static_cast< int >(IK_VOLUMEUP)));
  rb_define_const(mOUE, "IK_WEBHOME", SWIG_From_int(static_cast< int >(IK_WEBHOME)));
  rb_define_const(mOUE, "IK_NUMPADCOMMA", SWIG_From_int(static_cast< int >(IK_NUMPADCOMMA)));
  rb_define_const(mOUE, "IK_DIVIDE", SWIG_From_int(static_cast< int >(IK_DIVIDE)));
  rb_define_const(mOUE, "IK_SYSRQ", SWIG_From_int(static_cast< int >(IK_SYSRQ)));
  rb_define_const(mOUE, "IK_RMENU", SWIG_From_int(static_cast< int >(IK_RMENU)));
  rb_define_const(mOUE, "IK_PAUSE", SWIG_From_int(static_cast< int >(IK_PAUSE)));
  rb_define_const(mOUE, "IK_HOME", SWIG_From_int(static_cast< int >(IK_HOME)));
  rb_define_const(mOUE, "IK_UP", SWIG_From_int(static_cast< int >(IK_UP)));
  rb_define_const(mOUE, "IK_PRIOR", SWIG_From_int(static_cast< int >(IK_PRIOR)));
  rb_define_const(mOUE, "IK_LEFT", SWIG_From_int(static_cast< int >(IK_LEFT)));
  rb_define_const(mOUE, "IK_RIGHT", SWIG_From_int(static_cast< int >(IK_RIGHT)));
  rb_define_const(mOUE, "IK_END", SWIG_From_int(static_cast< int >(IK_END)));
  rb_define_const(mOUE, "IK_DOWN", SWIG_From_int(static_cast< int >(IK_DOWN)));
  rb_define_const(mOUE, "IK_NEXT", SWIG_From_int(static_cast< int >(IK_NEXT)));
  rb_define_const(mOUE, "IK_INSERT", SWIG_From_int(static_cast< int >(IK_INSERT)));
  rb_define_const(mOUE, "IK_DELETE", SWIG_From_int(static_cast< int >(IK_DELETE)));
  rb_define_const(mOUE, "IK_LWIN", SWIG_From_int(static_cast< int >(IK_LWIN)));
  rb_define_const(mOUE, "IK_RWIN", SWIG_From_int(static_cast< int >(IK_RWIN)));
  rb_define_const(mOUE, "IK_APPS", SWIG_From_int(static_cast< int >(IK_APPS)));
  rb_define_const(mOUE, "IK_POWER", SWIG_From_int(static_cast< int >(IK_POWER)));
  rb_define_const(mOUE, "IK_SLEEP", SWIG_From_int(static_cast< int >(IK_SLEEP)));
  rb_define_const(mOUE, "IK_WAKE", SWIG_From_int(static_cast< int >(IK_WAKE)));
  rb_define_const(mOUE, "IK_WEBSEARCH", SWIG_From_int(static_cast< int >(IK_WEBSEARCH)));
  rb_define_const(mOUE, "IK_WEBFAVORITES", SWIG_From_int(static_cast< int >(IK_WEBFAVORITES)));
  rb_define_const(mOUE, "IK_WEBREFRESH", SWIG_From_int(static_cast< int >(IK_WEBREFRESH)));
  rb_define_const(mOUE, "IK_WEBSTOP", SWIG_From_int(static_cast< int >(IK_WEBSTOP)));
  rb_define_const(mOUE, "IK_WEBFORWARD", SWIG_From_int(static_cast< int >(IK_WEBFORWARD)));
  rb_define_const(mOUE, "IK_WEBBACK", SWIG_From_int(static_cast< int >(IK_WEBBACK)));
  rb_define_const(mOUE, "IK_MYCOMPUTER", SWIG_From_int(static_cast< int >(IK_MYCOMPUTER)));
  rb_define_const(mOUE, "IK_MAIL", SWIG_From_int(static_cast< int >(IK_MAIL)));
  rb_define_const(mOUE, "IK_MEDIASELECT", SWIG_From_int(static_cast< int >(IK_MEDIASELECT)));
  rb_define_const(mOUE, "IK_BACKSPACE", SWIG_From_int(static_cast< int >(IK_BACKSPACE)));
  rb_define_const(mOUE, "IK_NUMPADSTAR", SWIG_From_int(static_cast< int >(IK_NUMPADSTAR)));
  rb_define_const(mOUE, "IK_LALT", SWIG_From_int(static_cast< int >(IK_LALT)));
  rb_define_const(mOUE, "IK_CAPSLOCK", SWIG_From_int(static_cast< int >(IK_CAPSLOCK)));
  rb_define_const(mOUE, "IK_NUMPADMINUS", SWIG_From_int(static_cast< int >(IK_NUMPADMINUS)));
  rb_define_const(mOUE, "IK_NUMPADPLUS", SWIG_From_int(static_cast< int >(IK_NUMPADPLUS)));
  rb_define_const(mOUE, "IK_NUMPADPERIOD", SWIG_From_int(static_cast< int >(IK_NUMPADPERIOD)));
  rb_define_const(mOUE, "IK_NUMPADSLASH", SWIG_From_int(static_cast< int >(IK_NUMPADSLASH)));
  rb_define_const(mOUE, "IK_RALT", SWIG_From_int(static_cast< int >(IK_RALT)));
  rb_define_const(mOUE, "IK_UPARROW", SWIG_From_int(static_cast< int >(IK_UPARROW)));
  rb_define_const(mOUE, "IK_PGUP", SWIG_From_int(static_cast< int >(IK_PGUP)));
  rb_define_const(mOUE, "IK_LEFTARROW", SWIG_From_int(static_cast< int >(IK_LEFTARROW)));
  rb_define_const(mOUE, "IK_RIGHTARROW", SWIG_From_int(static_cast< int >(IK_RIGHTARROW)));
  rb_define_const(mOUE, "IK_DOWNARROW", SWIG_From_int(static_cast< int >(IK_DOWNARROW)));
  rb_define_const(mOUE, "IK_PGDN", SWIG_From_int(static_cast< int >(IK_PGDN)));
  rb_define_const(mOUE, "IK_CIRCUMFLEX", SWIG_From_int(static_cast< int >(IK_CIRCUMFLEX)));
  
  SwigClassSprite.klass = rb_define_class_under(mOUE, "Sprite", ((swig_class *) SWIGTYPE_p_OneU__video__INode->clientdata)->klass);
  SWIG_TypeClientData(SWIGTYPE_p_OneU__ISprite, (void *) &SwigClassSprite);
  rb_define_alloc_func(SwigClassSprite.klass, _wrap_Sprite_allocate);
  rb_define_method(SwigClassSprite.klass, "initialize", VALUEFUNC(_wrap_new_Sprite), -1);
  rb_define_method(SwigClassSprite.klass, "image=", VALUEFUNC(_wrap_Sprite_imagee___), -1);
  rb_define_method(SwigClassSprite.klass, "image", VALUEFUNC(_wrap_Sprite_image), -1);
  rb_define_method(SwigClassSprite.klass, "oh=", VALUEFUNC(_wrap_Sprite_ohe___), -1);
  rb_define_method(SwigClassSprite.klass, "oh", VALUEFUNC(_wrap_Sprite_oh), -1);
  rb_define_method(SwigClassSprite.klass, "ov=", VALUEFUNC(_wrap_Sprite_ove___), -1);
  rb_define_method(SwigClassSprite.klass, "ov", VALUEFUNC(_wrap_Sprite_ov), -1);
  rb_define_method(SwigClassSprite.klass, "color=", VALUEFUNC(_wrap_Sprite_colore___), -1);
  rb_define_method(SwigClassSprite.klass, "color", VALUEFUNC(_wrap_Sprite_color), -1);
  rb_define_method(SwigClassSprite.klass, "alpha=", VALUEFUNC(_wrap_Sprite_alphae___), -1);
  rb_define_method(SwigClassSprite.klass, "alpha", VALUEFUNC(_wrap_Sprite_alpha), -1);
  rb_define_method(SwigClassSprite.klass, "srcRect=", VALUEFUNC(_wrap_Sprite_srcRecte___), -1);
  rb_define_method(SwigClassSprite.klass, "srcRect", VALUEFUNC(_wrap_Sprite_srcRect), -1);
  rb_define_method(SwigClassSprite.klass, "width", VALUEFUNC(_wrap_Sprite_width), -1);
  rb_define_method(SwigClassSprite.klass, "height", VALUEFUNC(_wrap_Sprite_height), -1);
  rb_define_method(SwigClassSprite.klass, "blendMode=", VALUEFUNC(_wrap_Sprite_blendModee___), -1);
  rb_define_method(SwigClassSprite.klass, "blendMode", VALUEFUNC(_wrap_Sprite_blendMode), -1);
  rb_define_method(SwigClassSprite.klass, "colorBlendMode=", VALUEFUNC(_wrap_Sprite_colorBlendModee___), -1);
  rb_define_method(SwigClassSprite.klass, "colorBlendMode", VALUEFUNC(_wrap_Sprite_colorBlendMode), -1);
  SwigClassSprite.mark = 0;
  SwigClassSprite.destroy = (void (*)(void *)) free_OneU_ISprite;
  SwigClassSprite.trackObjects = 0;
  
  SwigClassShape.klass = rb_define_class_under(mOUE, "Shape", ((swig_class *) SWIGTYPE_p_OneU__video__INode->clientdata)->klass);
  SWIG_TypeClientData(SWIGTYPE_p_OneU__IShape, (void *) &SwigClassShape);
  rb_define_alloc_func(SwigClassShape.klass, _wrap_Shape_allocate);
  rb_define_method(SwigClassShape.klass, "initialize", VALUEFUNC(_wrap_new_Shape), -1);
  rb_define_method(SwigClassShape.klass, "color=", VALUEFUNC(_wrap_Shape_colore___), -1);
  rb_define_method(SwigClassShape.klass, "color", VALUEFUNC(_wrap_Shape_color), -1);
  rb_define_method(SwigClassShape.klass, "mode=", VALUEFUNC(_wrap_Shape_modee___), -1);
  rb_define_method(SwigClassShape.klass, "mode", VALUEFUNC(_wrap_Shape_mode), -1);
  SwigClassShape.mark = 0;
  SwigClassShape.destroy = (void (*)(void *)) free_OneU_IShape;
  SwigClassShape.trackObjects = 0;
  rb_define_const(mOUE, "T_TOP", SWIG_From_int(static_cast< int >(OneU::T_TOP)));
  rb_define_const(mOUE, "T_BOTTOM", SWIG_From_int(static_cast< int >(OneU::T_BOTTOM)));
  rb_define_const(mOUE, "T_VCENTER", SWIG_From_int(static_cast< int >(OneU::T_VCENTER)));
  rb_define_const(mOUE, "T_LEFT", SWIG_From_int(static_cast< int >(OneU::T_LEFT)));
  rb_define_const(mOUE, "T_RIGHT", SWIG_From_int(static_cast< int >(OneU::T_RIGHT)));
  rb_define_const(mOUE, "T_CENTER", SWIG_From_int(static_cast< int >(OneU::T_CENTER)));
  
  SwigClassLabel.klass = rb_define_class_under(mOUE, "Label", ((swig_class *) SWIGTYPE_p_OneU__video__INode->clientdata)->klass);
  SWIG_TypeClientData(SWIGTYPE_p_OneU__ILabel, (void *) &SwigClassLabel);
  rb_define_alloc_func(SwigClassLabel.klass, _wrap_Label_allocate);
  rb_define_method(SwigClassLabel.klass, "initialize", VALUEFUNC(_wrap_new_Label), -1);
  rb_define_method(SwigClassLabel.klass, "text=", VALUEFUNC(_wrap_Label_texte___), -1);
  rb_define_method(SwigClassLabel.klass, "text", VALUEFUNC(_wrap_Label_text), -1);
  rb_define_method(SwigClassLabel.klass, "color=", VALUEFUNC(_wrap_Label_colore___), -1);
  rb_define_method(SwigClassLabel.klass, "color", VALUEFUNC(_wrap_Label_color), -1);
  rb_define_method(SwigClassLabel.klass, "alpha=", VALUEFUNC(_wrap_Label_alphae___), -1);
  rb_define_method(SwigClassLabel.klass, "alpha", VALUEFUNC(_wrap_Label_alpha), -1);
  rb_define_method(SwigClassLabel.klass, "align=", VALUEFUNC(_wrap_Label_aligne___), -1);
  rb_define_method(SwigClassLabel.klass, "align", VALUEFUNC(_wrap_Label_align), -1);
  SwigClassLabel.mark = 0;
  SwigClassLabel.destroy = (void (*)(void *)) free_OneU_ILabel;
  SwigClassLabel.trackObjects = 0;
  
  SwigClassCharEvent.klass = rb_define_class_under(mOUE, "CharEvent", rb_cObject);
  SWIG_TypeClientData(SWIGTYPE_p_OneU__CharEvent, (void *) &SwigClassCharEvent);
  rb_undef_alloc_func(SwigClassCharEvent.klass);
  rb_define_method(SwigClassCharEvent.klass, "getChar", VALUEFUNC(_wrap_CharEvent_getChar), -1);
  SwigClassCharEvent.mark = 0;
  SwigClassCharEvent.destroy = (void (*)(void *)) free_OneU_CharEvent;
  SwigClassCharEvent.trackObjects = 0;
  
  SwigClassKeyEvent.klass = rb_define_class_under(mOUE, "KeyEvent", rb_cObject);
  SWIG_TypeClientData(SWIGTYPE_p_OneU__KeyEvent, (void *) &SwigClassKeyEvent);
  rb_undef_alloc_func(SwigClassKeyEvent.klass);
  rb_define_method(SwigClassKeyEvent.klass, "getCode", VALUEFUNC(_wrap_KeyEvent_getCode), -1);
  rb_define_method(SwigClassKeyEvent.klass, "isRelease", VALUEFUNC(_wrap_KeyEvent_isRelease), -1);
  rb_define_method(SwigClassKeyEvent.klass, "isPress", VALUEFUNC(_wrap_KeyEvent_isPress), -1);
  SwigClassKeyEvent.mark = 0;
  SwigClassKeyEvent.destroy = (void (*)(void *)) free_OneU_KeyEvent;
  SwigClassKeyEvent.trackObjects = 0;
  
  SwigClassMouseEvent.klass = rb_define_class_under(mOUE, "MouseEvent", rb_cObject);
  SWIG_TypeClientData(SWIGTYPE_p_OneU__MouseEvent, (void *) &SwigClassMouseEvent);
  rb_undef_alloc_func(SwigClassMouseEvent.klass);
  rb_define_method(SwigClassMouseEvent.klass, "getButtonID", VALUEFUNC(_wrap_MouseEvent_getButtonID), -1);
  rb_define_method(SwigClassMouseEvent.klass, "isRelease", VALUEFUNC(_wrap_MouseEvent_isRelease), -1);
  rb_define_method(SwigClassMouseEvent.klass, "isPress", VALUEFUNC(_wrap_MouseEvent_isPress), -1);
  SwigClassMouseEvent.mark = 0;
  SwigClassMouseEvent.destroy = (void (*)(void *)) free_OneU_MouseEvent;
  SwigClassMouseEvent.trackObjects = 0;
  rb_define_module_function(mOUE, "disown_InputReceiver", VALUEFUNC(_wrap_disown_InputReceiver), -1);
  
  SwigClassInputReceiver.klass = rb_define_class_under(mOUE, "InputReceiver", rb_cObject);
  SWIG_TypeClientData(SWIGTYPE_p_OneU__IInputReceiver, (void *) &SwigClassInputReceiver);
  rb_define_alloc_func(SwigClassInputReceiver.klass, _wrap_InputReceiver_allocate);
  rb_define_method(SwigClassInputReceiver.klass, "initialize", VALUEFUNC(_wrap_new_InputReceiver), -1);
  rb_define_method(SwigClassInputReceiver.klass, "onChar", VALUEFUNC(_wrap_InputReceiver_onChar), -1);
  rb_define_method(SwigClassInputReceiver.klass, "onKey", VALUEFUNC(_wrap_InputReceiver_onKey), -1);
  rb_define_method(SwigClassInputReceiver.klass, "onMouse", VALUEFUNC(_wrap_InputReceiver_onMouse), -1);
  SwigClassInputReceiver.mark = 0;
  SwigClassInputReceiver.destroy = (void (*)(void *)) free_OneU_IInputReceiver;
  SwigClassInputReceiver.trackObjects = 0;
}

