From 27c66aeb20a3338f185e0df172bc11e837a30a93 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Wed, 16 Aug 2023 01:18:10 +0200 Subject: c++,window,window-opengl: Fixing missing functions and other minor quirks --- c++/window-opengl/SConstruct | 8 +++++++- c++/window/xcb.cpp | 17 +++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) (limited to 'c++') diff --git a/c++/window-opengl/SConstruct b/c++/window-opengl/SConstruct index 42fb205..fc2c398 100644 --- a/c++/window-opengl/SConstruct +++ b/c++/window-opengl/SConstruct @@ -46,7 +46,13 @@ env_vars.Add('prefix', env=Environment(ENV=os.environ, variables=env_vars, CPPPATH=[], CPPDEFINES=['SAW_UNIX', 'SAW_UNIX_XCB', 'SAW_OGL'], CXXFLAGS=['-std=c++20','-g','-Wall','-Wextra'], - LIBS=['forstio-core', 'forstio-io', 'forstio-async', 'forstio-codec']) + LIBS=[ + 'forstio-core', + 'forstio-io', + 'forstio-async', + 'forstio-codec' + ] +); env.__class__.add_source_files = add_kel_source_files env.Tool('compilation_db'); env.cdb = env.CompilationDatabase('compile_commands.json'); diff --git a/c++/window/xcb.cpp b/c++/window/xcb.cpp index a9d0715..dac5271 100644 --- a/c++/window/xcb.cpp +++ b/c++/window/xcb.cpp @@ -247,5 +247,22 @@ conveyor> window::on_event() { return std::move(caf.conveyor); } +void window::resize_event(uint64_t x, uint64_t y, uint64_t width, uint64_t height){ + /// @todo implement + assert(false); +} +void window::mouse_event(int16_t x, int16_t y, uint16_t state, bool pressed){ + /// @todo implement + assert(false); +} +void window::mouse_move_event(int16_t x, int16_t y){ + /// @todo implement + assert(false); +} +void window::keyboard_event(int16_t x, int16_t y, uint32_t keycode, bool pressed, bool repeat){ + /// @todo implement + assert(false); +} + } } -- cgit v1.2.3