251 |
|
COLORV * barPix; // current render bar pixels |
252 |
|
float * barDepth; // current render bar depths |
253 |
|
bool SetTile(const int ti[2]); |
254 |
< |
bool RenderRect(); |
254 |
> |
bool RenderRect(const int x0 = 0, const int y0 = 0); |
255 |
|
bool ComputePixel(int x, int y); |
256 |
< |
bool BelowSampThresh(int x, int y, const int noff[4][2]) const; |
256 |
> |
bool BelowSampThresh(const int x, const int y, |
257 |
> |
const int noff[4][2]) const; |
258 |
|
void FillSquare(const int x, const int y, const int noff[4][2]); |
259 |
|
void NewBar(int ht = 0); |
260 |
|
bool LowerBar(int v, int ytop); |
276 |
|
frameNo = 0; |
277 |
|
} |
278 |
|
~RpictSimulManager() { |
279 |
< |
NewBar(); |
279 |
> |
delete [] barPix; delete [] barDepth; |
280 |
|
} |
281 |
|
/// Load octree and prepare renderer |
282 |
|
bool LoadOctree(const char *octn) { |
382 |
|
const int *tile=NULL); |
383 |
|
/// Render and write a frame to the named file |
384 |
|
/// Include any header lines set prior to call |
385 |
< |
/// Picture file must not already exist |
385 |
> |
/// Picture file must not exist |
386 |
|
/// Write pixels to stdout if !pfname |
387 |
|
/// Write depth to a command if dfname[0]=='!' |
388 |
|
RenderDataType RenderFrame(const char *pfname, |
391 |
|
/// Resume partially finished rendering |
392 |
|
/// Picture file must exist with valid header |
393 |
|
RenderDataType ResumeFrame(const char *pfname, |
394 |
+ |
const char *dfname=NULL); |
395 |
+ |
/// Prepare new picture (and depth) output |
396 |
+ |
/// Called by RenderFrame() |
397 |
+ |
RenderDataType NewOutput(FILE *pdfp[2], const char *pfname, |
398 |
+ |
RenderDataType dt=RDTrgbe, |
399 |
+ |
const char *dfname=NULL); |
400 |
+ |
/// Reopen existing picture (and depth) file |
401 |
+ |
/// Called by ResumeFrame() |
402 |
+ |
/// File pointers @ end of header (before res.) |
403 |
+ |
RenderDataType ReopenOutput(FILE *pdfp[2], const char *pfname, |
404 |
|
const char *dfname=NULL); |
405 |
|
/// Close octree, free data, return status |
406 |
|
int Cleanup(bool everything = false) { |