File tree Expand file tree Collapse file tree 4 files changed +13
-13
lines changed
Expand file tree Collapse file tree 4 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ void APIENTRY glDebugOutput(GLenum source,
6161void Layer::init ()
6262{
6363 if (SDL_Init (SDL_INIT_VIDEO) < 0 ) printf (" SDL could not initialize! SDL_Error: %s\n " , SDL_GetError ());
64- SDL_GL_SetAttribute (SDL_GL_CONTEXT_MAJOR_VERSION, 4 );
64+ SDL_GL_SetAttribute (SDL_GL_CONTEXT_MAJOR_VERSION, 3 );
6565 SDL_GL_SetAttribute (SDL_GL_CONTEXT_MINOR_VERSION, 3 );
6666 SDL_GL_SetAttribute (SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE);
6767 SDL_GL_SetAttribute (SDL_GL_DOUBLEBUFFER, 1 );
@@ -88,7 +88,7 @@ void Layer::init()
8888 std::cin.get ();
8989 }
9090
91- {
91+ if constexpr ( false ) {
9292 int flags; glGetIntegerv (GL_CONTEXT_FLAGS, &flags);
9393 if (flags & GL_CONTEXT_FLAG_DEBUG_BIT)
9494 {
Original file line number Diff line number Diff line change @@ -6,19 +6,19 @@ out vec2 f_screenCoord;
66uniform vec2 u_offset;
77uniform vec3 u_rotation_width_height;
88
9- vec2 poses[4 ] = {
9+ vec2 poses[4 ] = vec2 [ 4 ](
1010 vec2 (- 0 .5f,- 0 .5f),
1111 vec2 (- 0 .5f,0 .5f),
1212 vec2 (0 .5f,0 .5f),
1313 vec2 (0 .5f,- 0 .5f)
14- } ;
14+ ) ;
1515
16- vec2 texCoords[4 ] = {
16+ vec2 texCoords[4 ] = vec2 [ 4 ](
1717 vec2 (1 .f,1 .f),
1818 vec2 (1 .f,0 .f),
1919 vec2 (0 .f,0 .f),
2020 vec2 (0 .f,1 .f)
21- } ;
21+ ) ;
2222
2323void main()
2424{
Original file line number Diff line number Diff line change @@ -7,12 +7,12 @@ out vec2 f_screenCoord;
77out float f_texture;
88out float f_z;
99
10- vec2 texPos[4 ] = {
11- { 0 .f, 1 .f} ,
12- { 0 .f, 0 .f} ,
13- { 1 .f, 0 .f} ,
14- { 1 .f, 1 .f},
15- } ;
10+ vec2 texPos[4 ] = vec2 [ 4 ](
11+ vec2 ( 0 .f, 1 .f) ,
12+ vec2 ( 0 .f, 0 .f) ,
13+ vec2 ( 1 .f, 0 .f) ,
14+ vec2 ( 1 .f, 1 .f)
15+ ) ;
1616
1717void main()
1818{
Original file line number Diff line number Diff line change 11#pragma once
22
3- constexpr inline bool DRAW_HB = true ; // draw hitboxes?s
3+ constexpr inline bool DRAW_HB = false ; // draw hitboxes?s
44// R for hot reload.
55constexpr inline bool DEV_TOOLS = true ; // allow development stuff
66
You can’t perform that action at this time.
0 commit comments