Skip to content

ebednar/Particle-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Particle-system

Particle system using OpenCL and OpenGL

Goal is to achive 3kk particles with 30 fps as minimum

  • At first we create OpenGL context and create buffer, with size for all particles, but do not provide any data from RAM (NULL)
  • Then create shared OpenCL context (CGLContextObj gl_ctx = CGLGetCurrentContext(); CGLShareGroupObj gl_sharegroup = CGLGetShareGroup(gl_ctx);
  • Now we can get buffer from OpenGL with clCreateFromGLBuffer();

About

Particle system using OpenCL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages