further work towards sharing structures/code between C++ and OpenCL
(could break the build in C++/OpenCL)
This commit is contained in:
12
src/Bullet3Common/shared/b3Float4.h
Normal file
12
src/Bullet3Common/shared/b3Float4.h
Normal 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
|
||||
9
src/Bullet3Common/shared/b3PlatformDefinitions.h
Normal file
9
src/Bullet3Common/shared/b3PlatformDefinitions.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#ifndef B3_PLATFORM_DEFINITIONS_H
|
||||
#define B3_PLATFORM_DEFINITIONS_H
|
||||
|
||||
struct MyTest
|
||||
{
|
||||
int bla;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user