nomlib
Loading...
Searching...
No Matches
nom::RendererInfo Struct Reference

Container class for the current renderer driver capabilities. More...

#include <RendererInfo.hpp>

Public Types

typedef RendererInfoRawPtr
 Raw pointer type.

Public Member Functions

 RendererInfo (void)
 Default constructor.
 ~RendererInfo (void)
 Destructor.
const std::string & name (void) const
 Query driver's name.
uint32 optimal_texture_format (void) const
 Obtain the most optimal texture format available.
bool target_texture (void) const
 Query support for setting a nom::Texture as a nom::Renderer target.
bool accelerated (void) const
 Query driver's support of hardware video acceleration.
bool vsync (void) const
 Query driver's support of VSYNC.
int texture_width (void) const
 Get the maximum texture width supported by the driver.
int texture_height (void) const
 Get the maximum texture height supported by the driver.

Public Attributes

std::string name_
 Renderer designation.
uint32 flags_
 Mask of supported renderer flags.
std::vector< uint32 > texture_formats
int texture_width_
 Maximum texture width (in pixels) supported.
int texture_height_
 Maximum texture height (in pixels) supported.

Detailed Description

Container class for the current renderer driver capabilities.

Definition at line 42 of file RendererInfo.hpp.

Member Typedef Documentation

◆ RawPtr

Raw pointer type.

Definition at line 46 of file RendererInfo.hpp.

Member Function Documentation

◆ optimal_texture_format()

uint32 nom::RendererInfo::optimal_texture_format ( void ) const

Obtain the most optimal texture format available.

Remarks
Value returned is graphics hardware dependent.

Member Data Documentation

◆ flags_

uint32 nom::RendererInfo::flags_

Mask of supported renderer flags.

Definition at line 82 of file RendererInfo.hpp.

◆ name_

std::string nom::RendererInfo::name_

Renderer designation.

Definition at line 79 of file RendererInfo.hpp.

◆ texture_formats

std::vector<uint32> nom::RendererInfo::texture_formats

Available texture (pixel) formats

Note
The most optimal pixel format will always be the first element

Definition at line 87 of file RendererInfo.hpp.

◆ texture_height_

int nom::RendererInfo::texture_height_

Maximum texture height (in pixels) supported.

Definition at line 93 of file RendererInfo.hpp.

◆ texture_width_

int nom::RendererInfo::texture_width_

Maximum texture width (in pixels) supported.

Definition at line 90 of file RendererInfo.hpp.


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