Skip to content

Commit

Permalink
Added glViewport
Browse files Browse the repository at this point in the history
  • Loading branch information
leiradel committed Apr 1, 2018
1 parent 02ecf34 commit 9bcc7b3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Gl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,13 @@ void Gl::blendFunc(GLenum sfactor, GLenum dfactor)
check(__FUNCTION__);
}

void Gl::viewport(GLint x, GLint y, GLsizei width, GLsizei height)
{
if (!s_ok) return;
glViewport(x, y, width, height);
check(__FUNCTION__);
}

void Gl::drawArrays(GLenum mode, GLint first, GLsizei count)
{
if (!s_ok) return;
Expand Down
1 change: 1 addition & 0 deletions src/Gl.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,6 @@ namespace Gl
void enable(GLenum cap);
void disable(GLenum cap);
void blendFunc(GLenum sfactor, GLenum dfactor);
void viewport(GLint x, GLint y, GLsizei width, GLsizei height);
void drawArrays(GLenum mode, GLint first, GLsizei count);
}

0 comments on commit 9bcc7b3

Please sign in to comment.