48 lines
754 B
C++
48 lines
754 B
C++
|
|
/* Author: Josh Holtrop
|
|
* DornerWorks screensaver
|
|
*/
|
|
|
|
#ifndef LIGHTBOUNCE_H
|
|
#define LIGHTBOUNCE_H
|
|
|
|
#include "SSMain.h"
|
|
#include "SSMode.h"
|
|
#include "LogoBox.h"
|
|
#include <vector>
|
|
using namespace std;
|
|
|
|
class LightBounceBox
|
|
{
|
|
public:
|
|
LightBounceBox(LogoBox * lb,
|
|
float x, float y, float z,
|
|
float xr, float yr, float zr);
|
|
~LightBounceBox();
|
|
void draw() { glCallList(m_dl); }
|
|
float dist;
|
|
|
|
private:
|
|
float x;
|
|
float y;
|
|
float z;
|
|
float xr;
|
|
float yr;
|
|
float zr;
|
|
|
|
GLuint m_dl;
|
|
};
|
|
|
|
class LightBounce : public SSMode
|
|
{
|
|
public:
|
|
LightBounce(SSMain * _SSMain);
|
|
~LightBounce();
|
|
void update();
|
|
protected:
|
|
vector<LightBounceBox *> m_boxes;
|
|
LogoBox m_logoBox;
|
|
};
|
|
|
|
#endif
|