Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
|
bshe
2016/09/12 15:38:27
perhaps use vr_gl_util as file name?
cjgrant
2016/09/13 17:32:16
I've been encouraged not to name files "util", as
bshe
2016/09/13 19:37:22
ack.
| |
| 4 | |
| 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_GL_H_ | |
| 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_GL_H_ | |
| 7 | |
| 8 #include "ui/gl/gl_bindings.h" | |
| 9 | |
| 10 namespace vr_shell { | |
| 11 | |
| 12 std::array<float, 16> MatrixToGLArray(const gvr::Mat4f& matrix); | |
| 13 | |
| 14 gvr::Recti CalculatePixelSpaceRect(const gvr::Sizei& texture_size, | |
| 15 const gvr::Rectf& texture_rect);:w | |
|
mthiesse
2016/09/12 14:18:27
Now now, no need to brag about your vim usage.
;)
| |
| 16 | |
| 17 // Compile a shader. | |
| 18 GLuint CompileShader(GLenum shader_type, | |
| 19 const GLchar* shader_source, | |
| 20 std::string& error); | |
| 21 | |
| 22 // Compile and link a program. | |
| 23 GLuint CreateAndLinkProgram(GLuint vertex_shader_handle, | |
| 24 GLuint fragment_shader_handle, | |
| 25 int num_attributes, | |
| 26 const GLchar** attributes, | |
| 27 std::string& error); | |
| 28 | |
| 29 } // namespace vr_shell | |
| 30 | |
| 31 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_GL_H_ | |
| OLD | NEW |