packages feed

HGamer3D-Bullet-Binding 0.2.0 → 0.2.1

raw patch · 4 files changed

+11/−9 lines, 4 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

HGamer3D-Bullet-Binding.cabal view
@@ -1,5 +1,5 @@ Name:                HGamer3D-Bullet-Binding
-Version:             0.2.0
+Version:             0.2.1
 Synopsis:            Windows Game Engine for the Haskell Programmer - Bullet  Bindings
 Description:         
    HGamer3D is a game engine for developing 3D games in the programming 
HGamer3D/Bindings/Bullet/StructVec3.hs view
@@ -50,7 +50,7 @@ 
 instance Storable Vector3 where
   alignment _ = alignment (undefined :: CDouble)
-  sizeOf _ = 12
+  sizeOf _ = 16
 {-# LINE 50 ".\\HGamer3D\\Bindings\\Bullet\\StructVec3.chs" #-}
   peek p = do
 	x <- (\ptr -> do {peekByteOff ptr 0 ::IO CFloat}) p
@@ -62,11 +62,12 @@     (\ptr val -> do {pokeByteOff ptr 0 (val::CFloat)}) p (realToFrac x)
     (\ptr val -> do {pokeByteOff ptr 4 (val::CFloat)}) p (realToFrac  y)
     (\ptr val -> do {pokeByteOff ptr 8 (val::CFloat)}) p (realToFrac  z)
+    (\ptr val -> do {pokeByteOff ptr 12 (val::CFloat)}) p (realToFrac  0.0)
     
 type Vector3Ptr = Ptr (Vector3)
 
 type Vec3Ptr = Ptr (Vec3)
-{-# LINE 64 ".\\HGamer3D\\Bindings\\Bullet\\StructVec3.chs" #-}
+{-# LINE 65 ".\\HGamer3D\\Bindings\\Bullet\\StructVec3.chs" #-}
 
 withVec3 :: Vec3 -> (Vec3Ptr -> IO b) -> IO b
 withVec3 v f = with v' f' where
include/BulletDllDefines.h view
@@ -16,10 +16,10 @@ 
 // BulletDllDefines.h
 
-#ifndef _HGamer3DBullet020_DLLDEFINES_H_
-#define _HGamer3DBullet020_DLLDEFINES_H_
+#ifndef _HGamer3DBullet021_DLLDEFINES_H_
+#define _HGamer3DBullet021_DLLDEFINES_H_
 
-/* Cmake will define HGamer3DBullet020_EXPORTS on Windows when it
+/* Cmake will define HGamer3DBullet021_EXPORTS on Windows when it
 configures to build a shared library. If you are going to use
 another build system on windows or create the visual studio
 projects by hand you need to define MyLibrary_EXPORTS when
@@ -29,13 +29,13 @@ // We are using the Visual Studio Compiler and building Shared libraries
 
 #if (defined (_WIN32)) && !(defined (__GNUC__)) 
-  #if defined(HGamer3DBullet020_EXPORTS)
+  #if defined(HGamer3DBullet021_EXPORTS)
     #define  Bullet_LIB_EXPORT __declspec(dllexport)
   #else
     #define  Bullet_LIB_EXPORT __declspec(dllimport)
-  #endif /* HGamer3DBullet020_EXPORTS */
+  #endif /* HGamer3DBullet021_EXPORTS */
 #else /* defined (_WIN32) */
  #define Bullet_LIB_EXPORT
 #endif
 
-#endif /* _HGamer3DBullet020_DLLDEFINES_H_ */
+#endif /* _HGamer3DBullet021_DLLDEFINES_H_ */
include/StructVec3.h view
@@ -32,6 +32,7 @@ 	float x;
 	float y;
 	float z;
+                float unused;
 } vector3_struct;
 
 #endif