Hey Brucey!
BlitzMax Forums/Brucey's Modules/Hey Brucey!
| ||
| I hate to be that nagging forum member who's constantly inquiring about possible c++ interfaces, but! Would this be difficult to make a mod for blitzMAX? https://github.com/aras-p/glsl-optimizer It's a GLSL optimizer, the usage -
ctx = glslopt_initialize();
for (lots of shaders) {
shader = glslopt_optimize (ctx, shaderType, shaderSource, options);
if (glslopt_get_status (shader)) {
newSource = glslopt_get_output (shader);
} else {
errorLog = glslopt_get_log (shader);
}
glslopt_shader_delete (shader);
}
glslopt_cleanup (ctx);
I'd like to integrate into minib3dPlus if possible. |
| ||
| Hi, have a look at BaH.GLSLOpt in either the maxmods SVN or the github mirror. Sorry it took so long. I had issues getting it to work, and eventually found I had to disable compiler optimisations (haw haw)... |
| ||
| Thanks a ton Brucey!!! That wasn't long at all! I'm getting this lib error, I have the latest blitzMAX running windows 8, hmm C:/BlitzMax/lib/libmingwex.a(strtoumax.o):strtoumax.c:(.text+0x1a0): undefined reference to `__udivdi3' C:/BlitzMax/lib/libmingwex.a(pformat.o):pformat.c:(.text+0x355): undefined reference to `__umoddi3' C:/BlitzMax/lib/libmingwex.a(pformat.o):pformat.c:(.text+0x377): undefined reference to `__udivdi3' |
| ||
| I'm also using mingw v7.2 |
| ||
| NVM! Got it to work, had to add this environment variable - Name: BMK_LD_OPTS Value: -lmsvcrt -lgcc Any ideas as to what the implications of having these variable are? |
| ||
| No idea. It's probably an issue with the "official" bmk - and the linking order. |