Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CGoGN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
David Cazier
CGoGN
Commits
9bb78a4e
Commit
9bb78a4e
authored
Mar 11, 2015
by
Pierre Kraemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update shader version declaration for GL3
parent
ada7c5ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
37 deletions
+35
-37
CGoGN/src/Utils/GLSLShader.cpp
CGoGN/src/Utils/GLSLShader.cpp
+35
-37
No files found.
CGoGN/src/Utils/GLSLShader.cpp
View file @
9bb78a4e
...
@@ -39,43 +39,41 @@ namespace CGoGN
...
@@ -39,43 +39,41 @@ namespace CGoGN
namespace
Utils
namespace
Utils
{
{
//#ifdef CGOGN_USE_OGL_CORE_PROFILE
#ifdef CGOGN_USE_OGL_CORE_PROFILE
//unsigned int GLSLShader::CURRENT_OGL_VERSION = 3;
unsigned
int
GLSLShader
::
CURRENT_OGL_VERSION
=
3
;
//unsigned int GLSLShader::MAJOR_OGL_CORE = 3;
unsigned
int
GLSLShader
::
MAJOR_OGL_CORE
=
3
;
//unsigned int GLSLShader::MINOR_OGL_CORE = 3;
unsigned
int
GLSLShader
::
MINOR_OGL_CORE
=
3
;
//#else
#else
//unsigned int GLSLShader::CURRENT_OGL_VERSION = 2;
unsigned
int
GLSLShader
::
CURRENT_OGL_VERSION
=
2
;
//unsigned int GLSLShader::MAJOR_OGL_CORE = 2;
unsigned
int
GLSLShader
::
MAJOR_OGL_CORE
=
2
;
//unsigned int GLSLShader::MINOR_OGL_CORE = 1;
unsigned
int
GLSLShader
::
MINOR_OGL_CORE
=
1
;
//#endif
#endif
std
::
string
GLSLShader
::
DEFINES_GL2
=
\
"#version 110
\n
"
//std::string GLSLShader::DEFINES_GL2=\
"#define PRECISION float pipo_PRECISION
\n
"
//"#version 110\n"
"#define ATTRIBUTE attribute
\n
"
//"#define PRECISION float pipo_PRECISION\n"
"#define VARYING_VERT varying
\n
"
//"#define ATTRIBUTE attribute\n"
"#define VARYING_FRAG varying
\n
"
//"#define VARYING_VERT varying\n"
"#define FRAG_OUT_DEF float pipo_FRAGDEF
\n
"
//"#define VARYING_FRAG varying\n"
"#define FRAG_OUT gl_FragColor
\n
"
//"#define FRAG_OUT_DEF float pipo_FRAGDEF\n"
"#define INVARIANT_POS float pipo_INVARIANT
\n
"
//"#define FRAG_OUT gl_FragColor\n"
"#define TEXTURE2D texture2D
\n
"
//"#define INVARIANT_POS float pipo_INVARIANT\n"
;
//"#define TEXTURE2D texture2D\n";
std
::
string
GLSLShader
::
DEFINES_GL3
=
\
"#version 330
\n
"
//std::string GLSLShader::DEFINES_GL3=\
"#define PRECISION precision highp float
\n
"
//"#version 150\n"
"#define ATTRIBUTE in
\n
"
//"#define PRECISION precision highp float\n"
"#define VARYING_VERT out
\n
"
//"#define ATTRIBUTE in\n"
"#define VARYING_FRAG in
\n
"
//"#define VARYING_VERT out\n"
"#define FRAG_OUT_DEF out vec4 outFragColor
\n
"
//"#define VARYING_FRAG in\n"
"#define FRAG_OUT outFragColor
\n
"
//"#define FRAG_OUT_DEF out vec4 outFragColor\n"
"#define INVARIANT_POS invariant gl_Position
\n
"
//"#define FRAG_OUT outFragColor\n"
"#define TEXTURE2D texture
\n
"
//"#define INVARIANT_POS invariant gl_Position\n"
;
//"#define TEXTURE2D texture\n";
std
::
string
*
GLSLShader
::
DEFINES_GL
=
NULL
;
//std::string* GLSLShader::DEFINES_GL = NULL;
std
::
vector
<
std
::
string
>
GLSLShader
::
m_pathes
;
std
::
vector
<
std
::
string
>
GLSLShader
::
m_pathes
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment