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
97060183
Commit
97060183
authored
Mar 01, 2012
by
Robert Menzel
Browse files
added renderobject const draw method for testing
parent
2abc7802
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/ACGL/OpenGL/Controller/ArrayBufferControl.hh
View file @
97060183
...
...
@@ -6,7 +6,7 @@
#ifndef ACGL_OPENGL_CONTROLLER_ARRAYBUFFERCONTROL_HH
#define ACGL_OPENGL_CONTROLLER_ARRAYBUFFERCONTROL_HH
/* *************** DEPRECATED *********************
/* *************** DEPRECATED *********************
*/
#include
<ACGL/ACGL.hh>
...
...
@@ -88,6 +88,5 @@ protected:
}
// OpenGL
}
// ACGL
*/
#endif // ACGL_OPENGL_CONTROLLER_ARRAYBUFFERCONTROL_HH
include/ACGL/OpenGL/HiLevelObjects/RenderObject.hh
View file @
97060183
...
...
@@ -101,6 +101,33 @@ public:
disable
();
}
//! draws the VAO, everything needed for drawing is performed by this call, has side effects, just for compatibility / testing
inline
void
renderC
()
const
{
if
(
mpFrameBufferObject
)
{
mpFrameBufferObject
->
bind
();
}
else
{
glBindFramebuffer
(
GL_FRAMEBUFFER
,
0
);
}
mpShaderProgramObject
->
use
();
mpVertexArrayObject
->
bind
();
if
(
mpViewport
)
{
mpViewport
->
use
();
}
else
if
(
mpFrameBufferObject
)
{
glm
::
uvec3
size
=
mpFrameBufferObject
->
getSize
();
glViewport
(
0
,
0
,
size
.
x
,
size
.
y
);
openGLRareError
();
}
draw
();
glBindVertexArray
(
0
);
}
private:
void
enableFrameBufferObject
();
void
disableFrameBufferObject
();
...
...
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