From caa94612a906a49aa25fc342430f4fca43731e48 Mon Sep 17 00:00:00 2001 From: Talha Date: Sat, 14 Dec 2024 11:12:02 +0500 Subject: Added sdl_base (updated) to git --- .gitignore | 0 build.bat | 0 build.sh | 2 +- include/KHR/khrplatform.h | 0 include/SDL2/SDL.h | 0 include/SDL2/SDL_assert.h | 0 include/SDL2/SDL_atomic.h | 0 include/SDL2/SDL_audio.h | 0 include/SDL2/SDL_bits.h | 0 include/SDL2/SDL_blendmode.h | 0 include/SDL2/SDL_clipboard.h | 0 include/SDL2/SDL_config.h | 0 include/SDL2/SDL_cpuinfo.h | 0 include/SDL2/SDL_egl.h | 0 include/SDL2/SDL_endian.h | 0 include/SDL2/SDL_error.h | 0 include/SDL2/SDL_events.h | 0 include/SDL2/SDL_filesystem.h | 0 include/SDL2/SDL_gamecontroller.h | 0 include/SDL2/SDL_gesture.h | 0 include/SDL2/SDL_guid.h | 0 include/SDL2/SDL_haptic.h | 0 include/SDL2/SDL_hidapi.h | 0 include/SDL2/SDL_hints.h | 0 include/SDL2/SDL_joystick.h | 0 include/SDL2/SDL_keyboard.h | 0 include/SDL2/SDL_keycode.h | 0 include/SDL2/SDL_loadso.h | 0 include/SDL2/SDL_locale.h | 0 include/SDL2/SDL_log.h | 0 include/SDL2/SDL_main.h | 0 include/SDL2/SDL_messagebox.h | 0 include/SDL2/SDL_metal.h | 0 include/SDL2/SDL_misc.h | 0 include/SDL2/SDL_mouse.h | 0 include/SDL2/SDL_mutex.h | 0 include/SDL2/SDL_name.h | 0 include/SDL2/SDL_opengl.h | 0 include/SDL2/SDL_opengl_glext.h | 0 include/SDL2/SDL_opengles.h | 0 include/SDL2/SDL_opengles2.h | 0 include/SDL2/SDL_opengles2_gl2.h | 0 include/SDL2/SDL_opengles2_gl2ext.h | 0 include/SDL2/SDL_opengles2_gl2platform.h | 0 include/SDL2/SDL_opengles2_khrplatform.h | 0 include/SDL2/SDL_pixels.h | 0 include/SDL2/SDL_platform.h | 0 include/SDL2/SDL_power.h | 0 include/SDL2/SDL_quit.h | 0 include/SDL2/SDL_rect.h | 0 include/SDL2/SDL_render.h | 0 include/SDL2/SDL_revision.h | 0 include/SDL2/SDL_rwops.h | 0 include/SDL2/SDL_scancode.h | 0 include/SDL2/SDL_sensor.h | 0 include/SDL2/SDL_shape.h | 0 include/SDL2/SDL_stdinc.h | 0 include/SDL2/SDL_surface.h | 0 include/SDL2/SDL_system.h | 0 include/SDL2/SDL_syswm.h | 0 include/SDL2/SDL_test.h | 0 include/SDL2/SDL_test_assert.h | 0 include/SDL2/SDL_test_common.h | 0 include/SDL2/SDL_test_compare.h | 0 include/SDL2/SDL_test_crc32.h | 0 include/SDL2/SDL_test_font.h | 0 include/SDL2/SDL_test_fuzzer.h | 0 include/SDL2/SDL_test_harness.h | 0 include/SDL2/SDL_test_images.h | 0 include/SDL2/SDL_test_log.h | 0 include/SDL2/SDL_test_md5.h | 0 include/SDL2/SDL_test_memory.h | 0 include/SDL2/SDL_test_random.h | 0 include/SDL2/SDL_thread.h | 0 include/SDL2/SDL_timer.h | 0 include/SDL2/SDL_touch.h | 0 include/SDL2/SDL_types.h | 0 include/SDL2/SDL_version.h | 0 include/SDL2/SDL_video.h | 0 include/SDL2/SDL_vulkan.h | 0 include/SDL2/begin_code.h | 0 include/SDL2/close_code.h | 0 include/glad/glad.c | 0 include/glad/glad.h | 0 libs/SDL2/SDL2.lib | Bin libs/SDL2/SDL2main.lib | Bin main.c | 3 ++- 87 files changed, 3 insertions(+), 2 deletions(-) mode change 100644 => 100755 .gitignore mode change 100644 => 100755 build.bat mode change 100644 => 100755 include/KHR/khrplatform.h mode change 100644 => 100755 include/SDL2/SDL.h mode change 100644 => 100755 include/SDL2/SDL_assert.h mode change 100644 => 100755 include/SDL2/SDL_atomic.h mode change 100644 => 100755 include/SDL2/SDL_audio.h mode change 100644 => 100755 include/SDL2/SDL_bits.h mode change 100644 => 100755 include/SDL2/SDL_blendmode.h mode change 100644 => 100755 include/SDL2/SDL_clipboard.h mode change 100644 => 100755 include/SDL2/SDL_config.h mode change 100644 => 100755 include/SDL2/SDL_cpuinfo.h mode change 100644 => 100755 include/SDL2/SDL_egl.h mode change 100644 => 100755 include/SDL2/SDL_endian.h mode change 100644 => 100755 include/SDL2/SDL_error.h mode change 100644 => 100755 include/SDL2/SDL_events.h mode change 100644 => 100755 include/SDL2/SDL_filesystem.h mode change 100644 => 100755 include/SDL2/SDL_gamecontroller.h mode change 100644 => 100755 include/SDL2/SDL_gesture.h mode change 100644 => 100755 include/SDL2/SDL_guid.h mode change 100644 => 100755 include/SDL2/SDL_haptic.h mode change 100644 => 100755 include/SDL2/SDL_hidapi.h mode change 100644 => 100755 include/SDL2/SDL_hints.h mode change 100644 => 100755 include/SDL2/SDL_joystick.h mode change 100644 => 100755 include/SDL2/SDL_keyboard.h mode change 100644 => 100755 include/SDL2/SDL_keycode.h mode change 100644 => 100755 include/SDL2/SDL_loadso.h mode change 100644 => 100755 include/SDL2/SDL_locale.h mode change 100644 => 100755 include/SDL2/SDL_log.h mode change 100644 => 100755 include/SDL2/SDL_main.h mode change 100644 => 100755 include/SDL2/SDL_messagebox.h mode change 100644 => 100755 include/SDL2/SDL_metal.h mode change 100644 => 100755 include/SDL2/SDL_misc.h mode change 100644 => 100755 include/SDL2/SDL_mouse.h mode change 100644 => 100755 include/SDL2/SDL_mutex.h mode change 100644 => 100755 include/SDL2/SDL_name.h mode change 100644 => 100755 include/SDL2/SDL_opengl.h mode change 100644 => 100755 include/SDL2/SDL_opengl_glext.h mode change 100644 => 100755 include/SDL2/SDL_opengles.h mode change 100644 => 100755 include/SDL2/SDL_opengles2.h mode change 100644 => 100755 include/SDL2/SDL_opengles2_gl2.h mode change 100644 => 100755 include/SDL2/SDL_opengles2_gl2ext.h mode change 100644 => 100755 include/SDL2/SDL_opengles2_gl2platform.h mode change 100644 => 100755 include/SDL2/SDL_opengles2_khrplatform.h mode change 100644 => 100755 include/SDL2/SDL_pixels.h mode change 100644 => 100755 include/SDL2/SDL_platform.h mode change 100644 => 100755 include/SDL2/SDL_power.h mode change 100644 => 100755 include/SDL2/SDL_quit.h mode change 100644 => 100755 include/SDL2/SDL_rect.h mode change 100644 => 100755 include/SDL2/SDL_render.h mode change 100644 => 100755 include/SDL2/SDL_revision.h mode change 100644 => 100755 include/SDL2/SDL_rwops.h mode change 100644 => 100755 include/SDL2/SDL_scancode.h mode change 100644 => 100755 include/SDL2/SDL_sensor.h mode change 100644 => 100755 include/SDL2/SDL_shape.h mode change 100644 => 100755 include/SDL2/SDL_stdinc.h mode change 100644 => 100755 include/SDL2/SDL_surface.h mode change 100644 => 100755 include/SDL2/SDL_system.h mode change 100644 => 100755 include/SDL2/SDL_syswm.h mode change 100644 => 100755 include/SDL2/SDL_test.h mode change 100644 => 100755 include/SDL2/SDL_test_assert.h mode change 100644 => 100755 include/SDL2/SDL_test_common.h mode change 100644 => 100755 include/SDL2/SDL_test_compare.h mode change 100644 => 100755 include/SDL2/SDL_test_crc32.h mode change 100644 => 100755 include/SDL2/SDL_test_font.h mode change 100644 => 100755 include/SDL2/SDL_test_fuzzer.h mode change 100644 => 100755 include/SDL2/SDL_test_harness.h mode change 100644 => 100755 include/SDL2/SDL_test_images.h mode change 100644 => 100755 include/SDL2/SDL_test_log.h mode change 100644 => 100755 include/SDL2/SDL_test_md5.h mode change 100644 => 100755 include/SDL2/SDL_test_memory.h mode change 100644 => 100755 include/SDL2/SDL_test_random.h mode change 100644 => 100755 include/SDL2/SDL_thread.h mode change 100644 => 100755 include/SDL2/SDL_timer.h mode change 100644 => 100755 include/SDL2/SDL_touch.h mode change 100644 => 100755 include/SDL2/SDL_types.h mode change 100644 => 100755 include/SDL2/SDL_version.h mode change 100644 => 100755 include/SDL2/SDL_video.h mode change 100644 => 100755 include/SDL2/SDL_vulkan.h mode change 100644 => 100755 include/SDL2/begin_code.h mode change 100644 => 100755 include/SDL2/close_code.h mode change 100644 => 100755 include/glad/glad.c mode change 100644 => 100755 include/glad/glad.h mode change 100644 => 100755 libs/SDL2/SDL2.lib mode change 100644 => 100755 libs/SDL2/SDL2main.lib mode change 100644 => 100755 main.c diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/build.bat b/build.bat old mode 100644 new mode 100755 diff --git a/build.sh b/build.sh index a888b43..09ca0cd 100755 --- a/build.sh +++ b/build.sh @@ -11,7 +11,7 @@ include_opts="-I $include_path" files="main.c $include_path/glad/glad.c" build_opts="$build_dir/main" -lib_path="lib/SDL2" +lib_path="libs/SDL2" link_opts="-L $lib_path -lSDL2" build_command="g++ -g -Og $include_opts $files $link_opts -o $build_opts" diff --git a/include/KHR/khrplatform.h b/include/KHR/khrplatform.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL.h b/include/SDL2/SDL.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_assert.h b/include/SDL2/SDL_assert.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_atomic.h b/include/SDL2/SDL_atomic.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_audio.h b/include/SDL2/SDL_audio.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_bits.h b/include/SDL2/SDL_bits.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_blendmode.h b/include/SDL2/SDL_blendmode.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_clipboard.h b/include/SDL2/SDL_clipboard.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_config.h b/include/SDL2/SDL_config.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_cpuinfo.h b/include/SDL2/SDL_cpuinfo.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_egl.h b/include/SDL2/SDL_egl.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_endian.h b/include/SDL2/SDL_endian.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_error.h b/include/SDL2/SDL_error.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_events.h b/include/SDL2/SDL_events.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_filesystem.h b/include/SDL2/SDL_filesystem.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_gamecontroller.h b/include/SDL2/SDL_gamecontroller.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_gesture.h b/include/SDL2/SDL_gesture.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_guid.h b/include/SDL2/SDL_guid.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_haptic.h b/include/SDL2/SDL_haptic.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_hidapi.h b/include/SDL2/SDL_hidapi.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_hints.h b/include/SDL2/SDL_hints.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_joystick.h b/include/SDL2/SDL_joystick.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_keyboard.h b/include/SDL2/SDL_keyboard.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_keycode.h b/include/SDL2/SDL_keycode.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_loadso.h b/include/SDL2/SDL_loadso.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_locale.h b/include/SDL2/SDL_locale.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_log.h b/include/SDL2/SDL_log.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_main.h b/include/SDL2/SDL_main.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_messagebox.h b/include/SDL2/SDL_messagebox.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_metal.h b/include/SDL2/SDL_metal.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_misc.h b/include/SDL2/SDL_misc.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_mouse.h b/include/SDL2/SDL_mouse.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_mutex.h b/include/SDL2/SDL_mutex.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_name.h b/include/SDL2/SDL_name.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_opengl.h b/include/SDL2/SDL_opengl.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_opengl_glext.h b/include/SDL2/SDL_opengl_glext.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_opengles.h b/include/SDL2/SDL_opengles.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_opengles2.h b/include/SDL2/SDL_opengles2.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_opengles2_gl2.h b/include/SDL2/SDL_opengles2_gl2.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_opengles2_gl2ext.h b/include/SDL2/SDL_opengles2_gl2ext.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_opengles2_gl2platform.h b/include/SDL2/SDL_opengles2_gl2platform.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_opengles2_khrplatform.h b/include/SDL2/SDL_opengles2_khrplatform.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_pixels.h b/include/SDL2/SDL_pixels.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_platform.h b/include/SDL2/SDL_platform.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_power.h b/include/SDL2/SDL_power.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_quit.h b/include/SDL2/SDL_quit.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_rect.h b/include/SDL2/SDL_rect.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_render.h b/include/SDL2/SDL_render.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_revision.h b/include/SDL2/SDL_revision.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_rwops.h b/include/SDL2/SDL_rwops.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_scancode.h b/include/SDL2/SDL_scancode.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_sensor.h b/include/SDL2/SDL_sensor.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_shape.h b/include/SDL2/SDL_shape.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_stdinc.h b/include/SDL2/SDL_stdinc.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_surface.h b/include/SDL2/SDL_surface.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_system.h b/include/SDL2/SDL_system.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_syswm.h b/include/SDL2/SDL_syswm.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_test.h b/include/SDL2/SDL_test.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_test_assert.h b/include/SDL2/SDL_test_assert.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_test_common.h b/include/SDL2/SDL_test_common.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_test_compare.h b/include/SDL2/SDL_test_compare.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_test_crc32.h b/include/SDL2/SDL_test_crc32.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_test_font.h b/include/SDL2/SDL_test_font.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_test_fuzzer.h b/include/SDL2/SDL_test_fuzzer.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_test_harness.h b/include/SDL2/SDL_test_harness.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_test_images.h b/include/SDL2/SDL_test_images.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_test_log.h b/include/SDL2/SDL_test_log.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_test_md5.h b/include/SDL2/SDL_test_md5.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_test_memory.h b/include/SDL2/SDL_test_memory.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_test_random.h b/include/SDL2/SDL_test_random.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_thread.h b/include/SDL2/SDL_thread.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_timer.h b/include/SDL2/SDL_timer.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_touch.h b/include/SDL2/SDL_touch.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_types.h b/include/SDL2/SDL_types.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_version.h b/include/SDL2/SDL_version.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_video.h b/include/SDL2/SDL_video.h old mode 100644 new mode 100755 diff --git a/include/SDL2/SDL_vulkan.h b/include/SDL2/SDL_vulkan.h old mode 100644 new mode 100755 diff --git a/include/SDL2/begin_code.h b/include/SDL2/begin_code.h old mode 100644 new mode 100755 diff --git a/include/SDL2/close_code.h b/include/SDL2/close_code.h old mode 100644 new mode 100755 diff --git a/include/glad/glad.c b/include/glad/glad.c old mode 100644 new mode 100755 diff --git a/include/glad/glad.h b/include/glad/glad.h old mode 100644 new mode 100755 diff --git a/libs/SDL2/SDL2.lib b/libs/SDL2/SDL2.lib old mode 100644 new mode 100755 diff --git a/libs/SDL2/SDL2main.lib b/libs/SDL2/SDL2main.lib old mode 100644 new mode 100755 diff --git a/main.c b/main.c old mode 100644 new mode 100755 index e5e0f51..434eee8 --- a/main.c +++ b/main.c @@ -1,6 +1,7 @@ #include #include #include +#include int main(int argc, char *argv[]) { @@ -49,7 +50,7 @@ int main(int argc, char *argv[]) "#version 330 core\n" "out vec4 fragColor;" "void main() {" - " fragColor = vec4(1.0, 0.0, 0.0, 1.0);" + " fragColor = vec4(0.6, 0.5, 0.8, 1.0);" "}"; GLuint vertexShader = glCreateShader(GL_VERTEX_SHADER); -- cgit v1.2.3