| 664 | } |
| 665 | |
| 666 | void TutorialApplication::resize(unsigned width, unsigned height) |
| 667 | { |
| 668 | if (width == this->width && height == this->height && pixels) |
| 669 | return; |
| 670 | |
| 671 | this->width = width; |
| 672 | this->height = height; |
| 673 | |
| 674 | if (pixels) alignedUSMFree(pixels); |
| 675 | pixels = (unsigned*) alignedUSMMalloc(width*height*sizeof(unsigned),64,EmbreeUSMMode::DEVICE_READ_WRITE); |
| 676 | } |
| 677 | |
| 678 | void TutorialApplication::set_scene (TutorialScene* in) |
| 679 | { |
no test coverage detected