fix language extern
This commit is contained in:
@@ -20,7 +20,6 @@ struct BoneAnimation {
|
|||||||
typedef struct BoneAnimation BoneAnimation;
|
typedef struct BoneAnimation BoneAnimation;
|
||||||
|
|
||||||
|
|
||||||
extern "C" {
|
|
||||||
void* filament_viewer_new(void* context, ResourceBuffer (*loadResource)(const char*), void (*freeResource)(uint32_t));
|
void* filament_viewer_new(void* context, ResourceBuffer (*loadResource)(const char*), void (*freeResource)(uint32_t));
|
||||||
void filament_viewer_delete(void* viewer);
|
void filament_viewer_delete(void* viewer);
|
||||||
void create_render_target(void* viewer, uint32_t textureId, uint32_t width, uint32_t height);
|
void create_render_target(void* viewer, uint32_t textureId, uint32_t width, uint32_t height);
|
||||||
@@ -104,6 +103,5 @@ extern "C" {
|
|||||||
void set_camera_rotation(void* viewer, float rads, float x, float y, float z);
|
void set_camera_rotation(void* viewer, float rads, float x, float y, float z);
|
||||||
void set_camera_focal_length(void* viewer, float focalLength);
|
void set_camera_focal_length(void* viewer, float focalLength);
|
||||||
void set_camera_focus_distance(void* viewer, float focusDistance);
|
void set_camera_focus_distance(void* viewer, float focusDistance);
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -19,7 +19,10 @@
|
|||||||
|
|
||||||
#include "ResourceManagement.hpp"
|
#include "ResourceManagement.hpp"
|
||||||
#include "SceneAssetAnimation.hpp"
|
#include "SceneAssetAnimation.hpp"
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
#include "PolyvoxFilamentApi.h"
|
#include "PolyvoxFilamentApi.h"
|
||||||
|
}
|
||||||
|
|
||||||
namespace polyvox {
|
namespace polyvox {
|
||||||
using namespace filament;
|
using namespace filament;
|
||||||
|
|||||||
Reference in New Issue
Block a user