Skip to content

Commit 5e70a0a

Browse files
committed
Sync all changes: debug dialogs, OpenGL 3.3 compat, glewExperimental, macOS fixes
1 parent ed9e83b commit 5e70a0a

6 files changed

Lines changed: 10 additions & 4 deletions

File tree

CppMode.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ authors=[Jose Gonzalez Llamas](https://github.com/pepc84)
44
url=https://github.com/processing-cpp/processing.cpp
55
sentence=Write and run Processing sketches in C++.
66
paragraph=C++ Mode lets you write sketches using the familiar Processing API — size(), ellipse(), mouseX, draw() — but compiled to a native binary via g++. Runs on Linux and Windows (via MSYS2). Requires g++ and OpenGL (GLFW + GLEW).
7-
version=15
8-
prettyVersion=0.4.5
7+
version=17
8+
prettyVersion=--run
99
minRevision=1280
1010
maxRevision=0

dist/processing-cpp-cmake.zip

151 Bytes
Binary file not shown.
155 Bytes
Binary file not shown.

mode.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ authors=[Jose Gonzalez Llamas](https://github.com/pepc84)
44
url=https://github.com/processing-cpp/processing.cpp
55
sentence=Write and run Processing sketches in C++.
66
paragraph=C++ Mode lets you write sketches using the familiar Processing API — size(), ellipse(), mouseX, draw() — but compiled to a native binary via g++. Runs on Linux, macOS, and Windows (via MSYS2). Requires g++ and OpenGL (GLFW + GLEW).
7-
version=15
8-
prettyVersion=0.4.5
7+
version=17
8+
prettyVersion=--run
99
minRevision=1280
1010
maxRevision=0

mode/CppMode.jar

0 Bytes
Binary file not shown.

src/Processing.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3332,6 +3332,9 @@ void PApplet::run(){
33323332
::std::srand((unsigned)::std::time(nullptr));
33333333
initPerlin(0); // initialize noise table with default seed
33343334

3335+
#ifdef _WIN32
3336+
MessageBoxA(NULL, "Before glfwInit", "Debug-1", MB_OK);
3337+
#endif
33353338
if(!glfwInit()){
33363339
fprintf(stderr, "[ERR] glfwInit() failed. Make sure libglfw3.dll is next to ide.exe\n");
33373340
#ifdef _WIN32
@@ -3362,6 +3365,9 @@ void PApplet::run(){
33623365
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
33633366
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
33643367
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_COMPAT_PROFILE);
3368+
#ifdef _WIN32
3369+
MessageBoxA(NULL, "Before glfwCreateWindow", "Debug0", MB_OK);
3370+
#endif
33653371
gWindow=glfwCreateWindow(winWidth,winHeight,g_sketchName.c_str(),nullptr,nullptr);
33663372
if(!gWindow){
33673373
const char* err="unknown"; (void)err;

0 commit comments

Comments
 (0)