| 275 |
|
frameNo = 0; |
| 276 |
|
} |
| 277 |
|
~RpictSimulManager() { |
| 278 |
< |
NewBar(); |
| 278 |
> |
delete [] barPix; delete [] barDepth; |
| 279 |
|
} |
| 280 |
|
/// Load octree and prepare renderer |
| 281 |
|
bool LoadOctree(const char *octn) { |
| 381 |
|
const int *tile=NULL); |
| 382 |
|
/// Render and write a frame to the named file |
| 383 |
|
/// Include any header lines set prior to call |
| 384 |
< |
/// Picture file must not already exist |
| 384 |
> |
/// Picture file must not exist |
| 385 |
|
/// Write pixels to stdout if !pfname |
| 386 |
|
/// Write depth to a command if dfname[0]=='!' |
| 387 |
|
RenderDataType RenderFrame(const char *pfname, |
| 390 |
|
/// Resume partially finished rendering |
| 391 |
|
/// Picture file must exist with valid header |
| 392 |
|
RenderDataType ResumeFrame(const char *pfname, |
| 393 |
+ |
const char *dfname=NULL); |
| 394 |
+ |
/// Prepare new picture (and depth) output |
| 395 |
+ |
/// Writes current render size as resolution |
| 396 |
+ |
RenderDataType NewOutput(FILE *pdfp[2], const char *pfname, |
| 397 |
+ |
RenderDataType dt=RDTrgbe, |
| 398 |
+ |
const char *dfname=NULL); |
| 399 |
+ |
/// Reopen existing picture (and depth) file |
| 400 |
+ |
/// File pointers @ end of header (before res.) |
| 401 |
+ |
RenderDataType ReopenOutput(FILE *pdfp[2], const char *pfname, |
| 402 |
|
const char *dfname=NULL); |
| 403 |
|
/// Close octree, free data, return status |
| 404 |
|
int Cleanup(bool everything = false) { |