PixelBullet  0.0.1
A C++ game engine
Loading...
Searching...
No Matches
pixelbullet::ApplicationVersion Struct Reference

Represents a version number. More...

#include <specification.h>

Public Member Functions

std::string ToString () const
 Converts the version to a string representation.
 
uint32_t ToVulkanVersion () const
 Returns the Vulkan-compatible version integer.
 
bool operator== (const ApplicationVersion &other) const
 Compares two ApplicationVersion instances for equality.
 
bool operator!= (const ApplicationVersion &other) const
 Compares two ApplicationVersion instances for inequality.
 

Public Attributes

uint8_t major
 major version number.
 
uint8_t minor
 minor version number.
 
uint8_t patch
 patch version number.
 

Detailed Description

Represents a version number.

Member Function Documentation

◆ operator!=()

bool pixelbullet::ApplicationVersion::operator!= ( const ApplicationVersion & other) const
inline

Compares two ApplicationVersion instances for inequality.

Parameters
otherThe other ApplicationVersion to compare.
Returns
True if the versions are not equal; otherwise, false.

◆ operator==()

bool pixelbullet::ApplicationVersion::operator== ( const ApplicationVersion & other) const
inline

Compares two ApplicationVersion instances for equality.

Parameters
otherThe other ApplicationVersion to compare.
Returns
True if both versions are equal; otherwise, false.

◆ ToString()

std::string pixelbullet::ApplicationVersion::ToString ( ) const
inline

Converts the version to a string representation.

Returns
A string in the format "major.minor.patch".

◆ ToVulkanVersion()

uint32_t pixelbullet::ApplicationVersion::ToVulkanVersion ( ) const

Returns the Vulkan-compatible version integer.

Returns
Vulkan version using VK_MAKE_VERSION (isolated in the source).

Member Data Documentation

◆ major

uint8_t pixelbullet::ApplicationVersion::major

major version number.

◆ minor

uint8_t pixelbullet::ApplicationVersion::minor

minor version number.

◆ patch

uint8_t pixelbullet::ApplicationVersion::patch

patch version number.


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