sphore 0.0.1
SPH openGL rendering engine

src/kernel.h File Reference

Code for managing the SPH kernel. More...

#include <GL/gl.h>

Go to the source code of this file.

Typedefs

typedef struct _kernel kernel_t
 Public access to kernal objects.

Functions

kernel_tkernel_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.
void create_textures (void)

Detailed Description

Code for managing the SPH kernel.


Typedef Documentation

typedef struct _kernel kernel_t

Public access to kernal objects.

Memory managment should be done with kernel_create and kernel_destroy.


Function Documentation

void create_textures ( void  )
kernel_t* kernel_create ( unsigned int  resolution)

Creates a new kernel object.

Parameters:
[in]resolution2^resoution will be the number of pixels to be used for the texture.
Returns:
A pointer to the kernel object, or NULL if something has gone wrong.
void kernel_destroy ( kernel_t kern)

Frees the memory accosciated with a kernel object.

Parameters:
[in]kernThe kernel to destroy.
GLuint kernel_get_texture ( kernel_t k)

Get th OpenGL identifier for the kernel texture.

Parameters:
[in]kernThe kernel to get the texture of.
Returns:
The identifier of the texture.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines