| GL Studio C++ Runtime API

gls_es20_effect_params.h
Go to the documentation of this file.
1/**! \file
2 \brief Strings and other standard enumerations used in effects.
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. Use, distribution,
38 duplication, or disclosure by the U. S. Government is subject to
39"Restricted Rights" as set forth in DFARS 252.227-7014(c)(1)(ii).
40
41*/
42
43#ifndef DISTI_GLS_ES20_EFFECT_PARAMS_H_INCLUDED
44#define DISTI_GLS_ES20_EFFECT_PARAMS_H_INCLUDED
45
46 namespace disti
47{
48/** enumeration for standard shader uniforms */
49 enum StdUniforms_e
50{
51 NUM_ACTIVE_CLIP_PLANES = 0,
52 MATRIX_NORMAL,
53 MATRIX_PROJECTION,
54 MATRIX_MODELVIEW,
55 MATRIX_DIFF_TEX,
56 MATRIX_SPEC_TEX,
57 MATRIX_NORM_TEX,
58 MATERIAL_AMBIENT,
59 MATERIAL_DIFFUSE,
60 MATERIAL_SPECULAR,
61 MATERIAL_EMISSIVE,
62 MATERIAL_SHININESS,
63 SAMPLER_TEXTURE,
64 SAMPLER_DIFFUSE,
65 SAMPLER_NORMAL,
66 SAMPLER_SPECULAR,
67 SAMPLER_REFLECTION,
68 COLOR_TEX_BLEND,
69 DIFFUSE_AMOUNT,
70 NORMAL_AMOUNT,
71 SPECULAR_AMOUNT,
72 REFLECTION_AMOUNT,
73 MATRIX_VIEW_TO_WORLD,
74 CLIP_PLANE_1,
75 CLIP_PLANE_2,
76 CLIP_PLANE_3,
77 CLIP_PLANE_4,
78 CLIP_PLANE_5,
79 CLIP_PLANE_6,
80 LIGHT_SOURCE_1_AMBIENT,
81 LIGHT_SOURCE_2_AMBIENT,
82 LIGHT_SOURCE_3_AMBIENT,
83 LIGHT_SOURCE_4_AMBIENT,
84 LIGHT_SOURCE_5_AMBIENT,
85 LIGHT_SOURCE_6_AMBIENT,
86 LIGHT_SOURCE_7_AMBIENT,
87 LIGHT_SOURCE_8_AMBIENT,
88 LIGHT_SOURCE_1_DIFFUSE,
89 LIGHT_SOURCE_2_DIFFUSE,
90 LIGHT_SOURCE_3_DIFFUSE,
91 LIGHT_SOURCE_4_DIFFUSE,
92 LIGHT_SOURCE_5_DIFFUSE,
93 LIGHT_SOURCE_6_DIFFUSE,
94 LIGHT_SOURCE_7_DIFFUSE,
95 LIGHT_SOURCE_8_DIFFUSE,
96 LIGHT_SOURCE_1_SPECULAR,
97 LIGHT_SOURCE_2_SPECULAR,
98 LIGHT_SOURCE_3_SPECULAR,
99 LIGHT_SOURCE_4_SPECULAR,
100 LIGHT_SOURCE_5_SPECULAR,
101 LIGHT_SOURCE_6_SPECULAR,
102 LIGHT_SOURCE_7_SPECULAR,
103 LIGHT_SOURCE_8_SPECULAR,
104 LIGHT_SOURCE_1_POSITION,
105 LIGHT_SOURCE_2_POSITION,
106 LIGHT_SOURCE_3_POSITION,
107 LIGHT_SOURCE_4_POSITION,
108 LIGHT_SOURCE_5_POSITION,
109 LIGHT_SOURCE_6_POSITION,
110 LIGHT_SOURCE_7_POSITION,
111 LIGHT_SOURCE_8_POSITION,
112 LIGHT_SOURCE_1_SPOTDIRECTION_CUTOFF,
113 LIGHT_SOURCE_2_SPOTDIRECTION_CUTOFF,
114 LIGHT_SOURCE_3_SPOTDIRECTION_CUTOFF,
115 LIGHT_SOURCE_4_SPOTDIRECTION_CUTOFF,
116 LIGHT_SOURCE_5_SPOTDIRECTION_CUTOFF,
117 LIGHT_SOURCE_6_SPOTDIRECTION_CUTOFF,
118 LIGHT_SOURCE_7_SPOTDIRECTION_CUTOFF,
119 LIGHT_SOURCE_8_SPOTDIRECTION_CUTOFF,
120 LIGHT_SOURCE_1_ATTENUATION_EXPONENT,
121 LIGHT_SOURCE_2_ATTENUATION_EXPONENT,
122 LIGHT_SOURCE_3_ATTENUATION_EXPONENT,
123 LIGHT_SOURCE_4_ATTENUATION_EXPONENT,
124 LIGHT_SOURCE_5_ATTENUATION_EXPONENT,
125 LIGHT_SOURCE_6_ATTENUATION_EXPONENT,
126 LIGHT_SOURCE_7_ATTENUATION_EXPONENT,
127 LIGHT_SOURCE_8_ATTENUATION_EXPONENT,
128 POINT_SIZE,
129 MAX_STD_UNIFORMS
130};
131
132/** enumeration for standard shader attributes */
133 enum StdAttribs_e
134{
135 STD_ATTRIB_POSITION = 0,
136 STD_ATTRIB_NORMAL,
137 STD_ATTRIB_TEXCOORD,
138 STD_ATTRIB_COLOR,
139 STD_ATTRIB_TANGENT,
140 STD_ATTRIB_BINORMAL,
141 MAX_STD_ATTRIBS
142};
143
144/** Variable names for standard shader uniforms */
145 extern const char* STD_UNIFORM_STRINGS[ MAX_STD_UNIFORMS ];
146
147/** Variable names for standard shader attributes */
148 extern const char* STD_ATTRIB_STRINGS[ MAX_STD_ATTRIBS ];
149
150} // namespace disti
151
152#endif // DISTI_GLS_ES20_EFFECT_PARAMS_H_INCLUDED
disti
Definition: bmpimage.h:47
disti::STD_ATTRIB_STRINGS
const char * STD_ATTRIB_STRINGS[MAX_STD_ATTRIBS]
disti::StdAttribs_e
StdAttribs_e
Definition: gls_es20_effect_params.h:134
disti::STD_UNIFORM_STRINGS
const char * STD_UNIFORM_STRINGS[MAX_STD_UNIFORMS]
disti::StdUniforms_e
StdUniforms_e
Definition: gls_es20_effect_params.h:50