2024-10-19 16:05:49 +02:00
|
|
|
.TH "src/graphics/init.c" 3 "Version 0.1.0" "Gem-graph" \" -*- nroff -*-
|
|
|
|
.ad l
|
|
|
|
.nh
|
|
|
|
.SH NAME
|
|
|
|
src/graphics/init.c \- graphics - initialization and graphic stack management
|
|
|
|
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.br
|
|
|
|
.PP
|
|
|
|
\fC#include '\&.\&./\&.\&./include/graphics\&.h'\fP
|
|
|
|
.br
|
|
|
|
\fC#include '\&.\&./\&.\&./include/parse\&.h'\fP
|
|
|
|
.br
|
|
|
|
\fC#include '\&.\&./\&.\&./include/util\&.h'\fP
|
|
|
|
.br
|
|
|
|
|
|
|
|
.SS "Macros"
|
|
|
|
|
|
|
|
.in +1c
|
|
|
|
.ti -1c
|
|
|
|
.RI "#define \fBTEST\fP 0"
|
|
|
|
.br
|
2024-10-20 23:03:17 +02:00
|
|
|
.RI "phantom documentation "
|
2024-10-19 16:05:49 +02:00
|
|
|
.in -1c
|
|
|
|
.SS "Functions"
|
|
|
|
|
|
|
|
.in +1c
|
|
|
|
.ti -1c
|
|
|
|
.RI "int \fBgraphics_init\fP (void *error_buffer)"
|
|
|
|
.br
|
2024-10-20 23:03:17 +02:00
|
|
|
.RI "Initializes a gl_area\&. "
|
2024-10-19 16:05:49 +02:00
|
|
|
.ti -1c
|
|
|
|
.RI "bool \fBgraphics_shutdown\fP (const int id, void *error_buffer)"
|
|
|
|
.br
|
|
|
|
.RI "Shutdowns a gl_area\&. "
|
|
|
|
.ti -1c
|
|
|
|
.RI "void \fBgraphics_model_setup\fP (const int stack_id)"
|
|
|
|
.br
|
2024-10-20 01:05:12 +02:00
|
|
|
.RI "graphics_model_setup "
|
2024-10-19 16:05:49 +02:00
|
|
|
.ti -1c
|
|
|
|
.RI "void \fBgraphics_init_buffers\fP (const int stack_id)"
|
|
|
|
.br
|
|
|
|
.RI "Initializes the buffer of a gl_area Calls according to the user preferences\&. "
|
|
|
|
.ti -1c
|
|
|
|
.RI "bool \fBgraphics_init_shaders\fP (const int stack_id)"
|
|
|
|
.br
|
|
|
|
.RI "Initializes the shaders of a gl_area and link them to a program\&. "
|
|
|
|
.in -1c
|
|
|
|
.SS "Variables"
|
|
|
|
|
|
|
|
.in +1c
|
|
|
|
.ti -1c
|
|
|
|
.RI "struct \fBgraphics_stack_t\fP * \fBgraphics_stack\fP = NULL"
|
|
|
|
.br
|
2024-10-20 23:03:17 +02:00
|
|
|
.RI "phantom documentation "
|
2024-10-19 16:05:49 +02:00
|
|
|
.ti -1c
|
|
|
|
.RI "size_t \fBgraphics_stack_size\fP = 0"
|
|
|
|
.br
|
2024-10-20 23:03:17 +02:00
|
|
|
.RI "phantom documentation "
|
2024-10-19 16:05:49 +02:00
|
|
|
.ti -1c
|
|
|
|
.RI "int * \fBfree_stack_slot\fP = NULL"
|
|
|
|
.br
|
2024-10-20 23:03:17 +02:00
|
|
|
.RI "phantom documentation "
|
2024-10-19 16:05:49 +02:00
|
|
|
.ti -1c
|
|
|
|
.RI "size_t \fBfree_stack_slot_size\fP = 0"
|
|
|
|
.br
|
2024-10-20 23:03:17 +02:00
|
|
|
.RI "phantom documentation "
|
2024-10-19 16:05:49 +02:00
|
|
|
.in -1c
|
|
|
|
.SH "Detailed Description"
|
|
|
|
.PP
|
|
|
|
graphics - initialization and graphic stack management
|
|
|
|
|
|
|
|
This file is part of Gem-graph\&.
|
|
|
|
.SH "Function Documentation"
|
|
|
|
.PP
|
|
|
|
.SS "int graphics_init (void * error_buffer)"
|
|
|
|
|
|
|
|
.PP
|
2024-10-20 23:03:17 +02:00
|
|
|
Initializes a gl_area\&.
|
2024-10-19 16:05:49 +02:00
|
|
|
.PP
|
|
|
|
\fBParameters\fP
|
|
|
|
.RS 4
|
2024-10-20 23:03:17 +02:00
|
|
|
\fI*error_buffer\fP
|
2024-10-19 16:05:49 +02:00
|
|
|
.RE
|
|
|
|
.PP
|
|
|
|
\fBReturns\fP
|
|
|
|
.RS 4
|
2024-10-20 23:03:17 +02:00
|
|
|
true if initialized
|
2024-10-19 16:05:49 +02:00
|
|
|
.RE
|
|
|
|
.PP
|
|
|
|
|
|
|
|
.SS "void graphics_init_buffers (const int stack_id)"
|
|
|
|
|
|
|
|
.PP
|
|
|
|
Initializes the buffer of a gl_area Calls according to the user preferences\&.
|
|
|
|
.PP
|
|
|
|
\fBParameters\fP
|
|
|
|
.RS 4
|
2024-10-20 23:03:17 +02:00
|
|
|
\fIstack_id\fP
|
2024-10-19 16:05:49 +02:00
|
|
|
.RE
|
|
|
|
.PP
|
2024-10-20 23:03:17 +02:00
|
|
|
gl_area, ptr to the gl_area widget
|
2024-10-19 16:05:49 +02:00
|
|
|
.SS "bool graphics_init_shaders (const int stack_id)"
|
|
|
|
|
|
|
|
.PP
|
|
|
|
Initializes the shaders of a gl_area and link them to a program\&.
|
|
|
|
.PP
|
|
|
|
\fBParameters\fP
|
|
|
|
.RS 4
|
2024-10-20 23:03:17 +02:00
|
|
|
\fIstack_id\fP
|
2024-10-19 16:05:49 +02:00
|
|
|
.RE
|
|
|
|
.PP
|
2024-10-20 23:03:17 +02:00
|
|
|
gl_area, ptr to the gl_area widget
|
|
|
|
.PP
|
2024-10-19 16:05:49 +02:00
|
|
|
\fBReturns\fP
|
|
|
|
.RS 4
|
|
|
|
true if initialized
|
|
|
|
.RE
|
|
|
|
.PP
|
|
|
|
|
2024-10-20 01:05:12 +02:00
|
|
|
.SS "void graphics_model_setup (const int graphics_stack_id)"
|
2024-10-19 16:05:49 +02:00
|
|
|
|
|
|
|
.PP
|
2024-10-20 01:05:12 +02:00
|
|
|
graphics_model_setup
|
2024-10-19 16:05:49 +02:00
|
|
|
.PP
|
2024-10-20 01:05:12 +02:00
|
|
|
\fBParameters\fP
|
|
|
|
.RS 4
|
|
|
|
\fIgraphics_stack_id\fP
|
|
|
|
.RE
|
2024-10-19 16:05:49 +02:00
|
|
|
.PP
|
2024-10-20 01:05:12 +02:00
|
|
|
|
2024-10-19 16:05:49 +02:00
|
|
|
.SS "bool graphics_shutdown (const int id, void * error_buffer)"
|
|
|
|
|
|
|
|
.PP
|
2024-10-20 01:05:12 +02:00
|
|
|
Shutdowns a gl_area\&.
|
2024-10-19 16:05:49 +02:00
|
|
|
.PP
|
|
|
|
\fBParameters\fP
|
|
|
|
.RS 4
|
2024-10-20 23:03:17 +02:00
|
|
|
\fIid\fP
|
|
|
|
.br
|
|
|
|
\fI*error_buffer\fP
|
2024-10-19 16:05:49 +02:00
|
|
|
.RE
|
|
|
|
.PP
|
2024-10-20 23:03:17 +02:00
|
|
|
gl_area, ptr to the gl_area widget
|
|
|
|
.PP
|
2024-10-19 16:05:49 +02:00
|
|
|
\fBReturns\fP
|
|
|
|
.RS 4
|
|
|
|
true if success
|
|
|
|
.RE
|
|
|
|
.PP
|
|
|
|
|
|
|
|
.SH "Variable Documentation"
|
|
|
|
.PP
|
|
|
|
.SS "struct \fBgraphics_stack_t\fP* graphics_stack = NULL"
|
|
|
|
|
|
|
|
.PP
|
2024-10-20 23:03:17 +02:00
|
|
|
phantom documentation Dynamic array of ptrs to dynamically allocated gl_area_entry\&.
|
2024-10-19 16:05:49 +02:00
|
|
|
.SH "Author"
|
|
|
|
.PP
|
|
|
|
Generated automatically by Doxygen for Gem-graph from the source code\&.
|