mirror of
https://github.com/PoetryInCode/simple-rigid-sim.git
synced 2025-06-09 02:53:10 -04:00
formatting and gitignore
This commit is contained in:
parent
2f278ee26a
commit
8300f18761
2
.gitignore
vendored
2
.gitignore
vendored
@ -5,3 +5,5 @@
|
||||
.vscode
|
||||
|
||||
bin/*
|
||||
|
||||
.ccls-cache/*
|
||||
|
@ -1,17 +1,17 @@
|
||||
#include "Window.h"
|
||||
|
||||
int Window::setClearColor(Color c) {
|
||||
void Window::setClearColor(Color c) {
|
||||
clearColor = &c;
|
||||
}
|
||||
|
||||
int Window::setClearColor(uint8_t r,Uint8 g,Uint8 b,Uint8 a) {
|
||||
void Window::setClearColor(uint8_t r,Uint8 g,Uint8 b,Uint8 a) {
|
||||
clearColor[0].r = r;
|
||||
clearColor[0].g = g;
|
||||
clearColor[0].b = b;
|
||||
clearColor[0].a = a;
|
||||
}
|
||||
|
||||
int Window::initUI() {
|
||||
void Window::initUI() {
|
||||
if(SDL_Init(SDL_INIT_EVERYTHING) != 0) {
|
||||
fprintf(stderr,"\033[92m[ ERROR ] Could not initialize SDL:\n%s\n", SDL_GetError());
|
||||
}
|
||||
|
@ -7,8 +7,8 @@ class Window {
|
||||
Color *clearColor = new Color(BLACK);
|
||||
SDL_Window *win;
|
||||
SDL_Renderer *rend;
|
||||
virtual int update() {};
|
||||
int initUI() {};
|
||||
int setClearColor(Color c) {};
|
||||
int setClearColor(Uint8 r,Uint8 g,Uint8 b,Uint8 a) {};
|
||||
virtual int update();
|
||||
void initUI();
|
||||
void setClearColor(Color c);
|
||||
void setClearColor(Uint8 r,Uint8 g,Uint8 b,Uint8 a);
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user