Dali 3D User Interface Engine
List of all members | Public Member Functions | Public Attributes
Dali::Internal::Adaptor::CommandLineOptions Struct Reference

Parses the passed command line arguments and sets the values stored within this class appropriately. More...

#include <command-line-options.h>

Collaboration diagram for Dali::Internal::Adaptor::CommandLineOptions:
Collaboration graph
[legend]

Public Member Functions

 CommandLineOptions (int *argc, char **argv[])
 Constructor. More...
 
 ~CommandLineOptions ()
 Destructor. More...
 

Public Attributes

int noVSyncOnRender
 If 1, then the user does not want VSync on Render. More...
 
int stageWidth
 The width of the stage required. 0 if not set. More...
 
int stageHeight
 The height of the stage required. 0 if not set. More...
 
int viewMode
 Stereocopic 3D view mode (0=MONO, 1=STEREO_HORZ, 2=STEREO_VERT, 3=STEREO_INTERLACED) More...
 
int stereoBase
 The distance in millimeters between left/right cameras. More...
 
std::string stageDPI
 DPI stored as hxv, where h is horizontal DPI and v is vertical DPI. More...
 

Detailed Description

Parses the passed command line arguments and sets the values stored within this class appropriately.

The following options are supported:

--no-vsync Disable VSync on Render
-w|--width Stage Width
-h|--height Stage Height
-d|--dpi Emulated DPI
-v|--view Viewing mode
-s|--stereo-base Eye separation for stereoscopic rendering (in mm)
--help Help

When the above options are found, they are stripped from argv, and argc is updated appropriately.

Definition at line 51 of file command-line-options.h.

Constructor & Destructor Documentation

Dali::Internal::Adaptor::CommandLineOptions::CommandLineOptions ( int *  argc,
char **  argv[] 
)
Dali::Internal::Adaptor::CommandLineOptions::~CommandLineOptions ( )

Destructor.

Definition at line 244 of file command-line-options.cpp.

Member Data Documentation

int Dali::Internal::Adaptor::CommandLineOptions::noVSyncOnRender
std::string Dali::Internal::Adaptor::CommandLineOptions::stageDPI
int Dali::Internal::Adaptor::CommandLineOptions::stageHeight
int Dali::Internal::Adaptor::CommandLineOptions::stageWidth
int Dali::Internal::Adaptor::CommandLineOptions::stereoBase

The distance in millimeters between left/right cameras.

Definition at line 74 of file command-line-options.h.

Referenced by CommandLineOptions(), and Dali::Internal::Adaptor::Application::OnInit().

int Dali::Internal::Adaptor::CommandLineOptions::viewMode

Stereocopic 3D view mode (0=MONO, 1=STEREO_HORZ, 2=STEREO_VERT, 3=STEREO_INTERLACED)

Definition at line 73 of file command-line-options.h.

Referenced by CommandLineOptions(), and Dali::Internal::Adaptor::Application::OnInit().


The documentation for this struct was generated from the following files:
Dali Docs Home
Read more about Dali