GL Studio C++ Runtime API
gls_primitive_storage_types.h
Go to the documentation of this file.
1/// \file gls_primitive_storage_types.h
2/// \brief The disti::V2f, disti::V2f_C4ub, disti::V3f_C4ub, disti::V2f_T2f_C4ub, and the disti::V2f_T2f structs.
3///
4/// \par Copyright Information
5///
6/// Copyright (c) 2017 by The DiSTI Corporation.<br>
7/// 12249 Science Drive; Suite 300<br>
8/// Orlando, Florida 32826<br>
9/// USA<br>
10/// <br>
11/// All rights reserved.<br>
12///
13/// This Software contains proprietary trade secrets of DiSTI and may not be
14/// reproduced, in whole or part, in any form, or by any means of electronic,
15/// mechanical, or otherwise, without the written permission of DiSTI. Said
16/// permission may be derived through the purchase of applicable DiSTI product
17/// licenses which detail the distribution rights of this content and any
18/// Derivative Works based on this or other copyrighted DiSTI Software.
19///
20/// NO WARRANTY. THE SOFTWARE IS PROVIDED "AS-IS," WITHOUT WARRANTY OF ANY KIND,
21/// AND ANY USE OF THIS SOFTWARE PRODUCT IS AT YOUR OWN RISK. TO THE MAXIMUM EXTENT
22/// PERMITTED BY APPLICABLE LAW, DISTI AND ITS SUPPLIERS DISCLAIM ALL WARRANTIES
23/// AND CONDITIONS, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
24/// IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY AND/OR FITNESS FOR A
25/// PARTICULAR PURPOSE, TITLE, AND NON-INFRINGEMENT, WITH REGARD TO THE SOFTWARE.
26///
27/// LIMITATION OF LIABILITY. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW,
28/// IN NO EVENT SHALL DISTI OR ITS SUPPLIERS BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
29/// INDIRECT, OR CONSEQUENTIAL DAMAGES WHATSOEVER (INCLUDING, WITHOUT LIMITATION,
30/// DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS
31/// INFORMATION, OR ANY OTHER PECUNIARY LOSS) ARISING OUT OF THE USE OF OR
32/// INABILITY TO USE THE SOFTWARE, EVEN IF DISTI HAS BEEN ADVISED OF THE POSSIBILITY
33/// OF SUCH DAMAGES. DISTI'S ENTIRE LIABILITY AND YOUR EXCLUSIVE REMEDY SHALL NOT
34/// EXCEED FIVE DOLLARS (US$5.00).
35///
36/// The aforementioned terms and restrictions are governed by the laws of the
37/// State of Florida and the United States of America.
38
39#ifndef GLS_PRIMITIVE_STORAGE_TYPES_H
40#define GLS_PRIMITIVE_STORAGE_TYPES_H
41
42#include "gls_color.h"
43#include "gls_include.h"
44#include "vertex.h"
45
46namespace disti
47{
48/// \details The V2f struct. Describes a 2D vector.
49typedef struct
50{
51 float x; ///< The X coordinate.
52 float y; ///< The Y coordinate.
53} V2f;
54
55/// \details The V2f_C4ub struct. Describes a 2D vector and color.
56typedef struct
57{
58 V2f _vert; ///< A 2D vertex.
59 glsColor _color; ///< The vertex color.
60} V2f_C4ub;
61
62/// \details The V3f_C4ub struct. Describes a 3D vector and color.
63typedef struct
64{
65 Vector _vert; ///< A 3D vertex.
66 glsColor _color; ///< The vertex color.
67} V3f_C4ub;
68
69/// \details The V2f_T2f_C4ub struct. Describes a 2D vector with texture and color.
70typedef struct
71{
72 V2f _vert; ///< A 2D vertex.
73 V2f _tex; ///< A 2D texture coordinate.
74 glsColor _color; ///< The vertex color.
76
77/// \details The V2f_T2f struct. Describes a 2D vector with texture.
78typedef struct
79{
80 V2f _vert; ///< A 2D vertex.
81 V2f _tex; ///< A 2D texture coordinate.
82} V2f_T2f;
83
84} // namespace disti
85
86#endif
Definition: gls_color.h:53
Definition: vertex.h:84
The Color class: Implements a 4 component RGBA color.
A file for all GL Studio files to include.
Definition: bmpimage.h:46
Definition: gls_primitive_storage_types.h:57
V2f _vert
A 2D vertex.
Definition: gls_primitive_storage_types.h:58
glsColor _color
The vertex color.
Definition: gls_primitive_storage_types.h:59
Definition: gls_primitive_storage_types.h:71
V2f _vert
A 2D vertex.
Definition: gls_primitive_storage_types.h:72
V2f _tex
A 2D texture coordinate.
Definition: gls_primitive_storage_types.h:73
glsColor _color
The vertex color.
Definition: gls_primitive_storage_types.h:74
Definition: gls_primitive_storage_types.h:79
V2f _vert
A 2D vertex.
Definition: gls_primitive_storage_types.h:80
V2f _tex
A 2D texture coordinate.
Definition: gls_primitive_storage_types.h:81
Definition: gls_primitive_storage_types.h:50
float y
The Y coordinate.
Definition: gls_primitive_storage_types.h:52
float x
The X coordinate.
Definition: gls_primitive_storage_types.h:51
Definition: gls_primitive_storage_types.h:64
Vector _vert
A 3D vertex.
Definition: gls_primitive_storage_types.h:65
glsColor _color
The vertex color.
Definition: gls_primitive_storage_types.h:66
The disti::Vertex class. A class for manipulating 3D vertices.