GithubHelp home page GithubHelp logo

opengl_particlesystem's People

Contributors

dagostinelli avatar martty avatar stanepp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

opengl_particlesystem's Issues

This code will leak and does an unnecessary allocation

From ShaderManager.cpp:

GLsizei* length = new GLsizei; //new is not needed. just GLsizei length = 0; is ok then you just pass it's address in the function below It's not an array. It's just a value.
You can use it like this:
glGetShaderiv(shaderID, GL_INFO_LOG_LENGTH, &length);
char* compilationLog = new char[length];
glGetShaderInfoLog(shaderID, length, NULL, compilationLog);

throw std::exception(([...]+std::string(compilationLog)).c_str()); //Throwing here means you never deallocate compilationLog ( and never deallocate "length" from the original code )

Open with VS2019?

How do I configure the GLFW dependency properly?
In VS2019 I go File - Open - CMake… then it opens the project but fails to build it with this error:
particlescompute\ninja : error : 'glfw-NOTFOUND', needed by 'OpenGL_Particlesystem.exe', missing and no known rule to make it
image
Sorry, I'm clueless around cmake

cmake compile error on mac

Undefined symbols for architecture x86_64:
"_CFBundleCreate", referenced from:
_open_libgl in gl3w.c.o
"_CFBundleGetFunctionPointerForName", referenced from:
_get_proc in gl3w.c.o
"_CFRelease", referenced from:
_close_libgl in gl3w.c.o
_get_proc in gl3w.c.o
"_CFStringCreateWithCString", referenced from:
_get_proc in gl3w.c.o
"_CFURLCreateWithFileSystemPath", referenced from:
_open_libgl in gl3w.c.o
"___CFConstantStringClassReference", referenced from:
CFString in gl3w.c.o
"_kCFAllocatorDefault", referenced from:
_open_libgl in gl3w.c.o
_get_proc in gl3w.c.o
ld: symbol(s) not found for architecture x86_64

License

Could you add some license (or, if you don't want others to fork your code, explicitly state that)?

VS2019 build error

I get this build error in the solution generated by CMake
Error C2664 'void ShaderManager::loadShader(const std::string &,const std::string &,GLenum)': cannot convert argument 1 from 'std::filesystem::path' to 'const std::string &' OpenGL_Particlesystem C:\Users\a\Documents\particlescompute\src\ParticleSystem.cpp 63
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.