Skip to content

Commit

Permalink
test cesium native linking
Browse files Browse the repository at this point in the history
  • Loading branch information
Warreign committed Aug 15, 2024
1 parent 7f8b8ba commit 91ba987
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
#include "godot_cpp/core/class_db.hpp"
#include "godot_cpp/variant/utility_functions.hpp"

#include "Cesium3DTiles/Tileset.h"

#include "Example.h"

// Used to mark unused parameters to indicate intent and suppress warnings.
Expand Down Expand Up @@ -120,6 +122,14 @@ void ExampleRef::_notification( int inWhat )
}
}

void Example::testCesiumNative() const
{
Cesium3DTiles::Tileset tileset;

godot::UtilityFunctions::print(tileset.TypeName);
}


//// ExampleMin

void ExampleMin::_bind_methods()
Expand Down Expand Up @@ -591,6 +601,8 @@ bool Example::_has_point( const godot::Vector2 &inPoint ) const
void Example::_bind_methods()
{
// Methods.
godot::ClassDB::bind_method( godot::D_METHOD("test_cesium"), &Example::testCesiumNative);

godot::ClassDB::bind_method( godot::D_METHOD( "simple_func" ), &Example::simpleFunc );
godot::ClassDB::bind_method( godot::D_METHOD( "simple_const_func" ),
&Example::simpleConstFunc );
Expand Down
3 changes: 3 additions & 0 deletions src/Example.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ class Example : public godot::Control
GDCLASS( Example, godot::Control )

public:

void testCesiumNative() const;

// Constants.
enum Constants
{
Expand Down

0 comments on commit 91ba987

Please sign in to comment.