-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Description
openGLPlotLive/src/lines/Line2D2Vecs.cpp
Line 21 in 26ef414
| createAndSetupBuffers(vertDataSizeBytes, indicesDataSizeBytes, |
/* Setup Buffers */
updateInternalData();
int vertDataSizeBytes = internalData.size()*sizeof(internalData[0]);
int indicesDataSizeBytes = internalIndices.size()*sizeof(internalIndices[0]);
createAndSetupBuffers(vertDataSizeBytes, indicesDataSizeBytes,
&internalData[0], &internalIndices[0],
2*sizeof(internalData[0]));
although it compiles and runs OK under windows using GCC compiler, the code above fails in MSVC 2019 compiled executable 'movingTimeframe.exe'
I guess it should be preallocated to contain certain size? I don't know why it runs OK when compiled with g++ toolchain under windows.
The procedure to completely build using MSVC is tedious including :
- git clone newest freetype
1.1 disable the following options and rebuild with MSVC
"-DFT_DISABLE_HARFBUZZ=ON",
"-DFT_DISABLE_PNG=ON",
"-DFT_DISABLE_BZIP2=ON",
"-DFT_DISABLE_BROTLI=ON" - rebuild glfw using MSVC
- change the LIBS file names to match the built freetype and glfw libs
- add 'msvc_dirent.h' from https://gitcode.net/mirrors/tronkko/dirent/-/blob/master/include/dirent.h
But without doubt, this is a terrific example of OpenGL that I'm learning from. Thank you!
Metadata
Metadata
Assignees
Labels
No labels