-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
038c769
commit bc6e157
Showing
11 changed files
with
11,749 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
project(etx-tracer) | ||
|
||
cmake_minimum_required(VERSION 3.1) | ||
cmake_policy(SET CMP0091 NEW) | ||
|
||
set_property(GLOBAL PROPERTY USE_FOLDERS ON) | ||
set_property(GLOBAL PROPERTY PREDEFINED_TARGETS_FOLDER "CMake") | ||
|
||
set(CMAKE_CXX_STANDARD 20) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
set(CMAKE_CXX_EXTENSIONS OFF) | ||
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake") | ||
|
||
add_subdirectory(thirdparty) | ||
add_subdirectory(sources) | ||
|
||
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT raytracer) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
add_subdirectory(rt-api) | ||
add_subdirectory(raytracer) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
add_executable(raytracer | ||
main.cxx | ||
) | ||
|
||
set_target_properties(raytracer PROPERTIES WIN32_EXECUTABLE YES) | ||
target_link_libraries(raytracer sokol_app) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#include <sokol_app.h> | ||
|
||
void init_application() { | ||
} | ||
|
||
void frame() { | ||
} | ||
|
||
void cleanup_application() { | ||
} | ||
|
||
void handle_event(const sapp_event*) { | ||
} | ||
|
||
sapp_desc sokol_main(int argc, char* argv[]) { | ||
sapp_desc result = {}; | ||
{ | ||
result.init_cb = init_application; | ||
result.frame_cb = frame; | ||
result.cleanup_cb = cleanup_application; | ||
result.event_cb = handle_event; | ||
result.width = 1280; | ||
result.height = 720; | ||
result.window_title = "etx-tracer"; | ||
result.high_dpi = true; | ||
result.win32_console_utf8 = true; | ||
result.win32_console_create = true; | ||
}; | ||
return result; | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
add_subdirectory(sokol_app) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
add_library(sokol_app STATIC | ||
sokol_app.h | ||
sokol_app.c | ||
) | ||
set_target_properties(sokol_app PROPERTIES FOLDER "thirdparty") | ||
target_include_directories(sokol_app PUBLIC ${CMAKE_CURRENT_LIST_DIR}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#define SOKOL_APP_IMPL 1 | ||
#define SOKOL_D3D11 1 | ||
|
||
#include "sokol_app.h" |
Large diffs are not rendered by default.
Oops, something went wrong.