Showing the changes to interface/src/Stars.cpp (1 of 14 files). Show all
Unified · Split
| @@ -14,24 +14,24 @@ · 13 unmodified lines | |||
| 14 | #undef __interface__Starfield_impl__ | 14 | #undef __interface__Starfield_impl__ |
| 15 | 15 | ||
| 16 | Stars::Stars() : | 16 | Stars::Stars() : |
| 17 | _ptrController(0l) { | 17 | _controller(0l) { |
| 18 | _ptrController = new starfield::Controller; | 18 | _controller = new starfield::Controller; |
| 19 | } | 19 | } |
| 20 | 20 | ||
| 21 | Stars::~Stars() { | 21 | Stars::~Stars() { |
| 22 | delete _ptrController; | 22 | delete _controller; |
| 23 | } | 23 | } |
| 24 | 24 | ||
| 25 | bool Stars::readInput(const char* url, const char* cacheFile, unsigned limit) { | 25 | bool Stars::readInput(const char* url, const char* cacheFile, unsigned limit) { |
| 26 | return _ptrController->readInput(url, cacheFile, limit); | 26 | return _controller->readInput(url, cacheFile, limit); |
| 27 | } | 27 | } |
| 28 | 28 | ||
| 29 | bool Stars::setResolution(unsigned k) { | 29 | bool Stars::setResolution(unsigned k) { |
| 30 | return _ptrController->setResolution(k); | 30 | return _controller->setResolution(k); |
| 31 | } | 31 | } |
| 32 | 32 | ||
| 33 | float Stars::changeLOD(float fraction, float overalloc, float realloc) { | 33 | float Stars::changeLOD(float fraction, float overalloc, float realloc) { |
| 34 | return float(_ptrController->changeLOD(fraction, overalloc, realloc)); | 34 | return float(_controller->changeLOD(fraction, overalloc, realloc)); |
| 35 | } | 35 | } |
| 36 | 36 | ||
| 37 | void Stars::render(float fovY, float aspect, float nearZ, float alpha) { | 37 | void Stars::render(float fovY, float aspect, float nearZ, float alpha) { |
| @@ -46,7 +46,7 @@ void Stars::render(float fovY, float aspect, float nearZ, float alpha) { · 8 unmodified lines | |||
| 46 | // pull the modelview matrix off the GL stack | 46 | // pull the modelview matrix off the GL stack |
| 47 | glm::mat4 view; glGetFloatv(GL_MODELVIEW_MATRIX, glm::value_ptr(view)); | 47 | glm::mat4 view; glGetFloatv(GL_MODELVIEW_MATRIX, glm::value_ptr(view)); |
| 48 | 48 | ||
| 49 | _ptrController->render(fovDiagonal, aspect, glm::affineInverse(view), alpha); | 49 | _controller->render(fovDiagonal, aspect, glm::affineInverse(view), alpha); |
| 50 | } | 50 | } |
| 51 | 51 | ||
| 52 | 52 | ||