#include <cellspace.h>
Public Member Functions | |
CellSpace (Model *parent, int w, int h) | |
~CellSpace () | |
void | run (int iteration=1) |
Model * | getParent () |
cl_mem * | getSpace () |
int | getWidth () |
int | getHeight () |
unsigned char * | renderToTexture () |
CellSpace::CellSpace | ( | Model * | parent, | |
int | w, | |||
int | h | |||
) |
Vytvory stavovy priestor modelu
parent | rodic ku ktoremu je dany stavovy priestor priradeny | |
w | sirka v pocte buniek | |
h | vyska v pocte buniek |
CellSpace::~CellSpace | ( | ) |
int CellSpace::getHeight | ( | ) | [inline] |
Model* CellSpace::getParent | ( | ) | [inline] |
cl_mem* CellSpace::getSpace | ( | ) | [inline] |
int CellSpace::getWidth | ( | ) | [inline] |
unsigned char * CellSpace::renderToTexture | ( | ) |
Vykresli do textury aktualny stav priestoru
void CellSpace::run | ( | int | iteration = 1 |
) |
Spusti simulaciu daneho pristoru
iteration | pocet iteracii ktore sa maju vykonat |