Skip to content

Commit dd5f9d7

Browse files
committed
Updated dependencies, examples.
Using new API for mouse events too, polishing examples.
1 parent b0145d1 commit dd5f9d7

File tree

9 files changed

+13
-13
lines changed

9 files changed

+13
-13
lines changed

external/crosswindow

Submodule crosswindow updated 75 files

external/glslang

Submodule glslang updated 1625 files

external/opengl-registry

Submodule opengl-registry updated 587 files

external/spirv-cross

Submodule spirv-cross updated 2575 files

src/01-window-creation/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Project Info
22

3-
cmake_minimum_required(VERSION 3.6 FATAL_ERROR)
4-
cmake_policy(VERSION 3.6)
3+
cmake_minimum_required(VERSION 3.18 FATAL_ERROR)
4+
cmake_policy(VERSION 3.18)
55
project(WindowCreation
66
VERSION 1.0.0.0
77
LANGUAGES C CXX

src/01-window-creation/src/XMain.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ void xmain(int argc, const char** argv)
3232
{
3333
const xwin::Event& event = eventQueue.front();
3434

35-
if (event.type == xwin::EventType::Mouse)
35+
if (event.type == xwin::EventType::MouseMove)
3636
{
37-
const xwin::MouseData mouse = event.data.mouse;
37+
const xwin::MouseMoveData mouse = event.data.mouseMove;
3838
}
3939
if (event.type == xwin::EventType::Close)
4040
{

src/02-events/src/XMain.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ void xmain(int argc, const char** argv)
4242
}
4343

4444
// Mouse Movement
45-
if (event.type == xwin::EventType::MouseMoved)
45+
if (event.type == xwin::EventType::MouseMove)
4646
{
47-
const xwin::MouseInputData data = event.data.mouseInput;
47+
const xwin::MouseMoveData data = event.data.mouseMove;
4848
}
4949

5050
// Resize

src/04-cross-platform-hello-triangle/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Project Info
22

3-
cmake_minimum_required(VERSION 3.6 FATAL_ERROR)
4-
cmake_policy(VERSION 3.6)
3+
cmake_minimum_required(VERSION 3.18 FATAL_ERROR)
4+
cmake_policy(VERSION 3.18)
55
project(HelloTriangle
66
VERSION 1.0.0.0
77
LANGUAGES C CXX

0 commit comments

Comments
 (0)