|
libmx2 2.2.1
C++20 multimedia and game-engine library (SDL2 / OpenGL / Vulkan)
|
OpenCV capture integration for the Vulkan backend (vk_cv.hpp). More...
Classes | |
| class | mx::MXCapture |
| OpenCV video capture source that renders via an OpenGL sprite. More... | |
OpenCV capture integration for the Vulkan backend (vk_cv.hpp).
Provides the Vulkan-flavoured mx::MXCapture implementation that uploads OpenCV frames to mx::VKSprite for rendering in mx::VKWindow.
Quick build (using the provided Perl scripts):
CMake build:
Enable Vulkan support:
| Class | Header | Description |
|---|---|---|
| mx::mxWindow | mx.hpp | Main SDL2 application window — subclass and override draw() / event(). |
| gl::GLWindow | gl.hpp | SDL2 + OpenGL window; adds shader program and sprite support. |
| gl::ShaderProgram | gl.hpp | GLSL shader compilation, linking, and uniform upload. |
| gl::GLSprite | gl.hpp | Textured quad rendered with a custom shader. |
| mx::Model | model.hpp | OpenGL 3D mesh with extensive CPU deformation API. |
| console::GLConsole | console.hpp | Shader-rendered in-app console with command history. |
| mx::VKWindow | vk.hpp | Vulkan window with swap-chain, pipeline, and render-pass management. |
| mx::VKSprite | vk_sprite.hpp | Vulkan 2D sprite renderer with instancing support. |
| mx::VKText | vk_text.hpp | Vulkan text renderer using SDL_ttf glyph atlases. |
| mx::MXModel | vk_model.hpp | Vulkan 3D mesh loader (OBJ / MXMOD) with GPU buffer management. |
| mx::VKAbstractModel | vk_abstract_model.hpp | High-level Vulkan model wrapper with per-model shaders, textures, UBOs, and descriptors. |
| mx::ConfigFile | cfg.hpp | INI-style configuration file reader/writer. |
| Argz<String> | argz.hpp | Lightweight template command-line argument parser. |
| mx::TeeStream | tee_stream.hpp | Dual-output stream that writes to both stdout/stderr and a log file. |
| mx::mxJoystick | joystick.hpp | SDL2 joystick and game controller input wrapper. |
| mx::Exception | exception.hpp | Library-wide exception type with descriptive text. |
| mx::mxUtil | util.hpp | Asset path resolution and general utility helpers. |
| mx::MXCapture (GL) | gl_cv.hpp | OpenCV capture bridge for the OpenGL backend. |
| mx::MXCapture (VK) | vk_cv.hpp | OpenCV capture bridge for the Vulkan backend. |