MCPcopy Create free account
hub / github.com/OSVR/OSVR-Core / osvrClientGetDisplayDimensions

Function osvrClientGetDisplayDimensions

src/osvr/ClientKit/DisplayC.cpp:153–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153OSVR_ReturnCode osvrClientGetDisplayDimensions(
154 OSVR_DisplayConfig disp, OSVR_DisplayInputCount displayInputIndex,
155 OSVR_DisplayDimension *width, OSVR_DisplayDimension *height) {
156
157 OSVR_VALIDATE_DISPLAY_CONFIG;
158 OSVR_VALIDATE_DISPLAY_INPUT_ID;
159 OSVR_VALIDATE_OUTPUT_PTR(width, "width");
160 OSVR_VALIDATE_OUTPUT_PTR(height, "height");
161 *width = disp->cfg->getDisplayInput(displayInputIndex).getDisplayWidth();
162 *height = disp->cfg->getDisplayInput(displayInputIndex).getDisplayHeight();
163 return OSVR_RETURN_SUCCESS;
164}
165
166OSVR_ReturnCode osvrClientGetNumViewers(OSVR_DisplayConfig disp,
167 OSVR_ViewerCount *viewers) {

Callers

nothing calls this directly

Calls 2

getDisplayWidthMethod · 0.45
getDisplayHeightMethod · 0.45

Tested by

no test coverage detected