diff options
author | Lukas Matena <lukasmatena@seznam.cz> | 2018-10-26 16:45:52 +0300 |
---|---|---|
committer | Lukas Matena <lukasmatena@seznam.cz> | 2018-10-26 16:45:52 +0300 |
commit | 7681d00ee50c58a06b0ab61f776a08a693a6e510 (patch) | |
tree | f9bb0a57375af93113e52e31d05bc4f86f1a3907 /src/igl/opengl/gl_type_size.h | |
parent | c1e6eda554813763378f959435df766a600b896c (diff) | |
parent | f65118210124d460d9cb6478a84976bb98160595 (diff) |
Merged branch 'dev_native' into lm_sla_supports_auto
Added igl library files
Diffstat (limited to 'src/igl/opengl/gl_type_size.h')
-rw-r--r-- | src/igl/opengl/gl_type_size.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/igl/opengl/gl_type_size.h b/src/igl/opengl/gl_type_size.h new file mode 100644 index 000000000..a74119549 --- /dev/null +++ b/src/igl/opengl/gl_type_size.h @@ -0,0 +1,28 @@ +// This file is part of libigl, a simple c++ geometry processing library. +// +// Copyright (C) 2013 Alec Jacobson <alecjacobson@gmail.com> +// +// This Source Code Form is subject to the terms of the Mozilla Public License +// v. 2.0. If a copy of the MPL was not distributed with this file, You can +// obtain one at http://mozilla.org/MPL/2.0/. +#ifndef IGL_OPENGL_GL_TYPE_SIZE_H +#define IGL_OPENGL_GL_TYPE_SIZE_H +#include "../igl_inline.h" +#include "gl.h" + +namespace igl +{ + namespace opengl + { + // Return the number of bytes for a given OpenGL type // Inputs: + // type enum value of opengl type + // Returns size in bytes of type + IGL_INLINE int gl_type_size(const GLenum type); + } +} + +#ifndef IGL_STATIC_LIBRARY +# include "gl_type_size.cpp" +#endif + +#endif |