further work towards sharing structures/code between C++ and OpenCL

(could break the build in C++/OpenCL)
This commit is contained in:
erwincoumans
2013-08-03 10:13:13 -07:00
parent 906415429c
commit 18eed5b067
8 changed files with 1031 additions and 831 deletions

View File

@@ -0,0 +1,12 @@
#ifndef B3_FLOAT4_H
#define B3_FLOAT4_H
#include "Bullet3Common/shared/b3PlatformDefinitions.h"
#ifdef __cplusplus
#define b3Float4 b3Vector3
#else//bla
typedef float4 b3Float4;
#endif
#endif //B3_FLOAT4_H

View File

@@ -0,0 +1,9 @@
#ifndef B3_PLATFORM_DEFINITIONS_H
#define B3_PLATFORM_DEFINITIONS_H
struct MyTest
{
int bla;
};
#endif