Beispiel #1
0
Model* createGridModel(unsigned int lineCount)
{
    Mesh* mesh = createGridMesh(lineCount);
    if (!mesh)
        return NULL;

    Model* model = Model::create(mesh);
    mesh->release();
    assert(model);
    return model;
}
GridWarpSurface::GridWarpSurface(){
	_gridCols = 2;
	_gridRows = 2;
	createGridMesh();
}
int GridWarpSurface::setGridCols(int c){
	_gridCols = c;
	createGridMesh();
}
int GridWarpSurface::setGridRows(int r){
	_gridRows = r;
	createGridMesh();
}