libigl
v2.5.0
Loading...
Searching...
No Matches
init_render_to_texture.h
Go to the documentation of this file.
1
// This file is part of libigl, a simple c++ geometry processing library.
2
//
3
// Copyright (C) 2015 Alec Jacobson <alecjacobson@gmail.com>
4
//
5
// This Source Code Form is subject to the terms of the Mozilla Public License
6
// v. 2.0. If a copy of the MPL was not distributed with this file, You can
7
// obtain one at http://mozilla.org/MPL/2.0/.
8
#ifndef IGL_OPENGL_INIT_RENDER_TO_TEXTURE_H
9
#define IGL_OPENGL_INIT_RENDER_TO_TEXTURE_H
10
#include "../igl_inline.h"
11
#include "
gl.h
"
12
#include <cstdlib>
13
namespace
igl
14
{
15
namespace
opengl
16
{
57
IGL_INLINE
void
init_render_to_texture
(
58
const
size_t
width,
59
const
size_t
height,
60
const
bool
depth_texture,
61
GLuint & tex_id,
62
GLuint & fbo_id,
63
GLuint & d_id);
66
IGL_INLINE
void
init_render_to_texture
(
67
const
size_t
width,
68
const
size_t
height,
69
GLuint & tex_id,
70
GLuint & fbo_id,
71
GLuint & dfbo_id);
72
}
73
}
74
#ifndef IGL_STATIC_LIBRARY
75
# include "init_render_to_texture.cpp"
76
#endif
77
#endif
gl.h
IGL_INLINE
#define IGL_INLINE
Definition
igl_inline.h:15
igl::opengl::init_render_to_texture
void init_render_to_texture(const size_t width, const size_t height, const bool depth_texture, GLuint &tex_id, GLuint &fbo_id, GLuint &d_id)
Create a frame buffer that renders color to a RGBA texture a depth to a "render buffer".
igl
Definition
AABB.h:17
include
igl
opengl
init_render_to_texture.h
Generated by
1.9.8