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

Represents a version number. More...

#include <Specification.hpp>

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: