Skip to content

Commit

Permalink
chapters are added
Browse files Browse the repository at this point in the history
  • Loading branch information
KeremTAN committed Sep 8, 2023
1 parent 455764e commit 3ee0279
Show file tree
Hide file tree
Showing 509 changed files with 79,252 additions and 1 deletion.
22 changes: 22 additions & 0 deletions Chapters/Chapter-0/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",

"configurations": [
{
"name": "(lldb) Başlat",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/Udemy-OpenGL",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": true,
"MIMode": "lldb",
"preLaunchTask": "Make"
}
]
}
69 changes: 69 additions & 0 deletions Chapters/Chapter-0/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"files.associations": {
"iostream": "cpp",
"__bit_reference": "cpp",
"__bits": "cpp",
"__config": "cpp",
"__debug": "cpp",
"__errc": "cpp",
"__hash_table": "cpp",
"__locale": "cpp",
"__mutex_base": "cpp",
"__node_handle": "cpp",
"__nullptr": "cpp",
"__split_buffer": "cpp",
"__string": "cpp",
"__threading_support": "cpp",
"__tuple": "cpp",
"array": "cpp",
"atomic": "cpp",
"bit": "cpp",
"bitset": "cpp",
"cctype": "cpp",
"chrono": "cpp",
"clocale": "cpp",
"cmath": "cpp",
"compare": "cpp",
"complex": "cpp",
"concepts": "cpp",
"cstdarg": "cpp",
"cstddef": "cpp",
"cstdint": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"cstring": "cpp",
"ctime": "cpp",
"cwchar": "cpp",
"cwctype": "cpp",
"exception": "cpp",
"initializer_list": "cpp",
"ios": "cpp",
"iosfwd": "cpp",
"istream": "cpp",
"limits": "cpp",
"locale": "cpp",
"memory": "cpp",
"mutex": "cpp",
"new": "cpp",
"optional": "cpp",
"ostream": "cpp",
"ratio": "cpp",
"sstream": "cpp",
"stdexcept": "cpp",
"streambuf": "cpp",
"string": "cpp",
"string_view": "cpp",
"system_error": "cpp",
"tuple": "cpp",
"type_traits": "cpp",
"typeinfo": "cpp",
"unordered_map": "cpp",
"variant": "cpp",
"vector": "cpp",
"__functional_base": "cpp",
"algorithm": "cpp",
"functional": "cpp",
"iterator": "cpp",
"utility": "cpp"
}
}
File renamed without changes.
32 changes: 32 additions & 0 deletions Chapters/Chapter-0/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
cmake_minimum_required(VERSION 2.8)

project(Udemy-OpenGL)

set (PROJECT_DIR ${CMAKE_SOURCE_DIR})

set (PROJECT_INCLUDE_DIR ${PROJECT_DIR}/include)

set (PROJECT_SOURCE_DIR ${PROJECT_DIR}/src)

set(PROJECT_SOURCES
${PROJECT_SOURCE_DIR}/main.cpp)

set(PROJECT_HEADERS
${PROJECT_INCLUDE_DIR}/GLFW/
${PROJECT_INCLUDE_DIR}/GLEW/
)

file(GLOB PROJECT_HEADERS
${PROJECT_INCLUDE_DIRS}/*.h
)
include_directories(${PROJECT_INCLUDE_DIR})

link_libraries(
${PROJECT_DIR}/lib/libglfw.3.3.dylib
${PROJECT_DIR}/lib/libGLEW.dylib
"-framework OpenGL" # OpenGL lib for mac
# -lGL # OpenGL lib for linux
# -lopengl32 # OpenGL lib for windows
)

add_executable(${PROJECT_NAME} ${PROJECT_SOURCES})
Loading

0 comments on commit 3ee0279

Please sign in to comment.