-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmain.cpp
More file actions
22 lines (17 loc) · 784 Bytes
/
main.cpp
File metadata and controls
22 lines (17 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <Windows.h>
#include <stdio.h>
#include <tchar.h>
#include <iostream>
#include <conio.h>
#include "FastNoiseSIMD_JNI.h"
using namespace std;
// For debug only, don't include in release
int _tmain(int argc, _TCHAR* argv[])
{
auto p = Java_org_schema_game_server_controller_world_factory_planet_FastNoiseSIMD_NewFastNoiseSIMD(nullptr, nullptr, 1234);
Java_org_schema_game_server_controller_world_factory_planet_FastNoiseSIMD_NativeSetFrequency(nullptr, nullptr,p, 0.0008f);
Java_org_schema_game_server_controller_world_factory_planet_FastNoiseSIMD_NativeSetSeed(nullptr, nullptr, p, 69);
cout << Java_org_schema_game_server_controller_world_factory_planet_FastNoiseSIMD_NativeGetSeed(nullptr, nullptr, p) << endl;
cout << "Press any key to exit" << endl;
_getch();
}