Skip to content
Snippets Groups Projects
Commit b6c205ff authored by Saif Eddine Askri's avatar Saif Eddine Askri
Browse files

praktikum1_1.1

parent b9bebb5a
Branches
No related tags found
No related merge requests found
Showing
with 4547 additions and 0 deletions
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
<?xml version="1.0" encoding="UTF-8"?>
<module classpath="CMake" type="CPP_MODULE" version="4" />
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CMakeWorkspace" PROJECT_DIR="$PROJECT_DIR$" />
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/OpenGL_Praktikum.iml" filepath="$PROJECT_DIR$/.idea/OpenGL_Praktikum.iml" />
</modules>
</component>
</project>
\ No newline at end of file
cmake_minimum_required(VERSION 3.0)
project(OpenGL_Praktikum)
set(SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/src/main.cpp")
set(INCLUDES "${CMAKE_CURRENT_SOURCE_DIR}/src")
##-------------------------------add your source files here-------------------------------------------------------------
## new source paths must be added to the include list, if contained headers are used elsewhere!
## Framework/Assets
list(APPEND SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/src/Framework/Assets/AssetManager.h")
list(APPEND SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/src/Framework/Assets/AssetManager.cpp")
list(APPEND SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/src/Framework/Assets/ShaderProgram.h")
list(APPEND SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/src/Framework/Assets/ShaderProgram.cpp")
# add that directory to include list:
list(APPEND INCLUDES "${CMAKE_CURRENT_SOURCE_DIR}/src/Framework/Assets")
## Framework/SceneElements
list(APPEND SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/src/Framework/SceneElements/Transform.h")
list(APPEND SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/src/Framework/SceneElements/Transform.cpp")
# add that directory to include list:
list(APPEND INCLUDES "${CMAKE_CURRENT_SOURCE_DIR}/src/Framework/SceneElements")
## Window
list(APPEND SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/src/Game/Window.h")
list(APPEND SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/src/Game/Window.cpp")
list(APPEND SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/src/Game/Scene.h")
list(APPEND SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/src/Game/Scene.cpp")
# add that directory to include list:
list(APPEND INCLUDES "${CMAKE_CURRENT_SOURCE_DIR}/src/Game")
##---------------------------------framework files----------------------------------------------------------------------
list(APPEND SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/framework/CommonTypes.h")
list(APPEND SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/framework/fw_config.h")
list(APPEND SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/framework/OpenGLWindow.h")
list(APPEND SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/framework/OpenGLWindow.cpp")
list(APPEND SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/framework/glerror.h")
list(APPEND SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/framework/glerror.cpp")
list(APPEND SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/framework/Input.h")
list(APPEND SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/framework/Input.cpp")
list(APPEND SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/framework/libheaders.h")
list(APPEND SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/framework/OBJLoader.h")
list(APPEND SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/framework/OBJLoader.cpp")
# add that directory to include list:
list(APPEND INCLUDES "${CMAKE_CURRENT_SOURCE_DIR}/framework")
##--------------------------------external dependencies-----------------------------------------------------------------
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/libs")
##--------------------------------executable target---------------------------------------------------------------------
set(CMAKE_CXX_STANDARD 11)
add_executable(OpenGL_Praktikum ${SOURCES})
target_include_directories(
OpenGL_Praktikum
PRIVATE ${INCLUDES}
)
target_link_libraries(OpenGL_Praktikum PUBLIC cga2fw_external_dependencies)
##-------------------------------copy assets to output------------------------------------------------------------------
file(COPY "assets" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")
\ No newline at end of file
#version 330 core
in vec3 colorVS;
//fragment shader output
out vec4 color;
void main(){
color = vec4(colorVS.x, colorVS.y, colorVS.z, 1.0);
}
#version 330 core
layout (location = 0) in vec2 pos;
layout (location = 1) in vec3 colorRGB;
out vec3 colorVS;
void main(){
colorVS = colorRGB;
gl_Position = vec4(pos.x, pos.y, 0.0, 1.0);
}
This diff is collapsed.
This diff is collapsed.
{
"configurations" :
[
{
"directories" :
[
{
"build" : ".",
"childIndexes" :
[
1
],
"hasInstallRule" : true,
"jsonFile" : "directory-.-Debug-d0094a50bb2071803777.json",
"minimumCMakeVersion" :
{
"string" : "3.0"
},
"projectIndex" : 0,
"source" : ".",
"targetIndexes" :
[
0
]
},
{
"build" : "libs",
"childIndexes" :
[
2,
10,
12,
13
],
"hasInstallRule" : true,
"jsonFile" : "directory-libs-Debug-dd7a5ca29a7a50124f40.json",
"minimumCMakeVersion" :
{
"string" : "3.0"
},
"parentIndex" : 0,
"projectIndex" : 1,
"source" : "libs"
},
{
"build" : "libs/glm-master",
"childIndexes" :
[
3,
4
],
"hasInstallRule" : true,
"jsonFile" : "directory-libs.glm-master-Debug-38245cd548274a3780a4.json",
"minimumCMakeVersion" :
{
"string" : "3.2"
},
"parentIndex" : 1,
"projectIndex" : 2,
"source" : "libs/glm-master",
"targetIndexes" :
[
6
]
},
{
"build" : "libs/glm-master/glm",
"jsonFile" : "directory-libs.glm-master.glm-Debug-3d3739f3be49fb05794d.json",
"minimumCMakeVersion" :
{
"string" : "3.2"
},
"parentIndex" : 2,
"projectIndex" : 2,
"source" : "libs/glm-master/glm",
"targetIndexes" :
[
4
]
},
{
"build" : "libs/glm-master/test",
"childIndexes" :
[
5,
6,
7,
8,
9
],
"jsonFile" : "directory-libs.glm-master.test-Debug-8ffc0e6c8a42f77bc3a4.json",
"minimumCMakeVersion" :
{
"string" : "3.2"
},
"parentIndex" : 2,
"projectIndex" : 2,
"source" : "libs/glm-master/test"
},
{
"build" : "libs/glm-master/test/bug",
"jsonFile" : "directory-libs.glm-master.test.bug-Debug-e2827bbc48fa6909f11d.json",
"minimumCMakeVersion" :
{
"string" : "3.2"
},
"parentIndex" : 4,
"projectIndex" : 2,
"source" : "libs/glm-master/test/bug"
},
{
"build" : "libs/glm-master/test/core",
"jsonFile" : "directory-libs.glm-master.test.core-Debug-8d32aa73bd101bf35c21.json",
"minimumCMakeVersion" :
{
"string" : "3.2"
},
"parentIndex" : 4,
"projectIndex" : 2,
"source" : "libs/glm-master/test/core"
},
{
"build" : "libs/glm-master/test/ext",
"jsonFile" : "directory-libs.glm-master.test.ext-Debug-445b23716576bf0badf4.json",
"minimumCMakeVersion" :
{
"string" : "3.2"
},
"parentIndex" : 4,
"projectIndex" : 2,
"source" : "libs/glm-master/test/ext"
},
{
"build" : "libs/glm-master/test/gtc",
"jsonFile" : "directory-libs.glm-master.test.gtc-Debug-1b2375b30eb11ce8d38e.json",
"minimumCMakeVersion" :
{
"string" : "3.2"
},
"parentIndex" : 4,
"projectIndex" : 2,
"source" : "libs/glm-master/test/gtc"
},
{
"build" : "libs/glm-master/test/gtx",
"jsonFile" : "directory-libs.glm-master.test.gtx-Debug-d2a165666ae09b26699a.json",
"minimumCMakeVersion" :
{
"string" : "3.2"
},
"parentIndex" : 4,
"projectIndex" : 2,
"source" : "libs/glm-master/test/gtx"
},
{
"build" : "libs/glfw-3.2.1",
"childIndexes" :
[
11
],
"jsonFile" : "directory-libs.glfw-3.2.1-Debug-83469fd7cf4feeb2c6ca.json",
"minimumCMakeVersion" :
{
"string" : "2.8.12"
},
"parentIndex" : 1,
"projectIndex" : 3,
"source" : "libs/glfw-3.2.1"
},
{
"build" : "libs/glfw-3.2.1/src",
"jsonFile" : "directory-libs.glfw-3.2.1.src-Debug-1b5fa04cb60914702439.json",
"minimumCMakeVersion" :
{
"string" : "2.8.12"
},
"parentIndex" : 10,
"projectIndex" : 3,
"source" : "libs/glfw-3.2.1/src",
"targetIndexes" :
[
3
]
},
{
"build" : "libs/glew-2.1.0/build/cmake",
"hasInstallRule" : true,
"jsonFile" : "directory-libs.glew-2.1.0.build.cmake-Debug-d666a0b6d76017be8ba7.json",
"minimumCMakeVersion" :
{
"string" : "2.8.12"
},
"parentIndex" : 1,
"projectIndex" : 4,
"source" : "libs/glew-2.1.0/build/cmake",
"targetIndexes" :
[
1,
2
]
},
{
"build" : "libs/stb",
"jsonFile" : "directory-libs.stb-Debug-22d2db156c1ba2042e7b.json",
"minimumCMakeVersion" :
{
"string" : "3.0"
},
"parentIndex" : 1,
"projectIndex" : 5,
"source" : "libs/stb",
"targetIndexes" :
[
5
]
}
],
"name" : "Debug",
"projects" :
[
{
"childIndexes" :
[
1
],
"directoryIndexes" :
[
0
],
"name" : "OpenGL_Praktikum",
"targetIndexes" :
[
0
]
},
{
"childIndexes" :
[
2,
3,
4,
5
],
"directoryIndexes" :
[
1
],
"name" : "external_dependencies",
"parentIndex" : 0
},
{
"directoryIndexes" :
[
2,
3,
4,
5,
6,
7,
8,
9
],
"name" : "glm",
"parentIndex" : 1,
"targetIndexes" :
[
4,
6
]
},
{
"directoryIndexes" :
[
10,
11
],
"name" : "GLFW",
"parentIndex" : 1,
"targetIndexes" :
[
3
]
},
{
"directoryIndexes" :
[
12
],
"name" : "glew",
"parentIndex" : 1,
"targetIndexes" :
[
1,
2
]
},
{
"directoryIndexes" :
[
13
],
"name" : "stb_lib",
"parentIndex" : 1,
"targetIndexes" :
[
5
]
}
],
"targets" :
[
{
"directoryIndex" : 0,
"id" : "OpenGL_Praktikum::@6890427a1f51a3e7e1df",
"jsonFile" : "target-OpenGL_Praktikum-Debug-d725da1f4a26801b3c65.json",
"name" : "OpenGL_Praktikum",
"projectIndex" : 0
},
{
"directoryIndex" : 12,
"id" : "glew::@717d470b011500e00557",
"jsonFile" : "target-glew-Debug-ae91061d6bbd87c56b2f.json",
"name" : "glew",
"projectIndex" : 4
},
{
"directoryIndex" : 12,
"id" : "glew_s::@717d470b011500e00557",
"jsonFile" : "target-glew_s-Debug-009adb015117d5ac49bb.json",
"name" : "glew_s",
"projectIndex" : 4
},
{
"directoryIndex" : 11,
"id" : "glfw::@3be6e5b4e7ef208431a5",
"jsonFile" : "target-glfw-Debug-6cdb9d945069c3d265bf.json",
"name" : "glfw",
"projectIndex" : 3
},
{
"directoryIndex" : 3,
"id" : "glm_dummy::@c4b06e10c1177513689b",
"jsonFile" : "target-glm_dummy-Debug-6fc923c9d49c88ebf3c1.json",
"name" : "glm_dummy",
"projectIndex" : 2
},
{
"directoryIndex" : 13,
"id" : "stb::@9a2ae61009350e897074",
"jsonFile" : "target-stb-Debug-4c5e0f7780c4d9142526.json",
"name" : "stb",
"projectIndex" : 5
},
{
"directoryIndex" : 2,
"id" : "uninstall::@b5e8752a874fdca4f5aa",
"jsonFile" : "target-uninstall-Debug-284c8c93871d38da08d8.json",
"name" : "uninstall",
"projectIndex" : 2
}
]
}
],
"kind" : "codemodel",
"paths" :
{
"build" : "C:/Users/saifa/Desktop/Visual Computing/OpenGL_Praktikum/cmake-build-debug",
"source" : "C:/Users/saifa/Desktop/Visual Computing/OpenGL_Praktikum"
},
"version" :
{
"major" : 2,
"minor" : 6
}
}
{
"backtraceGraph" :
{
"commands" : [],
"files" : [],
"nodes" : []
},
"installers" : [],
"paths" :
{
"build" : ".",
"source" : "."
}
}
{
"backtraceGraph" :
{
"commands" : [],
"files" : [],
"nodes" : []
},
"installers" : [],
"paths" :
{
"build" : "libs",
"source" : "libs"
}
}
{
"backtraceGraph" :
{
"commands" :
[
"install"
],
"files" :
[
"libs/glew-2.1.0/build/cmake/CMakeLists.txt"
],
"nodes" :
[
{
"file" : 0
},
{
"command" : 0,
"file" : 0,
"line" : 156,
"parent" : 0
},
{
"command" : 0,
"file" : 0,
"line" : 205,
"parent" : 0
},
{
"command" : 0,
"file" : 0,
"line" : 217,
"parent" : 0
},
{
"command" : 0,
"file" : 0,
"line" : 224,
"parent" : 0
},
{
"command" : 0,
"file" : 0,
"line" : 226,
"parent" : 0
}
]
},
"installers" :
[
{
"backtrace" : 1,
"component" : "Unspecified",
"destination" : "lib",
"paths" :
[
"lib/libglew32d.a"
],
"targetId" : "glew_s::@717d470b011500e00557",
"targetIndex" : 2,
"type" : "target"
},
{
"backtrace" : 2,
"component" : "Unspecified",
"destination" : "lib/pkgconfig",
"paths" :
[
"libs/glew-2.1.0/build/cmake/../../glew.pc"
],
"type" : "file"
},
{
"backtrace" : 3,
"component" : "Unspecified",
"destination" : "include/GL",
"paths" :
[
"libs/glew-2.1.0/build/cmake/../../include/GL/wglew.h",
"libs/glew-2.1.0/build/cmake/../../include/GL/glew.h",
"libs/glew-2.1.0/build/cmake/../../include/GL/glxew.h"
],
"type" : "file"
},
{
"backtrace" : 4,
"component" : "Unspecified",
"destination" : "lib/cmake/glew",
"exportName" : "glew-targets",
"exportTargets" :
[
{
"id" : "glew_s::@717d470b011500e00557",
"index" : 2
}
],
"paths" :
[
"libs/glew-2.1.0/build/cmake/CMakeFiles/Export/7a894a12241bfddc41ca6be6d0e647bd/glew-targets.cmake"
],
"type" : "export"
},
{
"backtrace" : 5,
"component" : "Unspecified",
"destination" : "lib/cmake/glew",
"paths" :
[
"libs/glew-2.1.0/build/cmake/glew-config.cmake",
"libs/glew-2.1.0/build/cmake/CopyImportedTargetProperties.cmake"
],
"type" : "file"
}
],
"paths" :
{
"build" : "libs/glew-2.1.0/build/cmake",
"source" : "libs/glew-2.1.0/build/cmake"
}
}
{
"backtraceGraph" :
{
"commands" : [],
"files" : [],
"nodes" : []
},
"installers" : [],
"paths" :
{
"build" : "libs/glfw-3.2.1",
"source" : "libs/glfw-3.2.1"
}
}
{
"backtraceGraph" :
{
"commands" : [],
"files" : [],
"nodes" : []
},
"installers" : [],
"paths" :
{
"build" : "libs/glfw-3.2.1/src",
"source" : "libs/glfw-3.2.1/src"
}
}
{
"backtraceGraph" :
{
"commands" :
[
"install"
],
"files" :
[
"libs/glm-master/CMakeLists.txt"
],
"nodes" :
[
{
"file" : 0
},
{
"command" : 0,
"file" : 0,
"line" : 169,
"parent" : 0
},
{
"command" : 0,
"file" : 0,
"line" : 186,
"parent" : 0
},
{
"command" : 0,
"file" : 0,
"line" : 201,
"parent" : 0
},
{
"command" : 0,
"file" : 0,
"line" : 209,
"parent" : 0
}
]
},
"installers" :
[
{
"backtrace" : 1,
"component" : "Unspecified",
"destination" : "include",
"paths" :
[
"libs/glm-master/glm"
],
"type" : "directory"
},
{
"backtrace" : 2,
"component" : "Unspecified",
"destination" : "lib/cmake/glm",
"paths" :
[
"cmake-build-debug/libs/glm-master/lib/cmake/glm/glmConfig.cmake",
"cmake-build-debug/libs/glm-master/glmConfigVersion.cmake"
],
"type" : "file"
},
{
"backtrace" : 3,
"component" : "Unspecified",
"destination" : "lib/cmake/glm",
"exportName" : "glmTargets",
"exportTargets" :
[
{
"id" : "glm::@b5e8752a874fdca4f5aa",
"index" : 0
}
],
"paths" :
[
"libs/glm-master/CMakeFiles/Export/820b120f1c4a30a4249350d158e86720/glmTargets.cmake"
],
"type" : "export"
},
{
"backtrace" : 4,
"component" : "Unspecified",
"destination" : "lib/pkgconfig",
"paths" :
[
"cmake-build-debug/libs/glm-master/glm.pc"
],
"type" : "file"
}
],
"paths" :
{
"build" : "libs/glm-master",
"source" : "libs/glm-master"
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment