GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-bea8435a9e
|
Nviz library – GLX context manipulation. More...
Go to the source code of this file.
Functions | |
struct render_window * | Nviz_new_render_window (void) |
Allocate memory for render window. More... | |
void | Nviz_init_render_window (struct render_window *rwin) |
Initialize render window. More... | |
void | Nviz_destroy_render_window (struct render_window *rwin) |
Free render window. More... | |
int | Nviz_create_render_window (struct render_window *rwin, void *display UNUSED, int width, int height) |
Create render window. More... | |
int | Nviz_make_current_render_window (const struct render_window *rwin) |
Make window current for rendering. More... | |
Nviz library – GLX context manipulation.
Based on visualization/nviz/src/togl.c
(C) 2008, 2010, 2018 by the GRASS Development Team This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.
Definition in file nviz/render.c.
int Nviz_create_render_window | ( | struct render_window * | rwin, |
void *display | UNUSED, | ||
int | width, | ||
int | height | ||
) |
Create render window.
rwin | pointer to render_window struct |
display | display instance (NULL for offscreen) [unused] |
width | window width |
height | window height |
Definition at line 157 of file nviz/render.c.
void Nviz_destroy_render_window | ( | struct render_window * | rwin | ) |
Free render window.
win | pointer to render_window struct |
Definition at line 123 of file nviz/render.c.
References render_window::contextId, render_window::displayId, G_free(), render_window::pixmap, and render_window::windowId.
void Nviz_init_render_window | ( | struct render_window * | rwin | ) |
Initialize render window.
win | pointer to render_window struct |
Definition at line 94 of file nviz/render.c.
References render_window::contextId, render_window::displayId, render_window::height, NULL, render_window::pixmap, render_window::width, and render_window::windowId.
int Nviz_make_current_render_window | ( | const struct render_window * | rwin | ) |
Make window current for rendering.
win | pointer to render_window struct |
Definition at line 325 of file nviz/render.c.
References _, render_window::contextId, render_window::displayId, G_warning(), render_window::height, render_window::width, and render_window::windowId.
struct render_window* Nviz_new_render_window | ( | void | ) |
Allocate memory for render window.
Definition at line 79 of file nviz/render.c.
References G_malloc.