| sphore 0.0.1 SPH openGL rendering engine | 
Code for managing the SPH kernel. More...
#include <GL/gl.h>#include <math.h>#include <stdlib.h>#include "kernel.h"#include "warning.h"#include "settings.h"| Data Structures | |
| struct | _kernel | 
| Functions | |
| void | create_textures (void) | 
| kernel_t * | kernel_create (unsigned int resolution) | 
| Creates a new kernel object. | |
| void | kernel_destroy (kernel_t *kern) | 
| Frees the memory accosciated with a kernel object. | |
| GLuint | kernel_get_texture (kernel_t *k) | 
| Get th OpenGL identifier for the kernel texture. | |
Code for managing the SPH kernel.
| void create_textures | ( | void | ) | 
| kernel_t* kernel_create | ( | unsigned int | resolution | ) | 
Creates a new kernel object.
| [in] | resolution | 2^resoution will be the number of pixels to be used for the texture. | 
| void kernel_destroy | ( | kernel_t * | kern | ) | 
Frees the memory accosciated with a kernel object.
| [in] | kern | The kernel to destroy. | 
| GLuint kernel_get_texture | ( | kernel_t * | k | ) | 
Get th OpenGL identifier for the kernel texture.
| [in] | kern | The kernel to get the texture of. |