Raven Engine v0.1
A modern 3D Game Engine
Loading...
Searching...
No Matches
Raven::WindowProps Struct Reference

Struct to hold window properties. More...

#include <Window.h>

Public Attributes

std::string Title = "Raven"
 Title displayed in the window's title bar.
u32 Width = 1920
 Width of the window (in pixels).
u32 Height = 1080
 Height of the window (in pixels).
bool Maximized = false
 Whether the window is maximized on creation (default: false).
std::function< LRESULT(HWND, UINT, WPARAM, LPARAM)> MessageHook
 Hijack Raven's Message Processing pipeline.

Detailed Description

Struct to hold window properties.

This struct contains the properties required for creating a window, such as title, width, height, VSync setting, and an event callback function. These properties are used to configure the window during initialization.

Note
  • Title: The title displayed on the window.
  • Width: The width of the window (in pixels).
  • Height: The height of the window (in pixels).
  • Maximized: A flag indicating whether the window should be maximized on creation (false by default).
  • EventCallback: A function that will be called when an event occurs, such as a window resize or key press.

Member Data Documentation

◆ Height

u32 Raven::WindowProps::Height = 1080

Height of the window (in pixels).

◆ Maximized

bool Raven::WindowProps::Maximized = false

Whether the window is maximized on creation (default: false).

◆ MessageHook

std::function<LRESULT(HWND, UINT, WPARAM, LPARAM)> Raven::WindowProps::MessageHook

Hijack Raven's Message Processing pipeline.

◆ Title

std::string Raven::WindowProps::Title = "Raven"

Title displayed in the window's title bar.

◆ Width

u32 Raven::WindowProps::Width = 1920

Width of the window (in pixels).


The documentation for this struct was generated from the following file: