VisuTwin Canvas
C++ 3D Engine — Metal Backend
Loading...
Searching...
No Matches
constants.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2// Copyright 2025-2026 Arnis Lektauers
3//
4// Created by Arnis Lektauers on 09.10.2025.
5//
6#pragma once
7
8namespace visutwin::canvas
9{
10 enum class FillMode
11 {
12 FILLMODE_NONE, // When resizing the window the size of the canvas will not change
13 FILLMODE_FILL_WINDOW, // When resizing the window the size of the canvas will change to fill the window exactly
14 FILLMODE_KEEP_ASPECT // When resizing the window the size of the canvas will change to fill the window as best it can, while maintaining the same aspect ratio
15 };
16
17 enum class ResolutionMode
18 {
19 RESOLUTION_AUTO, // When the canvas is resized the resolution of the canvas will change to match the size of the canvas
20 RESOLUTION_FIXED // When the canvas is resized the resolution of the canvas will remain at the same value and the output will just be scaled to fit the canva
21 };
22}