RadialDistortionParametersC.h (1578B)
1 /** @file 2 @brief Header 3 4 Must be c-safe! 5 6 @date 2015 7 8 @author 9 Sensics, Inc. 10 <http://sensics.com/osvr> 11 */ 12 13 /* 14 // Copyright 2015 Sensics, Inc. 15 // 16 // Licensed under the Apache License, Version 2.0 (the "License"); 17 // you may not use this file except in compliance with the License. 18 // You may obtain a copy of the License at 19 // 20 // http://www.apache.org/licenses/LICENSE-2.0 21 // 22 // Unless required by applicable law or agreed to in writing, software 23 // distributed under the License is distributed on an "AS IS" BASIS, 24 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 25 // See the License for the specific language governing permissions and 26 // limitations under the License. 27 */ 28 29 #ifndef INCLUDED_RadialDistortionParametersC_h_GUID_925BCEB1_BACA_4DA7_5133_FFF560C72EBD 30 #define INCLUDED_RadialDistortionParametersC_h_GUID_925BCEB1_BACA_4DA7_5133_FFF560C72EBD 31 32 /* Internal Includes */ 33 #include <osvr/Util/APIBaseC.h> 34 #include <osvr/Util/Vec2C.h> 35 #include <osvr/Util/Vec3C.h> 36 37 /* Library/third-party includes */ 38 /* none */ 39 40 /* Standard includes */ 41 /* none */ 42 43 OSVR_EXTERN_C_BEGIN 44 45 /** @addtogroup UtilMath 46 @{ 47 */ 48 49 /** @brief Parameters for a per-color-component radial distortion shader 50 */ 51 typedef struct OSVR_RadialDistortionParameters { 52 /** @brief Vector of K1 coefficients for the R, G, B channels*/ 53 OSVR_Vec3 k1; 54 /** @brief Center of projection for the radial distortion, relative to the 55 bounds of this surface. 56 */ 57 OSVR_Vec2 centerOfProjection; 58 } OSVR_RadialDistortionParameters; 59 60 OSVR_EXTERN_C_END 61 62 #endif