- First commit to gitea
This commit is contained in:
17
screen.cpp
Normal file
17
screen.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#include "screen.h"
|
||||
|
||||
#include <SDL2/SDL_opengl.h>
|
||||
#include "application.h"
|
||||
|
||||
float SCREEN_WIDTH = 1280;
|
||||
float SCREEN_HEIGHT = 700;
|
||||
|
||||
namespace Screen
|
||||
{
|
||||
SDL_Window* gWindow = nullptr;
|
||||
|
||||
void Beep(unsigned char r, unsigned char g, unsigned char b){
|
||||
glClearColor(float(r)/255.0f, float(g)/255.0f, float(b)/255.0f, 1.0f);
|
||||
Application::NeedsUpdate(2);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user