-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
203 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#pragma once | ||
|
||
#include <GL/glut.h> | ||
|
||
|
||
class Star { | ||
|
||
public: | ||
|
||
float size = 3; | ||
float displace = 0; | ||
// float displaceY = 0; | ||
|
||
GLfloat vertices[2] = { | ||
0.0, 0.0, | ||
}; | ||
|
||
// color format: CMY | ||
GLfloat colorsOff[4] = { | ||
0.0, 0.0, 0.0, 1.0 | ||
}; | ||
|
||
GLfloat colorsOn[4] = { | ||
1.0, 0.0, 0.0, 1.0 | ||
}; | ||
|
||
// bar indices | ||
GLubyte indices[2] = { | ||
0, 1, | ||
}; | ||
|
||
// initialize barScale | ||
// void initBarScale() { | ||
// for ( int i = 0; i < numBar; i++) { | ||
// barScale[i] = 0; | ||
// } | ||
// } | ||
|
||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#pragma once | ||
|
||
#include <GL/glut.h> | ||
|
||
|
||
class Sky { | ||
|
||
public: | ||
// const int count = 30; // number of bars | ||
// float scaleBar; // value to scale the bars | ||
// float barScale[]; | ||
|
||
GLfloat vertices[8] = { | ||
-1, 1, | ||
-1, 1, | ||
-1, -1, | ||
-1, -1, | ||
}; | ||
|
||
// color format: CMY | ||
GLfloat colors[12] = { | ||
// 0.6275, 0.7059, 0.2863, // purple | ||
// 0.6275, 0.7059, 0.2863, | ||
// 0.1451, 0.0000, 0.5098, // green | ||
// 0.1451, 0.0000, 0.5098, | ||
// 0.2314, 0.2824, 0.2039, // light purple | ||
// 0.2314, 0.2824, 0.2039, | ||
1.0, 0.0, 0.0, //white | ||
1.0, 0.0, 0.0, //white | ||
1.0, 0.0, 0.0, //white | ||
1.0, 0.0, 0.0, //white | ||
// 1.0, 1.0, 1.0, | ||
// 0.4078, 0.0824, 0.1765, // mint bllue | ||
// 0.4078, 0.0824, 0.1765, | ||
}; | ||
|
||
// bar indices | ||
GLubyte indices[4] = { | ||
0, 1, | ||
2, 3, | ||
}; | ||
|
||
// initialize barScale | ||
// void initBarScale() { | ||
// for ( int i = 0; i < numBar; i++) { | ||
// barScale[i] = 0; | ||
// } | ||
// } | ||
|
||
|
||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.