| GL Studio C++ Runtime API

gls_primitive_storage_types.h
Go to the documentation of this file.
1/*! \file
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 11301 Corporate Blvd., Suite 100<br>
8 Orlando, Florida 32817<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 */
40
41#ifndef GLS_PRIMITIVE_STORAGE_TYPES_H
42#define GLS_PRIMITIVE_STORAGE_TYPES_H
43
44#include "gls_color.h"
45#include "gls_include.h"
46#include "vertex.h"
47
48 namespace disti
49{
50/// \details The V2f struct. Describes a 2D vector.
51 typedef struct
52{
53 float x; ///< The X coordinate.
54 float y; ///< The Y coordinate.
55} V2f;
56
57/// \details The V2f_C4ub struct. Describes a 2D vector and color.
58 typedef struct
59{
60 V2f _vert; ///< A 2D vertex.
61 glsColor _color; ///< The vertex color.
62} V2f_C4ub;
63
64/// \details The V3f_C4ub struct. Describes a 3D vector and color.
65 typedef struct
66{
67 Vector _vert; ///< A 3D vertex.
68 glsColor _color; ///< The vertex color.
69} V3f_C4ub;
70
71/// \details The V2f_T2f_C4ub struct. Describes a 2D vector with texture and color.
72 typedef struct
73{
74 V2f _vert; ///< A 2D vertex.
75 V2f _tex; ///< A 2D texture coordinate.
76 glsColor _color; ///< The vertex color.
77} V2f_T2f_C4ub;
78
79/// \details The V2f_T2f struct. Describes a 2D vector with texture.
80 typedef struct
81{
82 V2f _vert; ///< A 2D vertex.
83 V2f _tex; ///< A 2D texture coordinate.
84} V2f_T2f;
85
86} // namespace disti
87
88#endif
disti::GlsColor
Definition: gls_color.h:54
disti::VertexNoColor
Definition: vertex.h:85
gls_color.h
The Color class: Implements a 4 component RGBA color.
gls_include.h
A file for all GL Studio files to include.
disti
Definition: bmpimage.h:47
disti::V2f_C4ub
Definition: gls_primitive_storage_types.h:59
disti::V2f_C4ub::_vert
V2f _vert
A 2D vertex.
Definition: gls_primitive_storage_types.h:60
disti::V2f_C4ub::_color
glsColor _color
The vertex color.
Definition: gls_primitive_storage_types.h:61
disti::V2f_T2f_C4ub
Definition: gls_primitive_storage_types.h:73
disti::V2f_T2f_C4ub::_vert
V2f _vert
A 2D vertex.
Definition: gls_primitive_storage_types.h:74
disti::V2f_T2f_C4ub::_tex
V2f _tex
A 2D texture coordinate.
Definition: gls_primitive_storage_types.h:75
disti::V2f_T2f_C4ub::_color
glsColor _color
The vertex color.
Definition: gls_primitive_storage_types.h:76
disti::V2f_T2f
Definition: gls_primitive_storage_types.h:81
disti::V2f_T2f::_vert
V2f _vert
A 2D vertex.
Definition: gls_primitive_storage_types.h:82
disti::V2f_T2f::_tex
V2f _tex
A 2D texture coordinate.
Definition: gls_primitive_storage_types.h:83
disti::V2f
Definition: gls_primitive_storage_types.h:52
disti::V2f::y
float y
The Y coordinate.
Definition: gls_primitive_storage_types.h:54
disti::V2f::x
float x
The X coordinate.
Definition: gls_primitive_storage_types.h:53
disti::V3f_C4ub
Definition: gls_primitive_storage_types.h:66
disti::V3f_C4ub::_vert
Vector _vert
A 3D vertex.
Definition: gls_primitive_storage_types.h:67
disti::V3f_C4ub::_color
glsColor _color
The vertex color.
Definition: gls_primitive_storage_types.h:68
vertex.h
The disti::Vertex class. A class for manipulating 3D vertices.