YourGameLib
Loading...
Searching...
No Matches
conventions.h
Go to the documentation of this file.
1/*
2Copyright (c) 2019-2024 Alexander Scholz
3
4This software is provided 'as-is', without any express or implied
5warranty. In no event will the authors be held liable for any damages
6arising from the use of this software.
7
8Permission is granted to anyone to use this software for any purpose,
9including commercial applications, and to alter it and redistribute it
10freely, subject to the following restrictions:
11
121. The origin of this software must not be misrepresented; you must not
13 claim that you wrote the original software. If you use this software
14 in a product, an acknowledgment in the product documentation would be
15 appreciated but is not required.
162. Altered source versions must be plainly marked as such, and must not be
17 misrepresented as being the original software.
183. This notice may not be removed or altered from any source distribution.
19*/
20#ifndef YOURGAME_GLCONVENTIONS_H
21#define YOURGAME_GLCONVENTIONS_H
22
23#include "yourgame/gl_include.h"
24
25namespace yourgame
26{
27 namespace gl
28 {
29 extern const GLuint attrLocPosition;
30 extern const GLuint attrLocNormal;
31 extern const GLuint attrLocTexcoords;
32 extern const GLuint attrLocColor;
33 extern const GLuint attrLocInstModelMatCol0;
34 extern const GLuint attrLocInstModelMatCol1;
35 extern const GLuint attrLocInstModelMatCol2;
36 extern const GLuint attrLocInstModelMatCol3;
37 extern const GLuint attrLocInstProgress;
38 extern const GLchar *unifNameMvpMatrix;
39 extern const GLchar *unifNameVpMatrix;
40 extern const GLchar *unifNameModelMatrix;
41 extern const GLchar *unifNameNormalMatrix;
42 extern const GLchar *unifNameCameraPosition;
43 extern const GLchar *unifNameCameraTrafo;
44 extern const GLchar *unifNameSkyRotationInv;
45 extern const GLchar *unifNameTextureDiffuse;
46 extern const GLchar *unifNameTextureSkyCube;
47 extern const GLchar *unifNameTextureSky;
48 extern const GLchar *unifNameTextureBufferDepth;
49 extern const GLchar *unifNameTextureBufferColor0;
50 extern const GLchar *unifNameLightAmbient;
51 extern const GLchar *unifNameLightDiffuse;
52 extern const GLchar *unifNameLightSpecular;
53 extern const GLchar *unifNameLightPosition;
54 extern const GLchar *unifNameSubtexture;
55 extern const GLint unifValueTextureDiffuse;
56 extern const GLint unifValueTextureSkyCube;
57 extern const GLint unifValueTextureSky;
58 extern const GLint unifValueTextureBufferDepth;
59 extern const GLint unifValueTextureBufferColor0;
60 extern const GLenum textureUnitDiffuse;
61 extern const GLenum textureUnitSkyCube;
62 extern const GLenum textureUnitSky;
63 extern const GLenum textureUnitBufferDepth;
64 extern const GLenum textureUnitBufferColor0;
65 } // namespace gl
66} // namespace yourgame
67
68#endif
const GLint unifValueTextureSkyCube
Definition conventions.cpp:54
const GLuint attrLocInstProgress
Definition conventions.cpp:35
const GLchar * unifNameTextureBufferDepth
Definition conventions.cpp:46
const GLuint attrLocInstModelMatCol2
Definition conventions.cpp:33
const GLuint attrLocColor
Definition conventions.cpp:30
const GLuint attrLocInstModelMatCol1
Definition conventions.cpp:32
const GLchar * unifNameModelMatrix
Definition conventions.cpp:38
const GLchar * unifNameCameraPosition
Definition conventions.cpp:40
const GLchar * unifNameTextureSkyCube
Definition conventions.cpp:44
const GLint unifValueTextureDiffuse
Definition conventions.cpp:53
const GLuint attrLocNormal
Definition conventions.cpp:28
const GLchar * unifNameLightDiffuse
Definition conventions.cpp:49
const GLenum textureUnitDiffuse
Definition conventions.cpp:58
const GLuint attrLocPosition
Definition conventions.cpp:27
const GLchar * unifNameSubtexture
Definition conventions.cpp:52
const GLchar * unifNameCameraTrafo
Definition conventions.cpp:41
const GLchar * unifNameMvpMatrix
Definition conventions.cpp:36
const GLchar * unifNameLightAmbient
Definition conventions.cpp:48
const GLenum textureUnitSkyCube
Definition conventions.cpp:59
const GLchar * unifNameTextureDiffuse
Definition conventions.cpp:43
const GLenum textureUnitBufferColor0
Definition conventions.cpp:62
const GLint unifValueTextureBufferColor0
Definition conventions.cpp:57
const GLenum textureUnitBufferDepth
Definition conventions.cpp:61
const GLchar * unifNameTextureSky
Definition conventions.cpp:45
const GLchar * unifNameSkyRotationInv
Definition conventions.cpp:42
const GLchar * unifNameLightPosition
Definition conventions.cpp:51
const GLint unifValueTextureSky
Definition conventions.cpp:55
const GLchar * unifNameNormalMatrix
Definition conventions.cpp:39
const GLuint attrLocInstModelMatCol0
Definition conventions.cpp:31
const GLenum textureUnitSky
Definition conventions.cpp:60
const GLint unifValueTextureBufferDepth
Definition conventions.cpp:56
const GLuint attrLocInstModelMatCol3
Definition conventions.cpp:34
const GLchar * unifNameLightSpecular
Definition conventions.cpp:50
const GLchar * unifNameVpMatrix
Definition conventions.cpp:37
const GLuint attrLocTexcoords
Definition conventions.cpp:29
const GLchar * unifNameTextureBufferColor0
Definition conventions.cpp:47
Definition audio.h:27