Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nt1100 analyser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pascal Engeler
nt1100 analyser
Commits
929e2a08
Commit
929e2a08
authored
2 years ago
by
Pascal Engeler
Browse files
Options
Downloads
Patches
Plain Diff
Added unuse(), identity check
parent
95123461
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/shader.hpp
+7
-0
7 additions, 0 deletions
include/shader.hpp
with
7 additions
and
0 deletions
include/shader.hpp
+
7
−
0
View file @
929e2a08
...
...
@@ -20,6 +20,9 @@ public:
void
clean_up
(){
glDeleteShader
(
ID
);}
// use/activate the shader
void
use
();
void
unuse
();
// check identity of shader
bool
is
(
const
std
::
string
vertexPath
,
const
std
::
string
fragmentPath
)
const
;
// utility uniform functions
void
setBool
(
const
std
::
string
&
name
,
bool
value
)
const
;
void
setInt
(
const
std
::
string
&
name
,
int
value
)
const
;
...
...
@@ -31,6 +34,10 @@ public:
//TODO: make this private
unsigned
int
ID
;
//shader program ID
private
:
std
::
string
_vertexPath
;
std
::
string
_fragmentPath
;
};
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment