Added glm, fbo, shader, texture and texture generator
This commit is contained in:
@@ -1,23 +1,20 @@
|
||||
#include "peripherals_glfw.h"
|
||||
|
||||
|
||||
int main() {
|
||||
acidrain::peripherals_glfw peripherals;
|
||||
peripherals.init();
|
||||
acidrain::peripherals_glfw peripherals;
|
||||
peripherals.init();
|
||||
|
||||
glDisable(GL_DEPTH_TEST);
|
||||
glDisable(GL_DEPTH_TEST);
|
||||
|
||||
double alpha = 0.0;
|
||||
// while (!glfwWindowShouldClose(window)) {
|
||||
while (!peripherals.should_close()) {
|
||||
alpha += 0.01;
|
||||
if (alpha > 1.0) alpha = 0.0;
|
||||
double alpha = 0.0;
|
||||
while (!peripherals.should_close()) {
|
||||
alpha += 0.01;
|
||||
if (alpha > 1.0) alpha = 0.0;
|
||||
|
||||
glClearColor(0.0 * alpha, 0.1 * alpha, 1.0 * alpha, 1 * alpha);
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
|
||||
peripherals.swap_buffers();
|
||||
peripherals.poll_events();
|
||||
}
|
||||
glClearColor(0.0 * alpha, 0.1 * alpha, 1.0 * alpha, 1 * alpha);
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
|
||||
peripherals.swap_buffers();
|
||||
peripherals.poll_events();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user