Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ACGL
acgl
Commits
0df5175f
Commit
0df5175f
authored
Jun 26, 2013
by
Robert Menzel
Browse files
made VAO bind const again and added mac specific compile fix
parent
d982422a
Changes
4
Show whitespace changes
Inline
Side-by-side
include/ACGL/OpenGL/Objects/VertexArrayObject.hh
View file @
0df5175f
...
...
@@ -200,9 +200,9 @@ public:
//! Bind this VAO
//! If error checking is set to common or higher, some consistancy checks are made
#ifdef ACGL_CHECK_COMMON_GL_ERRORS
void
bind
();
void
bind
()
const
;
#else
inline
void
bind
()
inline
void
bind
()
const
{
glBindVertexArray
(
mObjectName
);
}
...
...
include/nv_dds/nv_dds.h
View file @
0df5175f
...
...
@@ -21,6 +21,9 @@
#include
<deque>
#include
<assert.h>
#include
<ACGL/OpenGL/GL.hh>
/*
*OpenGl will be already included by ACGL
#if defined(MACOS)
#include <OpenGL/gl.h>
#include <OpenGL/glext.h>
...
...
@@ -28,6 +31,7 @@
#include <GL/gl.h>
#include <GL/glext.h>
#endif
*/
namespace
nv_dds
{
...
...
src/ACGL/OpenGL/Objects/VertexArrayObject.cc
View file @
0df5175f
...
...
@@ -29,7 +29,7 @@ VertexArrayObject::VertexArrayObject( GLenum _mode ) :
}
#ifdef ACGL_CHECK_COMMON_GL_ERRORS
void
VertexArrayObject
::
bind
()
void
VertexArrayObject
::
bind
()
const
{
glBindVertexArray
(
mObjectName
);
...
...
src/nv_dds/nd_dds.cpp
View file @
0df5175f
...
...
@@ -166,6 +166,7 @@
# define GET_EXT_POINTER(name, type)
#endif
/*
#ifdef MACOS
#include <OpenGL/gl.h>
#include <OpenGL/glext.h>
...
...
@@ -174,6 +175,7 @@
#include <GL/gl.h>
#include <GL/glext.h>
#endif
*/
#include
<nv_dds/nv_dds.h>
#include
<cstdio>
...
...
Write
Preview
Supports
Markdown
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