Skip to content

Commit 6a5aca3

Browse files
committed
[delaunay-psm] Update to 1.5.5
1 parent 932ad32 commit 6a5aca3

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required(VERSION 3.1.3)
22

3-
project(delaunay-psm LANGUAGES C CXX VERSION 1.5.4)
3+
project(delaunay-psm LANGUAGES C CXX VERSION 1.5.5)
44

55
set(CMAKE_CXX_STANDARD 11)
66

delaunay-psm/Delaunay_psm.cpp

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1987,6 +1987,9 @@ namespace {
19871987
using namespace GEO;
19881988
using namespace CmdLine;
19891989

1990+
int geo_argc = 0;
1991+
char** geo_argv = nil;
1992+
19901993
// True if displaying help in a way that
19911994
// it will be easily processed by help2man
19921995
bool man_mode = false;
@@ -2150,6 +2153,9 @@ namespace {
21502153
bool parse_internal(
21512154
int argc, char** argv, std::vector<std::string>& unparsed_args
21522155
) {
2156+
geo_argc = argc;
2157+
geo_argv = argv;
2158+
21532159
parse_config_file(argc, argv);
21542160

21552161
bool ok = true;
@@ -2329,6 +2335,14 @@ namespace GEO {
23292335
desc_ = nil;
23302336
}
23312337

2338+
int argc() {
2339+
return geo_argc;
2340+
}
2341+
2342+
char** argv() {
2343+
return geo_argv;
2344+
}
2345+
23322346
bool parse(
23332347
int argc, char** argv, std::vector<std::string>& unparsed_args,
23342348
const std::string& additional_arg_specs
@@ -3640,9 +3654,13 @@ namespace {
36403654
"one of auto, GLUP150, GLUP440, VanillaGL"
36413655
);
36423656
declare_arg("gfx:full_screen", false, "full screen mode");
3657+
declare_arg(
3658+
"gfx:no_decoration", false,
3659+
"no window decoration (full screen mode)"
3660+
);
36433661
declare_arg(
36443662
"gfx:transparent", false,
3645-
"use transparent backsgroung (desktop integration)"
3663+
"use transparent backgroung (desktop integration)"
36463664
);
36473665
declare_arg(
36483666
"gfx:GLSL_tesselation", true, "use tesselation shaders if available"

delaunay-psm/Delaunay_psm.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5235,6 +5235,15 @@ namespace GEO {
52355235
int argc, char** argv
52365236
);
52375237

5238+
int GEOGRAM_API argc();
5239+
5240+
5241+
typedef char** charptrptr; // Need to do that else the compiler thinks
5242+
// that GEOGRAM_API qualifies the ptr instead
5243+
// of the function.
5244+
5245+
charptrptr GEOGRAM_API argv();
5246+
52385247
void GEOGRAM_API show_usage(
52395248
const std::string& additional_args = "",
52405249
bool advanced = false

0 commit comments

Comments
 (0)