This commit is contained in:
2026-03-02 14:44:27 +03:00
commit c0ab7e843c
24 changed files with 39 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
build
+19
View File
@@ -0,0 +1,19 @@
cmake_minimum_required(VERSION 3.16)
project(SortLab LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
include(FetchContent)
FetchContent_Declare(
SFML
GIT_REPOSITORY https://github.com/SFML/SFML.git
GIT_TAG 2.6.x
)
FetchContent_MakeAvailable(SFML)
add_executable(SortLab
src/main.cpp
)
target_link_libraries(SortLab PRIVATE sfml-graphics sfml-window sfml-system)
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
View File
+19
View File
@@ -0,0 +1,19 @@
#include <SFML/Graphics.hpp>
int main() {
sf::RenderWindow window(sf::VideoMode(1280, 720), "SortLab");
while (window.isOpen()) {
sf::Event event{};
while (window.pollEvent(event)) {
if (event.type == sf::Event::Closed) {
window.close();
}
}
window.clear(sf::Color(18, 18, 22));
window.display();
}
return 0;
}
View File
View File
View File
View File
View File