types.h file
Sub header defining general core types used throughout the API.
Classes
- struct OTV_Vec2
- A convenience struct for representing 2D vectors.
- struct OTV_Vec3
- A convenience struct for representing 3D vectors.
- struct OTV_Vec4
- A convenience struct for representing 4D vectors.
- struct OTV_Rgb
- A convenience struct for representing RGB values.
- struct OTV_Interval
- A convenience struct for representing an inclusive interval.
Typedefs
-
using otv__Vec2_funct = OTV_
Vec2(*)(const float, const float) - The function pointer type for the
otv_function._ Vec2() -
using otv__Vec3_funct = OTV_
Vec3(*)(const float, const float, const float) - The function pointer type for the
otv_function._ Vec3() -
using otv__Vec4_funct = OTV_
Vec4(*)(const float, const float, const float, const float) - The function pointer type for the
otv_function._ Vec4() -
using otv__Rgb_funct = OTV_
Rgb(*)(const float, const float, const float) - The function pointer type for the
otv_function._ Rgb() -
using otv__Interval_funct = OTV_
Rgb(*)(const float, const float) - The function pointer type for the
otv_function._ Interval()
Functions
-
auto otv__Vec2(const float x,
const float y) -> OTV_
API OTV_ Vec2 - Constructs an instance of the
OTV_struct for convenient on-the-fly construction as a pass-by-value argument to other functions.Vec2 -
auto otv__Vec3(const float x,
const float y,
const float z) -> OTV_
API OTV_ Vec3 - Constructs an instance of the
OTV_struct for convenient on-the-fly construction as a pass-by-value argument to other functions.Vec3 -
auto otv__Vec4(const float x,
const float y,
const float z,
const float w) -> OTV_
API OTV_ Vec4 - Constructs an instance of the
OTV_struct for convenient on-the-fly construction as a pass-by-value argument to other functions.Vec4 -
auto otv__Rgb(const float r,
const float g,
const float b) -> OTV_
API OTV_ Rgb - Constructs an instance of the
OTV_struct for convenient on-the-fly construction as a pass-by-value argument to other functions.Rgb -
auto otv__Interval(const float min,
const float max) -> OTV_
API OTV_ Interval - Constructs an instance of the
OTV_struct for convenient on-the-fly construction as a pass-by-value argument to other functions.Interval
Function documentation
OTV_ API OTV_ Vec2 otv__Vec2(const float x,
const float y)
Constructs an instance of the OTV_ struct for convenient on-the-fly construction as a pass-by-value argument to other functions.
| Parameters | |
|---|---|
| x | The value for the field OTV_Vec2:: |
| y | The value for the field OTV_Vec2:: |
| Returns | An instance of the OTV_ struct. |
OTV_ API OTV_ Vec3 otv__Vec3(const float x,
const float y,
const float z)
Constructs an instance of the OTV_ struct for convenient on-the-fly construction as a pass-by-value argument to other functions.
| Parameters | |
|---|---|
| x | The value for the field OTV_Vec3:: |
| y | The value for the field OTV_Vec3:: |
| z | The value for the field OTV_Vec3:: |
| Returns | An instance of the OTV_ struct. |
OTV_ API OTV_ Vec4 otv__Vec4(const float x,
const float y,
const float z,
const float w)
Constructs an instance of the OTV_ struct for convenient on-the-fly construction as a pass-by-value argument to other functions.
| Parameters | |
|---|---|
| x | The value for the field OTV_Vec4:: |
| y | The value for the field OTV_Vec4:: |
| z | The value for the field OTV_Vec4:: |
| w | The value for the field OTV_Vec4:: |
| Returns | An instance of the OTV_ struct. |
OTV_ API OTV_ Rgb otv__Rgb(const float r,
const float g,
const float b)
Constructs an instance of the OTV_ struct for convenient on-the-fly construction as a pass-by-value argument to other functions.
| Parameters | |
|---|---|
| r | The value for the field OTV_Rgb:: |
| g | The value for the field OTV_Rgb:: |
| b | The value for the field OTV_Rgb:: |
| Returns | An instance of the OTV_ struct. |
OTV_ API OTV_ Interval otv__Interval(const float min,
const float max)
Constructs an instance of the OTV_ struct for convenient on-the-fly construction as a pass-by-value argument to other functions.
| Parameters | |
|---|---|
| min | The value for the field OTV_Interval:: |
| max | The value for the field OTV_Interval:: |
| Returns | An instance of the OTV_ struct. |